Bug 1059215 - Problem with configuring RHQ agent-server communication - SSL encryption: "Could not find the remoting servlet invoker..."
Summary: Problem with configuring RHQ agent-server communication - SSL encryption: "Co...
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-29 12:53 UTC by Costel C
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Costel C 2014-01-29 12:53:57 UTC
Description of problem: Problem with configuring the SSL encryption for the RHQ agent-server communication using sslservlet transport.

How reproducible: Always


Steps to Reproduce:
1. I configured the SSL encryption for the RHQ agent-server communication 
as described here: https://docs.jboss.org/author/display/RHQ/Securing+Communications
2. I configured the server by changing in the rhq-server.properties file the property 
   rhq.communications.connector.transport=sslservlet 
   (default port 7443)
3. Restart the server
4. I configured the agent to use
  agent-to-server : transport=sslservlet, port=7443
  server-to-agent: transport=sslsocket, port=16163
5. Restart the agent

Actual results:
The agent cannot connect to the server. In the server log there is the following error:
14:39:32,708 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jboss-remoting-servlet-invoker]] (http-/0.0.0.0:7443-1) ServerInvokerServlet: invokerObjectNameQuery=jboss.remoting:service=invoker,transport=servlet,rhq.communications.connector.rhqtype=server,*
14:39:32,709 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jboss-remoting-servlet-invoker].[ServerInvokerServlet]] (http-/0.0.0.0:7443-1) JBWEB000235: Allocate exception for servlet ServerInvokerServlet: javax.servlet.ServletException: Could not find the remoting servlet invoker: jboss.remoting:service=invoker,transport=servlet,rhq.communications.connector.rhqtype=server,* - need to wait for remoting to be initialized later
	at org.rhq.enterprise.communications.servlet.ServerInvokerServlet.getInvokerFromInvokerName(ServerInvokerServlet.java:78) [classes:]
	at org.jboss.remoting.transport.servlet.web.ServerInvokerServlet.init(ServerInvokerServlet.java:78) [jboss-remoting-2.5.4.SP4.jar:]
	at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source) [:1.6.0_25]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_25]
	at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_25]
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:263) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:261) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_25]
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) [rt.jar:1.6.0_25]
	at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:155) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:108) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1188) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:950) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:151) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
	at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final.jar:7.2.0.Final]
	at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]



Expected results:


Additional info:
I think the problem is the fact that the Servlet Server Invoker references an MBean that is related with servlet and not with sslservlet. 
See the ...rhq-remoting-war/WEB-INF/web.xml file:

<init-param>
            <param-name>invokerName</param-name>
            <param-value>jboss.remoting:service=invoker,transport=servlet,rhq.communications.connector.rhqtype=server,*</param-value>
        </init-param>

I suppose the correct invoker name should be: jboss.remoting:service=invoker,transport=sslservlet,rhq.communications.connector.rhqtype=server,*


Note You need to log in before you can comment on or make changes to this bug.