0 Replies Latest reply on Apr 16, 2002 7:13 PM by fletch

    java.lang.NoClassDefFoundError: org/apache/log4j/Priority JB

    fletch Newbie

      I have been banging my head onto the keyboard on this one... I cannot get a basic install of JBoss 2.4.3 standalone running on Mac OS X. I have successfully run the JBoss/Catalina combo on Mac OS X. For some reason, there are problems with the log4j classes not being found.

      What I have:
      JDK 1.3.1 default on Mac OS X
      Plain install of 2.4.3 in /Library/JBoss
      added jmxri.jar & crimson.jar into /Library/Java/Extensions (on Mac OS X this is similar to the jre/lib/ext on Windows).

      Adding log4j.jar to /Library/Java/Extensions makes the class found, but then log4j starts using that as its base directories. I have read messages on the forum that say that log4j must be loaded by the JBoss classloader, anyway.

      I am stumped. I would appreciate any help from the JBoss gods, because my incantations are not working.

      Thanks,
      Damon

      Result of running bin/run.sh (with log4j.jar in jboss/lib/ext)
      --
      JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar
      jboss.home = /Library/JBoss
      Using JAAS LoginConfig: file:/Library/JBoss/conf/default/auth.conf
      Using configuration "default"
      java.lang.NoClassDefFoundError
      at java.lang.reflect.Constructor.newInstance(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2210)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:761)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError: org/apache/log4j/Priority
      at org.jboss.util.Info.(Info.java:30)
      at java.lang.reflect.Constructor.newInstance(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2117)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:509)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator
      at org.jboss.logging.Log4jService.start(Log4jService.java:111)
      at org.jboss.logging.Log4jService.preRegister(Log4jService.java:137)
      at com.sun.management.jmx.MBeanServerImpl.preRegisterInvoker(MBeanServerImpl.java:2245)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:513)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError: org/apache/log4j/Priority
      at org.jboss.util.ServiceControl.(ServiceControl.java:31)
      at java.lang.reflect.Constructor.newInstance(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2117)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:509)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError: org/apache/log4j/Priority
      at org.jboss.util.ClassPathExtension.(ClassPathExtension.java:32)
      at java.lang.reflect.Constructor.newInstance(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2210)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:761)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError: org/apache/log4j/Priority
      at org.jboss.util.Shutdown.(Shutdown.java:31)
      at java.lang.reflect.Constructor.newInstance(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2117)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:509)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError
      at java.lang.reflect.Constructor.newInstance(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2210)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:761)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError: org/apache/log4j/Priority
      at java.lang.Class.getConstructors0(Native Method)
      at java.lang.Class.getConstructors(Class.java:775)
      at com.sun.management.jmx.Introspector.testCompliance(Introspector.java:95)
      at com.sun.management.jmx.MetaData.testCompliance(MetaData.java:132)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:507)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError: org/apache/log4j/Priority
      at org.jboss.configuration.ConfigurationService.(ConfigurationService.java:898)
      at java.lang.reflect.Constructor.newInstance(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2117)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:509)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:523)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      java.lang.NoClassDefFoundError
      at java.lang.reflect.Constructor.newInstance(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerImpl.java:2210)
      at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:761)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
      at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
      at org.jboss.Main.(Main.java:193)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      javax.management.InstanceNotFoundException: DefaultDomain:service=Configuration
      at com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:1678)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
      at org.jboss.Main.(Main.java:213)
      at org.jboss.Main$1.run(Main.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:123)
      JBoss 2.4.3 Started in 0m:0s