[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NoInitialContextException error when access

emcwoo do-not-reply at jboss.com
Tue Mar 6 03:23:18 EST 2007


jaikiran, thanks for your help.  However, the error occurred no matter how I set the java.naming.provider.url, even for a non-exist URL.  From the error message on the client side quoted below, the problem seems related to the property java.naming.factory.initial=org.jnp.interfaces.HttpNamingContextFactory


Detail error message:

     [java] javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.HttpNamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.HttpNamingContextFactory]
     [java] 	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
     [java] 	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
     [java] 	at javax.naming.InitialContext.init(InitialContext.java:223)
     [java] 	at javax.naming.InitialContext.(InitialContext.java:175)
     [java] 	at org.jboss.example.jms.common.Util.doesDestinationExist(Util.java:43)
     [java] 	at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupport.java:146)
     [java] 	at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:57)
     [java] 	at org.jboss.example.jms.queue.QueueExample.main(QueueExample.java:134)
     [java] Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.HttpNamingContextFactory
     [java] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     [java] 	at java.security.AccessController.doPrivileged(Native Method)
     [java] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     [java] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
     [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     [java] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     [java] 	at java.lang.Class.forName0(Native Method)
     [java] 	at java.lang.Class.forName(Class.java:242)
     [java] 	at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
     [java] 	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
     [java] 	... 7 more

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025316#4025316

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025316



More information about the jboss-user mailing list