[
https://jira.jboss.org/jira/browse/JBAS-7818?page=com.atlassian.jira.plug...
]
jaikiran pai commented on JBAS-7818:
------------------------------------
Scott,
It appears that with the recent changes around this, the following lookup:
MBeanServerConnection adaptor = (MBeanServerConnection)
ctx.lookup("jmx/rmi/RMIAdaptor");
runs into issues (in EJB3 testsuite). This throws a:
javax.naming.Reference cannot be cast to javax.management.MBeanServerConnection
java.lang.ClassCastException: javax.naming.Reference cannot be cast to
javax.management.MBeanServerConnection
at org.jboss.test.JBossTestServices.getServer(JBossTestServices.java:154)
at org.jboss.test.JBossTestServices.invoke(JBossTestServices.java:228)
at org.jboss.test.JBossTestServices.undeploy(JBossTestServices.java:364)
at org.jboss.test.JBossTestSetup.undeploy(JBossTestSetup.java:197)
at org.jboss.test.JBossTestCase$1.tearDown(JBossTestCase.java:333)
at junit.extensions.TestSetup$1.protect(TestSetup.java:24)
at junit.extensions.TestSetup.run(TestSetup.java:27)
The root cause appears to be the class org.jboss.system.server.jmx.JMXAdapter (present in
JBOSS_HOME/lib/jboss-system.jar) missing from the client classpath (which uses the jars in
JBOSS_HOME/client folder, especially jbossall-client.jar). Looking at the name of that
class, i don't think it would be appropriate to include that in the client jar files.
RMIAdaptor replacement based on JSR160
--------------------------------------
Key: JBAS-7818
URL:
https://jira.jboss.org/jira/browse/JBAS-7818
Project: JBoss Application Server
Issue Type: Task
Security Level: Public(Everyone can see)
Components: JMX
Reporter: Scott M Stark
Assignee: Scott Marlow
Fix For: JBossAS-6.0.0.M3
A replacement for the proprietary RMIAdaptor is needed that supports authentication,
authorization and SSL.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira