Regarding RMI COnnection
"Suchetha Ravishankar" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <000801c3ffd4$9fc98680$68961dac@sg01pgnravi> |
Hi all,
I am using a RemoteMBeanProxy to collect info from some running MBean
Servers. I can do it well in WIndows 2000 envmt. When I moved to Solaris
box, I am failing to do so and some service unavailable exception is thrown
eventhough the service is running successfully at the deignated port.
Following is the list:
C:\GLINT\src-localserver>ant run
Buildfile: build.xml
init:
build:
[javac] Compiling 2 source files to C:\GLINT\src-localserver\classes
[jar] Building jar: C:\GLINT\src-localserver\dist\glint.jar
run:
[java] 192.168.32.18
[java] test successful
[java] test 50% successful
[java] 7575
[java] test successful
[java] java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming
.ServiceUnavailableException [Root exception is java.rmi.ConnectException:
Conne
ction refused to host: 192.168.32.18; nested exception is:
[java] java.net.ConnectException: Connection refused: connect]
[java] at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector
.java:289)
[java] at
javax.management.remote.JMXConnectorFactory.connect(JMXConnec
torFactory.java:227)
[java] at LocalServer.ps(LocalServer.java:30)
[java] at LocalServer.startProxyServer(LocalServer.java:46)
[java] at LocalServer.main(LocalServer.java:146)
[java] Caused by: javax.naming.ServiceUnavailableException [Root
exception
is java.rmi.ConnectException: Connection refused to host: 192.168.32.18;
nested
exception is:
[java] java.net.ConnectException: Connection refused: connect]
[java] at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryCont
ext.java:92)
[java] at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLC
ontext.java:185)
[java] at
javax.naming.InitialContext.lookup(InitialContext.java:347)
[java] at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RM
IConnector.java:1653)
[java] at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMICon
nector.java:1619)
[java] at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector
.java:247)
[java] ... 4 more
[java] Exception in thread "main"
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 13 seconds
Can anyone through light into this please, thanks
Best regards,
Suja
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click