When JON agent's rhq.communications.connector.transport value is invalid, agent fails to start
Issue
- Failed to start the agent
-
Agent fails to start with the following error:
Failed to start the agent java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.jboss.remoting.InvokerRegistry.loadServerInvoker(InvokerRegistry.java:438) at org.jboss.remoting.InvokerRegistry.createServerInvoker(InvokerRegistry.java:525) at org.jboss.remoting.transport.Connector.init(Connector.java:398) at org.jboss.remoting.transport.Connector.create(Connector.java:815) at org.rhq.enterprise.communications.ServiceContainer.setupServerConnector(ServiceContainer.java:1216) at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:550) at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:468) at org.rhq.enterprise.agent.AgentMain.startCommServices(AgentMain.java:2325) at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:652) at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:428) Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream at org.jboss.remoting.transport.sslservlet.TransportServerFactory.createServerInvoker(TransportServerFactory.java:38) ... 14 more Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletInputStream at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) ... 15 more Agent will be restarted soon to see if the failure condition cleared up -
Once SSL/TLS encryption with
sslservletis used, the agent will not start
Environment
- JBoss Operations Network (JON) 3.0, 3.0.1, 3.1
- JON agent/server communications have been configured for SSL/TLS encryption
- JON agent's
rhq.communications.connector.transporthas been set to a value other thensocketorsslsocket
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
