users@glassfish.java.net

Problem running EJB 3.0 example from java.net

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 Feb 2007 06:23:30 PST

Hello ,

I have a problem running the EJB 3.0 Sless example at
<a href="https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html"> https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html</a>.

I can successfully buid & deploy the session bean, but when running the Java standalone client I get this error:

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at ejb30.SlessJavaClient.main(SlessJavaClient.java:12)


I'm using Sun Java System Application Server Platform Edition 9.0_01 (build b14) on Win XP, and building & running the example in Netbeans 5.5 .

I've been trying to figure out the cause of problem for days, but no luck.
I desperatly need help on this.

Thanks a lot !
[Message sent by forum member 'cyvan' (cyvan)]

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