Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • 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?...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic