0 Replies Latest reply on Oct 26, 2001 2:59 AM by sleeper

    AutoDeployer error

    sleeper Newbie

      Hello,

      Does the AutoDeployer use a different classpath than the JBoss server runtime?

      I have my own log4j category and an EJB is using it. When I deploy the EJB, the AutoDeployer Verifier is complaining it cannot find the log4j classes. The JBoss server uses log4j itself and is able to load the classes from its lib\ext\log4j.jar. So why the AutoDeployer is complaining?

      This is my environment from the JBoss log
      -----------------------------------------------------
      JBOSS_CLASSPATH=L:\appserver\JBoss-2.4.1_Tomcat-3.2.3\tomcat\lib\servlet.jar;C:\Tool\jdk1.3.1_01/lib/tools.jar;run.jar;../lib/crimson.jar
      jboss.home = L:\appserver\JBoss-2.4.1_Tomcat-3.2.3\jboss
      Using JAAS LoginConfig: file:/L:/appserver/JBoss-2.4.1_Tomcat-3.2.3/jboss/conf/tomcat/auth.conf
      Using configuration "tomcat"
      [root] Started Log4jService, config=file:/L:/appserver/JBoss-2.4.1_Tomcat-3.2.3/jboss/conf/tomcat/log4j.properties
      [Info] Java version: 1.3.1_01,Sun Microsystems Inc.
      [Info] Java VM: Java HotSpot(TM) Client VM 1.3.1_01,Sun Microsystems Inc.
      [Info] System: Windows 2000 5.0,x86
      ------------------------------------------------------

      And the exception stack trace is at the end of this message.

      Thanks in advance for your help.

      -------------------------------------------------------
      [AutoDeployer] Auto deploy of file:/L:/appserver/JBoss-2.4.1_Tomcat-3.2.3/jboss/deploy/testejb.jar
      [J2EE Deployer Default] Deploy J2EE application: file:/L:/appserver/JBoss-2.4.1_Tomcat-3.2.3/jboss/deploy/testejb.jar
      [J2eeDeployer] Create application testejb.jar
      [J2eeDeployer] install EJB module testejb.jar
      [Container factory] Deploying:file:/L:/appserver/JBoss-2.4.1_Tomcat-3.2.3/jboss/tmp/deploy/Default/testejb.jar
      [Verifier] Verifying file:/L:/appserver/JBoss-2.4.1_Tomcat-3.2.3/jboss/tmp/deploy/Default/testejb.jar/ejb1003.jar
      [Verifier] java.lang.NoClassDefFoundError: org/apache/log4j/Category
      [Verifier] at java.lang.Class.getMethods0(Native Method)
      [Verifier] at java.lang.Class.getMethods(Unknown Source)
      [Verifier] at org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVerifier.java:443)
      [Verifier] at org.jboss.verifier.strategy.EJBVerifier11.verifySessionBean(EJBVerifier11.java:567)
      [Verifier] at org.jboss.verifier.strategy.EJBVerifier11.checkSession(EJBVerifier11.java:93)
      [Verifier] at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:134)
      [Verifier] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
      [Verifier] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
      [Verifier] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Verifier] at java.lang.reflect.Method.invoke(Native Method)
      [Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Verifier] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Verifier] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Verifier] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Verifier] at java.lang.reflect.Method.invoke(Native Method)
      [Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Verifier] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Verifier] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Verifier] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [Verifier] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Verifier] at java.lang.reflect.Method.invoke(Native Method)
      [Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Verifier] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Verifier] at $Proxy0.start(Unknown Source)
      [Verifier] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Verifier] at java.lang.reflect.Method.invoke(Native Method)
      [Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Verifier] at org.jboss.Main.(Main.java:210)
      [Verifier] at org.jboss.Main$1.run(Main.java:116)
      [Verifier] at java.security.AccessController.doPrivileged(Native Method)
      [Verifier] at org.jboss.Main.main(Main.java:112)
      [Container factory] Deploying Test
      [J2EE Deployer Default] Starting testejb.jar failed!
      [Default] java.lang.NoClassDefFoundError: org/apache/log4j/Category
      [Default] at java.lang.Class.getMethod0(Native Method)
      [Default]
      [Default] at java.lang.Class.getMethod(Unknown Source)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer.setUpBeanMappingImpl(StatelessSessionContainer.java:422)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer.setupBeanMapping(StatelessSessionContainer.java:452)
      [Default]
      [Default] at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:155)
      [Default]
      [Default] at org.jboss.ejb.Application.init(Application.java:202)
      [Default]
      [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      [Default]
      [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:494)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [Default]
      [Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [Default]
      [Default] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [Default]
      [Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Default]
      [Default] at $Proxy0.start(Unknown Source)
      [Default]
      [Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Default]
      [Default] at java.lang.reflect.Method.invoke(Native Method)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Default]
      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Default]
      [Default] at org.jboss.Main.(Main.java:210)
      [Default]
      [Default] at org.jboss.Main$1.run(Main.java:116)
      [Default]
      [Default] at java.security.AccessController.doPrivileged(Native Method)
      [Default]
      [Default] at org.jboss.Main.main(Main.java:112)
      [Default]
      [J2EE Deployer Default] Module testejb.jar is not running
      [J2EE Deployer Default] Destroying application testejb.jar
      [AutoDeployer] Deployment failed:file:/L:/appserver/JBoss-2.4.1_Tomcat-3.2.3/jboss/deploy/testejb.jar
      [AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error while starting testejb.jar: org/apache/log4j/Category, Cause: java.lang.NoClassDefF
      oundError: org/apache/log4j/Category
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:524)
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:468)
      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
      [AutoDeployer] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
      [AutoDeployer] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [AutoDeployer] at $Proxy0.start(Unknown Source)
      [AutoDeployer] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [AutoDeployer] at org.jboss.Main.(Main.java:210)
      [AutoDeployer] at org.jboss.Main$1.run(Main.java:116)
      [AutoDeployer] at java.security.AccessController.doPrivileged(Native Method)
      [AutoDeployer] at org.jboss.Main.main(Main.java:112)