When I tried to connect with service:jmx:remoting-jmx://servername:9999 the following error occured:
Could not create connection to MBean server: : java.net.MalformedURLException: Unsupported protocol: remoting-jmx
The first test is a connection from jconsole with the remoting-jmx url. The connection was successful, this verified my jboss configuration is correct.
Tip: Start from your jboss/bin/jconsole.bat or sh so the correct jars are on the classpath. Use the username/password that is used for the administration console.
I knew about the jboss modules so I added the remoting-jmx module, still no success. Then after a lot of searching and wrong answers I found the solution at:
The most important part is services="import" otherwise the unsupported protocol still occur.
Note:
In JBoss 7.2 AS / JBoss 6.1 EAP the org.jboss.remoting3 is changed to org.jboss.remoting-jmx
Also tried it with services export in standalone.xml without success
<subsystem xmlns="urn:jboss:domain:ee:1.1"><global-modules> <module name="org.jboss.remoting-jmx" services="export"/></global-modules>
Example correct solution:
The jboss-deployment-structure.xml in the WEB-INF dir:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<dependencies>
<module name="org.jboss.remoting-jmx" services="import"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
No comments:
Post a Comment