Could you please send me your code? I tried to do the same, but I keep getting
ClassCastExceptions during:
| JMXConnector connector = JMXConnectorFactory.connect(url);
|
This is my binding code:
| JMXServiceURL url = new JMXServiceURL("rmi", null, 0);
| connectorServer = JMXConnectorServerFactory.newJMXConnectorServer(url,
null, getServer());
| connectorServer.start();
| bind(jndiName, connectorServer.toJMXConnector(null));
|
JndiView shows:
| +- JMXConnectorServer (class: javax.management.remote.rmi.RMIConnector)
|
The exception:
java.lang.ClassCastException
| org.concern.ControllerException: java.lang.ClassCastException
| at
org.concern.j2ee.client.JMXConnector.connect(JMXConnector.java:43)
| at
org.concern.j2ee.client.commandline.Concern.getController(Concern.java:80)
| at org.concern.j2ee.client.commandline.Concern.main(Concern.java:53)
| Caused by: java.lang.ClassCastException
| at
javax.management.remote.rmi.RMIConnector.narrowJRMPServer(RMIConnector.java:1818)
| at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1813)
| at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1777)
| at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
| at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
| at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:207)
| at
org.concern.j2ee.client.JMXConnector.connect(JMXConnector.java:36)
| ... 2 more
|
thanks in advance,
Holger
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860410#3860410
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860410
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user