It's not a secret anymore!*
The moose likes Other Java Products and Servers and the fly likes Glasshfish InitialContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Glasshfish InitialContext" Watch "Glasshfish InitialContext" New topic
Author

Glasshfish InitialContext

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
Hello all,

I have in my webapp a JMXClient which must connect to a remote JMX server implemented with RMI.

In tomcat the connection correctly work, but in glassfish when the jmx client try to recover the RMI registry

of my remote application, glassfish return its initialContext and the connection isn't try. The initialContext

of glassfish doesn't own the RMI server stub of my remote application and in my webapp a:

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: rmi:

is returned ...

Anyone have a idea to correct the problem or override the glassfish initialcontext ?

Thank

Adryen


SCJP 5, SCDJWS 5
http://adrien-ruffie.blogspot.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Glasshfish InitialContext
 
Similar Threads
java.rmi.ConnectException: Connection refused to host
Connecting JBoss with JMXConnectorFactory
JMX + RMIConnector
JMX cannot get connected, Maybe due wrong stub???
I am getting ClassNotFoundException for stub file