Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

Select JMX remoting provider at runtime

Thread view: 
Daniel Santos - 24 Jan 2007 12:44 GMT
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.remote
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(Resolver.java:199)
    at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:152)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:410)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:822)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.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
Daniel Santos - 24 Jan 2007 14:13 GMT
> Hello!
>
[quoted text clipped - 6 lines]
> Even when setting the system property :
> jmx.remote.protocol.provider.pkgs=com.sun.jmx.remote

Typo : the property value is com.sun.jmx.remote.protocol

> The implementation used is the one from mx4j.
>
[quoted text clipped - 18 lines]
>
> Help wanted


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.