Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javax.naming.NoInitialContextException

User_SepJun 4 2013 — edited Jun 5 2013
Hi,
I am new to EJB 3, I tried develop a simple EJB application by following the below link.

http://www.myeclipseide.com/documentation/quickstarts/ejb3/

I was almost done.

When I run the client bean, It shows the error as shown below:
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 com.myeclipseide.ejb3.MyBeanClient.main(MyBeanClient.java:10)
I don't what was the problem.Can anyone guide me?

Thanks
-raka
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2013
Added on Jun 4 2013
4 comments
3,725 views