Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes NoClassDefFoundError: javax.naming.InitialContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "NoClassDefFoundError: javax.naming.InitialContext" Watch "NoClassDefFoundError: javax.naming.InitialContext" New topic
Author

NoClassDefFoundError: javax.naming.InitialContext

Ja Roel
Greenhorn

Joined: Jun 13, 2002
Posts: 11
I�m trying to connect to a session bean. I�m using VAJ, when I run a test-client everything goes fine. But when I�m trying to get the InitialContext from a java class file I get the following error: "NoClassDefFoundError: javax.naming.InitialContext". The EJB server runs on a different machine, but as I mentioned before the Test Client runs fine. ???
Ja Roel
Greenhorn

Joined: Jun 13, 2002
Posts: 11
Already solved the problem. It appears I had to add ujc.jar to the classpath.
:-)
Ja Roel
Greenhorn

Joined: Jun 13, 2002
Posts: 11
OK, problem not solved. Now I have a javax.naming.CommunicationException Root exception is org.omg.CORBA.COMM_FAILURE: minor code: 3 completed: No.
When I use a hashtable everything works, but when I use the jndi.properties file I get this exception
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: NoClassDefFoundError: javax.naming.InitialContext
 
Similar Threads
NoClassDefFoundError
NoClassDefFoundError
NoClassDefFoundError
NoClassDefFoundError
noClassDefFoundError