Hi Jacek,
I think you've missed JMX of the end of the connectURL - it should
look like this for you:
service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX
cheers,
Rob
On 19 Aug 2005, at 14:46, Jacek Laskowski wrote:
Rob Davies wrote:
Hi Jacek,
do you have a stack trace or error message I could have a look at ?
Here it goes:
Started ServiceMix 1.0.1
$ ./bin/servicemix
ServiceMix ESB: 1.0.1
...
[INFO] JBIContainer - -ServiceMix JBI Container (http://
servicemix.org/) name: defaultJBI running version: null
(by the way the null version bothers me, too)
Started MC4J Console 1.2b9 and provided the server URL:
service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBI and
connection type is JSR160.
The exception is as follows:
java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.NameNotFoundException: defaultJBI
at javax.management.remote.rmi.RMIConnector.connect
(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect
(JMXConnectorFactory.java:248)
at org.mc4j.console.connection.JSR160ConnectionNode.connect
(JSR160ConnectionNode.java:132)
at org.mc4j.console.ConnectAction.performAction
(ConnectAction.java:76)
at org.mc4j.console.CreateConnectionAction$1.run
(CreateConnectionAction.java:61)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.NameNotFoundException: defaultJBI
at com.sun.jndi.rmi.registry.RegistryContext.lookup
(RegistryContext.java:95)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup
(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI
(RMIConnector.java:1807)
at javax.management.remote.rmi.RMIConnector.findRMIServer
(RMIConnector.java:1777)
at javax.management.remote.rmi.RMIConnector.connect
(RMIConnector.java:259)
[catch] ... 5 more
The InitialContextFactory is
com.sun.jndi.rmi.registry.RegistryContextFactory, but I saw that
SpringInitialContextFactory is used at servicemix's side. Shall I
use it in MC4J, instead?
Rob
Jacek