Well, if jnp-client.jar were actually on the classpath when this code is executed, you wouldn't be getting this exception. How are you identifying the classpath used at this time? To help trace this down, find a scenario that you know is failing. Then, before doing the lookup, print out the classpath being used - you should be able to do a getProperty("java.classpath") or something like that. Hopefully, the value of the classpath at that moment will provide a clue as to where it is getting incorrectly set.

Muraly R wrote:

Sorry, this time with stack trace attached...:-)

-M

At 14:22 10/06/2003 +0530, you wrote:

Hi Gurus,
I am actually stuck with this error scenario. The flow for the scenario is there is lookup portion in my client code(i.e tomcat separate installation), which looks up JBoss server(3.0.4) for a session bean. This works fine, except in some scenario's the following error is thrown:


ERROR 10/Jun/2003 13:49:13 [Thread-34] (HomeReferencesManager.java:106): util.HomeReferencesManager - Cannot instantiate class: org.jnp.interfaces.NamingContextFactory

java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory

I have jnp-client.jar in the client classpath.

Have any one encountered this scenario before? Please share your thoughts on the same.

The most confusing(irritating actaully) part is, the same bean lookup from the same code snippet location works fine in some scenarios.

Thanks
Muraly




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com <http://www.etnus.com/>.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


------------------------------------------------------------------------

ERROR 10/Jun/2003 13:49:13 [Thread-34] (HomeReferencesManager.java:106): util.HomeReferencesManager - Cannot instantiate class: org.jnp.interfaces.NamingContextFactory

java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at 
com.cisco.nm.qpm.server.util.HomeReferencesManager.getContext(HomeReferencesManager.java:248)
        at 
com.cisco.nm.qpm.server.util.HomeReferencesManager.getHome(HomeReferencesManager.java:100)
        at com.cisco.nm.qpm.server.inventory.ejb.Query.execute(Query.java:1728)
        at com.cisco.nm.qpm.web.util.grid.DataGrid.work(DataGrid.java:189)
        at com.cisco.nm.qpm.web.util.grid.DataGrid.<init>(DataGrid.java:103)
        at 
policy.group.NetworkElementSelection_1._jspService(NetworkElementSelection_1.java:909)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
        at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
        at org.apache.tomcat.core.Handler.service(Handler.java:235)
        at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
        at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
        at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
        at java.lang.Thread.run(Unknown Source)
ERROR 10/Jun/2003 13:49:13 [Thread-34] (Query.java:1748): ejb.Query - 
com.cisco.nm.qpm.server.util.HomeReferencesManagerException: 
javax.naming.NoInitialContextException: Cannot instantiate class: 
org.jnp.interfaces.NamingContextFactory [Root exception is 
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
        at 
com.cisco.nm.qpm.server.util.HomeReferencesManager.getHome(HomeReferencesManager.java:107)
        at com.cisco.nm.qpm.server.inventory.ejb.Query.execute(Query.java:1728)
        at com.cisco.nm.qpm.web.util.grid.DataGrid.work(DataGrid.java:189)
        at com.cisco.nm.qpm.web.util.grid.DataGrid.<init>(DataGrid.java:103)
        at 
policy.group.NetworkElementSelection_1._jspService(NetworkElementSelection_1.java:909)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
        at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
        at org.apache.tomcat.core.Handler.service(Handler.java:235)
        at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
        at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
        at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
        at java.lang.Thread.run(Unknown Source)



--
Guy Rouillier



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to