4 Replies Latest reply on Apr 27, 2002 11:51 PM by Rajat Goon

    Execute the example with tracing

    Rajat Goon Newbie

      Hi,
      I am running Jboss 2.4.4 with Tomcat under Redhat 7.2.

      Out of these three examples under jboss/index.html

      Execute the example
      Execute the example with tracing
      Execute the example with speed test

      when I am clicking the middle one, I am getting the following error, although the other examples are running fine. Any help is greatly appreciated.

      Thanks,
      -Rajat.

      Servlet calling EJB
      Accessing EJB: java:comp/env/ejb/NonOptimized, method=getMessage()

      StatelessSessionBean says: Hello World
      +++ java.net.URLClassLoader@533a6b
      +++ org.jboss.web.WebClassLoader@667e6a
      - http://mke-tajmahal:8083/WebClassLoader@6717034/
      +++ java.net.URLClassLoader@330bf
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/tmp/deploy/Default/lib1002.jar
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/tmp/deploy/Default/tomcat-test.ear/ejb1002.jar
      +++ org.jboss.Main$NullURLsMLet@4f1d0d
      +++ sun.misc.Launcher$AppClassLoader@7fdcde
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/bin/
      - file:/usr/local/j2sdk1.3.1/lib/tools.jar
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/bin/run.jar
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/lib/crimson.jar
      +++ sun.misc.Launcher$ExtClassLoader@7d8483
      +++ Call stack:
      java.lang.RuntimeException
      at org.jboss.test.tomcat.ejb.bean.StatelessSessionBean.getClassLoaders(StatelessSessionBean.java:66)
      at org.jboss.test.tomcat.ejb.bean.StatelessSessionBean.getMessageAndTrace(StatelessSessionBean.java:38)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:349)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      at $Proxy5.getMessageAndTrace(Unknown Source)
      at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:79)
      at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:40)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      at org.apache.tomcat.core.Handler.service(Handler.java:287)
      at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
      at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      at java.lang.Thread.run(Thread.java:484)

      Accessing EJB: java:comp/env/ejb/Optimized, method=getMessage()

      StatelessSessionBean says: Hello World
      +++ java.net.URLClassLoader@6a3960
      +++ org.jboss.web.WebClassLoader@667e6a
      - http://mke-tajmahal:8083/WebClassLoader@6717034/
      +++ java.net.URLClassLoader@330bf
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/tmp/deploy/Default/lib1002.jar
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/tmp/deploy/Default/tomcat-test.ear/ejb1002.jar
      +++ org.jboss.Main$NullURLsMLet@4f1d0d
      +++ sun.misc.Launcher$AppClassLoader@7fdcde
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/bin/
      - file:/usr/local/j2sdk1.3.1/lib/tools.jar
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/bin/run.jar
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/lib/crimson.jar
      +++ sun.misc.Launcher$ExtClassLoader@7d8483
      +++ Call stack:
      java.lang.RuntimeException
      at org.jboss.test.tomcat.ejb.bean.StatelessSessionBean.getClassLoaders(StatelessSessionBean.java:66)
      at org.jboss.test.tomcat.ejb.bean.StatelessSessionBean.getMessageAndTrace(StatelessSessionBean.java:38)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:504)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      at $Proxy3.getMessageAndTrace(Unknown Source)
      at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:79)
      at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:41)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      at org.apache.tomcat.core.Handler.service(Handler.java:287)
      at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
      at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      at java.lang.Thread.run(Thread.java:484)

      Servlet Trace Info:

      +++ AdaptiveClassLoader( )
      +++ sun.misc.Launcher$AppClassLoader@7fdcde
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/bin/
      - file:/usr/local/j2sdk1.3.1/lib/tools.jar
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/bin/run.jar
      - file:/usr/local/JBoss-2.4.4_Tomcat-3.2.3/jboss/lib/crimson.jar
      +++ sun.misc.Launcher$ExtClassLoader@7d8483
      +++ Call stack:
      java.lang.RuntimeException
      at org.jboss.test.tomcat.servlet.PrintClassLoaders.getClassLoaders(PrintClassLoaders.java:81)
      at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:45)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
      at org.apache.tomcat.core.Handler.service(Handler.java:287)
      at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
      at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
      at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
      at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
      at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
      at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
      at java.lang.Thread.run(Thread.java:484)

      JNDI ENC:

      +- security
      | +- realmMapping
      | +- subject[link -> java:/jaas/null/subject]
      | +- securityMgr
      | +- security-domain[link -> java:/jaas/null]