users@glassfish.java.net

Re: accessing glassfish EJB through external client

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Jan 2009 05:28:17 PST

I am guessing that your client is not on the same host as your app server?

If so, the 'localhost' in the error refers to the client's localhost, not the app server host, which means it cannot find an ORB on the client host, which is expected because it's running on the app server host.

I believe to fix this you need to tell your client more about where/how to connect, in particular add this to the client command line: -Djava.naming.provider.url=iiop://$APP_SERVER:3700 -Dorg.omg.CORBA.ORBInitialHost=$APP_SERVER

where $APP_SERVER is the name of the host on which the app server is running.
[Message sent by forum member 'matterbury' (matterbury)]

http://forums.java.net/jive/thread.jspa?messageID=326455