Ejb3.0 stateless session bean
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   nagesh_a
Posted On:   Wednesday, May 10, 2006 03:13 AM

I have a sample application on stateless session bean using EJB3.0, bean class, remote inreface compiled.Client class is also compiled but run time I am getting follwing exception. Please clarify me where is the problem in my programme. I am using sun java application server 9.0. Is it required any classpath for server? 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(Unknown Source) at javax.naming.InitialContext.   More>>

			



I have a sample application on stateless session bean using EJB3.0, bean class, remote inreface compiled.Client class is also compiled but run time I am getting follwing exception. Please clarify me where is the problem in my programme. I am using sun java application server 9.0. Is it required any classpath for server?



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(Unknown Source)

at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.lookup(Unknown Source) at Client.main(Client.java:11)



   <<Less
About | Sitemap | Contact