users@glassfish.java.net

Re: Problem with creating InitialContext in java client accessing Remote EJB

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Sat, 23 Jan 2010 18:57:32 +0100

Odd. Which JVM/OS?
Can you share the full stack trace?
-Alexis

On 23 janv. 2010, at 01:27, glassfish_at_javadesktop.org wrote:

> Hi,
>
> I get [b]NoClassDefFoundError: com/sun/corba/ee/connection/ORBSocketFactory[/b] when try to initialize InitialContext(). Anyone know which jar has this class? My glassfish server is v2. Any help will be greatly appreciated.
>
> My stand-alone java client tries to access a Remote EJB component. I have following the directions in glassfish documentation, https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB.
>
> I have appserv-rt.jar on my classpath, and I tried both ways: initialize with no argument ( new InitialContext(). ) and initialize with following properties, I got the same error.
>
> props.setProperty("org.omg.CORBA.ORBInitialHost", "localhost");
> props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
> props.setProperty("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory");
> props.setProperty("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
> props.setProperty("java.naming.factory.state","com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
>
> Michelle
> [Message sent by forum member 'mwei' (mxue_at_myproductadvisor.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=382493
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>