Hi Guys,
        I am actually breaking my head literally on this issue.

        Placing the scenario in a diffrent angle. The following is a lookup logs I have inmy scenario.

DEBUG 12/Jun/2003 11:20:17 [Thread-36] (HomeReferencesManager.java:164): util.HomeReferencesManager - getHome() returning class $Proxy0

DEBUG 12/Jun/2003 11:20:17 [Thread-36] (Query.java:1730): ejb.Query - jb_007 ---> execute() :: queryHome = QuerySessionHome

DEBUG 12/Jun/2003 11:20:17 [Thread-36] (Query.java:1735): ejb.Query - jb_007 ---> execute() :: queryRemote = QuerySession:Stateless

As you can see after getting the Proxy, the create() method call on the Stateless Bean works fine. This is on one my tabs in the UI(Tomcat3.3).

On the next tab, when I move with the same flow:

DEBUG 12/Jun/2003 11:20:44 [Thread-36] (HomeReferencesManager.java:164): util.HomeReferencesManager - getHome() returning class $Proxy0

DEBUG 12/Jun/2003 11:20:44 [Thread-36] (Query.java:1730): ejb.Query - jb_007 ---> execute() :: queryHome = QuerySessionHome

ERROR 12/Jun/2003 11:20:44 [Thread-36] (Query.java:1747): ejb.Query - java.lang.reflect.UndeclaredThrowableException: java.lang.ClassNotFoundException: com.cisco.nm.qpm.server.inventory.ejb.QuerySession
        at java.net.URLClassLoader$1.run(Unknown Source)

As you can see when I make a call to get same bean remote thru create(), this error is thrown. I dont think this is a classpath issue, coz, tehn the lookup at first time itself.

THIS IS CONFUSING.

Please suggest if you have any ideas regarding this scenario.

Thanks
Muraly

At 18:14 11/06/2003 +0530, you wrote:
Hi Guy,
        I would like to explain the scenario in more detail.
When I perform a lookup to this particular Stateless session bean, it works on all the scenario's except for the error one. I am pasting a debug messages from my log for both the successfull lookup as well as for the error ones

Success
----------

DEBUG 11/Jun/2003 16:58:00 [Thread-36] (HomeReferencesManager.java:249): util.HomeReferencesManager - getContext( Properties env ) Context: [EMAIL PROTECTED]

DEBUG 11/Jun/2003 16:58:00 [Thread-36] (Query.java:1732): ejb.Query - jb_007 ---> execute() :: queryHome = QuerySessionHome

DEBUG 11/Jun/2003 16:58:00 [Thread-36] (Query.java:1734): ejb.Query - jb_007 ---> execute() :: queryRemote = QuerySession:Stateless


where 'queryHome' and ''queryRemote'' are the Home and Remote interfaces.

Error
-------

ERROR 11/Jun/2003 16:58:30 [Thread-36] (HomeReferencesManager.java:106): util.HomeReferencesManager - Cannot instantiate class: org.jnp.interfaces.NamingContextFactory

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

So as you can see both  the scenario occur in the same flow. I.e in successfull the initail context intialization is successfull and the other one ERROR.

One doubt is, Is there any bug related to this in JBoss3.0.4? Reason for the doubt being I upgraded to JBoss3.0.4 from 3.0 because of one bug in the transaction race condition(suggested by Adrian).

Thanks
Muraly

At 15:15 10/06/2003 -0400, you wrote:
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