Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   EJB 3.0 Stateful Session Bean Example (http://www.go4expert.com/forums/ejb-30-stateful-session-bean-example-t15574/)

gowrin_m 22Dec2008 15:17

EJB 3.0 Stateful Session Bean Example
I have tried out the example available at thread 4212

using JBOSS 4.2.2 GA as webserver and MyEclipse as IDE. I got the following error. Can you please guide me on this?

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(U nknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unkn own Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx (Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.jboss.tutorial.stateless.client.Client.main(Cl ient.java:15)


All times are GMT +5.5. The time now is 15:54.