0 Replies Latest reply on May 16, 2002 9:03 AM by Kim Liang Ng

    tomcat-test.ear and PetStore 1.1.2 deployment problem

    Kim Liang Ng Newbie


      Hello

      I am running JBoss-2.4.4_Tomcat-4.0.1 with
      J2SE1.3.1_03 amd J2EE SDK 1.3.1. I ran
      run_with_catalina.sh and it started with no error.

      I have 2 problems:

      1)tomcat-test.ear was deployed with no error but
      when I execute the example with tracing, I get the following errors:


      StatelessSessionBean says: Hello World
      +++ java.net.URLClassLoader@aeb74
      +++ org.jboss.web.WebClassLoader@a4488
      - http://nikon.fmrco.com:8083/WebClassLoader@672904/
      +++ java.net.URLClassLoader@1e215b
      - file:/project/iotdev/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/lib1003.jar
      - file:/project/iotdev/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/tomcat-test.ear/ejb1003.jar
      +++ org.jboss.Main$NullURLsMLet@385c1
      +++ sun.misc.Launcher$AppClassLoader@3f52a5
      - file:/project/iotdev/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin/
      - file:/project/iotdev/j2sdk1_3_1_03/lib/tools.jar
      - file:/project/iotdev/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin/run.jar
      - file:/project/iotdev/JBoss-2.4.4_Tomcat-4.0.1/jboss/lib/crimson.jar
      +++ sun.misc.Launcher$ExtClassLoader@b9d04
      +++ 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)



      2) I have downloaded jps-1_1_2.zip, extracted it and patched with jps112-01.zip (provided by JBoss). When petstore was deployed, I got the following error:

      [08:46:25,921,J2eeDeployer] install EJB module petstore.ear
      [08:46:26,108,ContainerFactory] Deploying:file:/project/iotdev/JBoss-2.4.4_Tomca
      t-4.0.1/jboss/tmp/deploy/Default/petstore.ear
      [08:46:26,844,ContainerFactory] Verifying file:/project/iotdev/JBoss-2.4.4_Tomca
      t-4.0.1/jboss/tmp/deploy/Default/petstore.ear/ejb1001.jar
      [08:46:26,931,ContainerFactory]
      Bean : TheShoppingClientController
      Section: 16.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java cla
      ss that implements the enterprise bean's business methods.

      [08:46:26,945,ContainerFactory]
      Bean : TheShoppingClientController
      Section: 16.2
      Warning: The Bean Provider must specify the fully-qualified name of the enterprse bean's remote interface in the remote element.

      [08:46:26,971,ContainerFactory] Deploying TheShoppingClientController
      [08:46:27,217,JRMPContainerInvoker] Container Invoker RMI Port='4444'
      [08:46:27,218,JRMPContainerInvoker] Container Invoker Client SocketFactory='Defa
      ult'
      [08:46:27,218,JRMPContainerInvoker] Container Invoker Server SocketFactory='Defa
      ult'
      [08:46:27,218,JRMPContainerInvoker] Container Invoker Server SocketAddr='Default
      '
      [08:46:27,219,JRMPContainerInvoker] Container Invoker Server sslDomain='Default'
      [08:46:27,219,JRMPContainerInvoker] Container Invoker Optimize='true'
      [08:46:27,390,StatefulSessionInstancePool] config - MaximumSize=30, strictMaximu
      mSize=false, feederPolicy=null
      [08:46:27,469,ContainerFactory] DeploymentError
      java.lang.ClassNotFoundException: com.sun.j2ee.blueprints.petstore.control.ejb.S
      hoppingClientControllerHome
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
      at org.jboss.ejb.StatefulSessionContainer.init(StatefulSessionContainer.
      java:175)
      at org.jboss.ejb.Application.init(Application.java:202)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
      459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      :
      :
      :
      more error msgs


      Thanks in advance for any reply.