users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Sun, 24 Jan 2010 14:42:21 PST

Hi, Alexis

I'm using Mac OS X. I'm running the client from eclipse, which should use the Mac build-in java 1.5. Here is the stacktrace. Thank you very much!

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/ee/connection/ORBSocketFactory
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at com.sun.corba.ee.spi.orbutil.misc.ORBClassLoader.loadClass(ORBClassLoader.java:51)
        at com.sun.corba.ee.impl.orb.ParserTable$4.operate(ParserTable.java:690)
        at com.sun.corba.ee.impl.orb.NormalParserAction.apply(NormalParserAction.java:58)
        at com.sun.corba.ee.spi.orb.PropertyParser.parse(PropertyParser.java:81)
        at com.sun.corba.ee.spi.orb.ParserImplBase.init(ParserImplBase.java:81)
        at com.sun.corba.ee.impl.orb.ORBDataParserImpl.<init>(ORBDataParserImpl.java:481)
        at com.sun.corba.ee.impl.orb.ORBImpl.postInit(ORBImpl.java:587)
        at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:701)
        at org.omg.CORBA.ORB.init(ORB.java:337)
        at com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:546)
        at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278)
        at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:178)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:175)
        at ReportsClient.getRemoteContext(ReportsClient.java:399)
        at ReportsClient.<init>(ReportsClient.java:118)
        at ReportsClient.main(ReportsClient.java:65)
[Message sent by forum member 'mwei' (mxue_at_myproductadvisor.com)]

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