1 Reply Latest reply on Feb 13, 2004 9:56 AM by Scott Stark

    ClassnotfoundException loading log4JService

    togath Newbie

      I am having an issue with the loading of the log4jservice (actually most JMX services) on 3.2.3. Jboss starts loading the jboss-service.xml and this is the exception that I get (Only listing a few services):


      15:21:29,303 WARN [ServiceConfigurator] Failed to complete install
      java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.logging.
      Log4jService, msg=null
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.jav
      a:212)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:822)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:294)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:321)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:85)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.j
      ava:155)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)

      at org.jboss.system.ServiceController.install(ServiceController.java:225)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
      39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
      pl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDisp
      atcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
      39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
      pl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDisp
      atcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:534)
      15:21:29,323 WARN [ServiceConfigurator] Failed to complete install
      java.lang.ClassNotFoundException: org.jboss.services.binding.ServiceBindingManager
      at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      at org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:
      401)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoade
      r.java:242)
      at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java
      :114)
      at org.jboss.mx.loading.LoadMgr.nextTask(LoadMgr.java:281)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.jav
      a:181)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:822)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:294)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:321)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:85)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.j
      ava:155)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)

      at org.jboss.system.ServiceController.install(ServiceController.java:225)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
      39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
      pl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDisp
      atcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
      39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
      pl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDisp
      atcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:534)


      Below is also the config from the jboss-service.xml for the log4j service:


      resource:log4j.xml
      <!-- Set the org.apache.log4j.helpers.LogLog.setQuiteMode. As of log4j1.2.8
      this needs to be set to avoid a possible deadlock on exception at the
      appender level. See bug#696819.
      -->
      true


      Any help would be appreciated

      Thanks in advance.