wood burning stoves 2.0*
The moose likes Websphere 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
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?...
Diego Gactiks
Greenhorn

Joined: May 05, 2008
Posts: 1
can you post the code that do that ?

did you try to connect this EJB on another server that is not websphere ?

did you check the configuration of the server, verify the name of the default corba destination ( normaly default to localhost ... but if you change )
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Are you running as an application client? This gets the context available in the client.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error NoInitialcontextException on websphere 6.0
 
Similar Threads
Initial Context Exception
Wepsphere 6.0 JNDI issue
Help to solve NoInitialContextException
error NoInitialcontextException on websphere 6.0
To Use the Test Server in RAD 6.0