JON server/agent throwing java.lang.NoClassDefFoundError exceptions referencing standard JRE classes

Solution Unverified - Updated -

Issue

  • Receive the following message under the 'Alerts' 'Notifications' tabs "Failed - cause:java.lang.NoClassDefFoundError: Could not initialize class java.net.PlainDatagramSocketImpl"
  • When restarting JON server, find errors similar to:
2012-11-07 13:10:07,144 INFO  [org.apache.catalina.core.AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-sun-1.6.0.37.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-sun-1.6.0.37.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-sun-1.6.0.37.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2012-11-07 13:10:07,268 INFO  [org.apache.coyote.http11.Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-7080
2012-11-07 13:10:07,510 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method start
java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.SunJCE_b
  • When restarting JON agent, find errors similar to:
ERROR [RHQ Agent Registration Thread] (enterprise.communications.command.client.ClientCommandSenderTask)- {ClientCommandSenderTask.send-failed}Failed to send command [Command: type=[remotepojo]; cmd-in-response=[false]; config=[{rhq.agent-name=xxxxx, rhq.externalizable-strategy=AGENT, rhq.send-throttle=true}]; params=[{invocation=NameBasedInvocation[registerAgent], targetInterfaceName=org.rhq.core.clientapi.server.core.CoreServerService}]]. Cause: java.lang.Exception:java.lang.NoClassDefFoundError: Could not initialize class com.sun.crypto.provider.SunJCE -> java.lang.NoClassDefFoundError:Could not initialize class com.sun.crypto.provider.SunJCE. Cause: java.lang.Exception: java.lang.NoClassDefFoundError: Could not initialize class com.sun.crypto.provider.SunJCE

Environment

  • JBoss Operations Network (JON)
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.