• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error NoInitialcontextException on websphere 6.0

 
sushant pattnayak
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34656
366
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you running as an application client? This gets the context available in the client.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic