wood burning stoves 2.0*
The moose likes Web Services and the fly likes issue in binding object to JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "issue in binding object to JNDI" Watch "issue in binding object to JNDI" New topic
Author

issue in binding object to JNDI

Manish Shinde
Ranch Hand

Joined: Mar 30, 2011
Posts: 39
HI ALL,

I am getting an exception while binding the object to JNDI.I missing some minute thing over here.
I am using Netbeans 6.5 and Tomcat 6.0.

Following is code.



I am getting Following Exception :
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:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at BindObject.main(BindObject.java:13)


Thanks in advance
Manish
Lanny Gilbert
Ranch Hand

Joined: Jun 11, 2002
Posts: 103
It looks like your application is using some JNDI property that is not correctly configured (java:comp/env/), or your application is not running in the correct environment (perhaps an environment that does not support JNDI).
In what environment is your web service and your web service client running? Are they deployed on different machines?
 
 
subject: issue in binding object to JNDI