[jboss-user] [Installation, Configuration & DEPLOYMENT] - "NamingContextFactory class not found" error during deployme
alskor
do-not-reply at jboss.com
Mon Jun 1 17:52:26 EDT 2009
Hi all!
I have a legacy app I need to migrate from JBoss 3.2.7 to 5.1.0 GA.
I have found 13 problems so far and I resolved 12 of them.
The problem I have now is:
Jboss shows this error during startup:
INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
| WARNING [collectionmgt] Error creating/registering StarcoreRootNode.
| javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.init(InitialContext.java:223)
| at javax.naming.InitialContext.<init>(InitialContext.java:175)
| at com.starview.dm.collectionmgt.StarcoreRootNode.<init>(StarcoreRootNode.java:50)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27
| )
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at com.starview.support.startup.Startup.instantiateClasses(Startup.java:516)
| at com.starview.support.startup.Startup.loadStartupClasses(Startup.java:310)
| at com.starview.support.startup.Startup.access$200(Startup.java:50)
| at com.starview.support.startup.Startup$1.run(Startup.java:130)
| Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
| at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:242)
| at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
| ... 12 more
I see jnpserver.jar is present in common\lib\ folder, so don't really understand why this file can't be found. I also tried to copy jnpserver.jar to my_server\lib folder, but it didn't help.
I'm using Windows XP SP3, Sun JDK 1.5.0_18, JBoss AS 5.1.0 GA.
Which other info should I provide so it would be easier to help me? the startup script we use? jboss config files? jboss or app lib folder contents?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234583#4234583
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234583
More information about the jboss-user
mailing list