Hello!
I have two JMX remoting providers in the classpath :
- mx4j 3.0.1
- JMX JSR 160 RI 1.0
I am trying to start the rmi connector server of the sun RI.
Even when setting the system property :
jmx.remote.protocol.provider.pkgs=com.sun.jmx.remo te
The implementation used is the one from mx4j.
I get the exception :
java.io.IOException: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
at mx4j.remote.resolver.rmi.Resolver.bindServer(Resol ver.java:199)
at javax.management.remote.rmi.RMIConnectorServer.sta rt(RMIConnectorServer.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invok e(StandardMetaDataImpl.java:410)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDa taImpl.java:22

at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:822)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:792)
... stack frames of my code ...
Also tried putting the property in the environment map that is passed to
the connector server creation call, but no cigar
Help wanted