File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes error NoInitialcontextException on websphere 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "error NoInitialcontextException on websphere 6.0" Watch "error NoInitialcontextException on websphere 6.0" New topic
Author

error NoInitialcontextException on websphere 6.0

sushant pattnayak
Greenhorn

Joined: Aug 21, 2006
Posts: 3
Hi all,

I am using a RAD to learn EJB and the server is websphere 6.0, though successfully i deployed teh code,
but while running the client code i am getting the following exception...

Please can any one help me on this... am i missing some thing on JNDI. But i have set the Look up name in JNDI and checked it too... as again am i missing on classpath.. but in RAD this is automaticly set right?...

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:640)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at AdviceClient.go(AdviceClient.java:15)
at AdviceClient.main(AdviceClient.java:9)

Please can any one help me on this... am i missing some thing on JNDI. But i have set the Look up name in JNDI and checked it too... as again am i missing on classpath.. but in RAD this is automaticly set right?...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error NoInitialcontextException on websphere 6.0
 
Similar Threads
Wepsphere 6.0 JNDI issue
Initial Context Exception
error NoInitialcontextException on websphere 6.0
To Use the Test Server in RAD 6.0
Help to solve NoInitialContextException