[jboss-user] [EJB3] - Re: newbie question: ejb3 tutorial examples

Meena Rajani do-not-reply at jboss.com
Wed Jan 5 10:13:19 EST 2011

Meena Rajani [http://community.jboss.org/people/MeenaRajani] created the discussion

"Re: newbie question: ejb3 tutorial examples"

To view the discussion, visit: http://community.jboss.org/message/579040#579040


I am getting the same error with the same example. How you added add jnp-client.jar . I am using  I am using Elipse Helios and Jboss 6. I creted a java project with exisiting build file.
The error stack is

Exception in thread "main" 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 org.jboss.tutorial.stateless.client.Client.main(Client.java:34)

Can you please reply in detail as I am stucked with eclipse and Jboss for more than 3 weeks.


Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110105/0eb1d77c/attachment.html 

More information about the jboss-user mailing list