1 2 Previous Next 15 Replies Latest reply on Apr 4, 2005 8:39 PM by Bruno Borges

    JBoss-3.2.4 and commons-logging.jar bug (?!)

    domosi Newbie

      I've placed the latest commons-logging.jar into the root of an .ear
      application archive file and registered it with the META-INF/application.xml file

      I dont know why, but this configuration causes strange deployment problems:

      java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
      at org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:91)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:64)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
      at $Proxy17.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:367)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher
      ........



      Is there anybody facing the same problem?



        • 1. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
          Darran Lofthouse Master

          Yes you are right, I think that your deployment is buggy.

          • 2. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
            Jason L. van Brackel Newbie

            You've seemed to trace this farther than I have. I'm getting the same exact thing here's my stack trace
            10:24:12,085 ERROR [BaseModelMBean] Error creating class org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
            10:24:12,085 ERROR [WebModule] Starting failed jboss.web.deployment:war=STACS.war,id=-638392674
            org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:315)
            at org.jboss.web.WebModule.startModule(WebModule.java:62)
            at org.jboss.web.WebModule.startService(WebModule.java:40)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
            at $Proxy17.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:367)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy31.start(Unknown Source)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:313)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy7.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:367)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
            at org.jboss.Main.boot(Main.java:144)
            at org.jboss.Main$1.run(Main.java:389)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)
            at org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:662)
            at org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:51)
            at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:455)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:148)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:68)
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)
            ... 94 more
            Caused by: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)
            at java.lang.Class.getMethod(Class.java:978)
            at org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:646)
            ... 99 more
            10:24:12,101 WARN [ServiceController] Problem starting service jboss.web.deployment:war=STACS.war,id=-638392674
            MBeanException: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            Cause: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            at org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:91)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:64)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
            at $Proxy17.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:367)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy31.start(Unknown Source)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:313)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy7.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:367)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
            at org.jboss.Main.boot(Main.java:144)
            at org.jboss.Main$1.run(Main.java:389)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:315)
            at org.jboss.web.WebModule.startModule(WebModule.java:62)
            at org.jboss.web.WebModule.startService(WebModule.java:40)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            ... 86 more
            Caused by: ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)
            at org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:662)
            at org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:51)
            at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:455)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:148)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:68)
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)
            ... 94 more
            Caused by: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)
            at java.lang.Class.getMethod(Class.java:978)
            at org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:646)
            ... 99 more
            10:24:12,101 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.2.4/server/working/tmp/deploy/tmp40412STACS.ear-contents/STACS.war
            org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:315)
            at org.jboss.web.WebModule.startModule(WebModule.java:62)
            at org.jboss.web.WebModule.startService(WebModule.java:40)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
            at $Proxy17.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:367)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy31.start(Unknown Source)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:313)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy7.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:367)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
            at org.jboss.Main.boot(Main.java:144)
            at org.jboss.Main$1.run(Main.java:389)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)
            at org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:662)
            at org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:51)
            at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:455)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:148)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:68)
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)
            ... 94 more
            Caused by: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)
            at java.lang.Class.getMethod(Class.java:978)
            at org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:646)
            ... 99 more
            10:24:12,101 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.2.4/server/working/deploy/STACS.ear
            org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:315)
            at org.jboss.web.WebModule.startModule(WebModule.java:62)
            at org.jboss.web.WebModule.startService(WebModule.java:40)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
            at $Proxy17.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:367)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy31.start(Unknown Source)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:313)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy7.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:367)
            at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
            at org.jboss.Main.boot(Main.java:144)
            at org.jboss.Main$1.run(Main.java:389)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)
            at org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:662)
            at org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:51)
            at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:455)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:148)
            at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:68)
            at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:306)
            ... 94 more
            Caused by: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String)
            at java.lang.Class.getMethod(Class.java:978)
            at org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:646)
            ... 99 more
            10:24:12,116 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
            Incompletely deployed packages:
            org.jboss.deployment.DeploymentInfo@c657d284 { url=file:/C:/jboss-3.2.4/server/working/deploy/STACS.ear }
            deployer: org.jboss.deployment.EARDeployer@10d4f27
            status: Deployment FAILED reason: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            state: FAILED
            watch: file:/C:/jboss-3.2.4/server/working/deploy/STACS.ear
            lastDeployed: 1087827849601
            lastModified: 1087827848977
            mbeans:

            MBeans waiting for other MBeans:
            ObjectName: jboss.web.deployment:war=STACS.war,id=-638392674
            state: FAILED
            I Depend On:
            Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            Cause: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            ObjectName: jboss.j2ee:service=EARDeployment,url='STACS.ear'
            state: CREATED
            I Depend On:
            Depends On Me:

            MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
            ObjectName: jboss.web.deployment:war=STACS.war,id=-638392674
            state: FAILED
            I Depend On:
            Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            Cause: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (ReflectionException: Cannot find setter method setDocBase null
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.setDocBase(java.lang.String))
            ObjectName: jboss.j2ee:service=EARDeployment,url='STACS.ear'
            state: CREATED
            I Depend On:
            Depends On Me:

            10:24:13,085 INFO [Server] JBoss (MX MicroKernel) [3.2.4 (build: CVSTag=JBoss_3_2_4 date=200406040847)] Started in 24s:680ms
            10:24:13,085 INFO [Tomcat5] Saw org.jboss.system.server.started notification, starting connectors
            10:24:13,178 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8443
            10:24:13,241 WARN [MapperListener] Error registering contexts
            ReflectionException: Cannot find method findMappingObject with this signature
            Cause: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.findMappingObject()
            at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:490)
            at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:109)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.apache.coyote.tomcat5.MapperListener.registerContext(MapperListener.java:356)
            at org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:130)
            at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537)
            at org.jboss.web.tomcat.tc5.Tomcat5.startConnectors(Tomcat5.java:369)
            at org.jboss.web.tomcat.tc5.Tomcat5.handleNotification(Tomcat5.java:394)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
            at $Proxy30.handleNotification(Unknown Source)
            at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:98)
            at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:81)
            at org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:786)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:435)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
            at org.jboss.Main.boot(Main.java:144)
            at org.jboss.Main$1.run(Main.java:389)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: java.lang.NoSuchMethodException: org.apache.commons.modeler.BaseModelMBean.findMappingObject()
            at java.lang.Class.getMethod(Class.java:978)
            at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:477)
            ... 21 more

            • 3. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
              Michael Lipp Newbie

              I can confirm the problem. I haven't referenced commons-logging.jar in application.xml, I have simply packaged it in the ear (and war) files. Something with class loading must be broken in 3.2.4.

              • 4. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                bandini Newbie

                I can confirm that removing commons-logging.jar (and commons-logging-api.jar) from the ear makes the problem go away. I just experienced the same issue when moving an ear that worked fine under 3.2.3 to JBoss 3.2.4.

                You may be referencing commons-logging from within your ear without knowing it - many jakarta distributions use it under the covers.

                The commons-logging.jar is distributed under the jboss/lib directory - my theory (i.e. wild-ass guess) is that something in 3.2.4 is using commons-logging now - perhaps a piece of tomcat 5 - in a different way and gumming up the deployments.

                There doesn't seem to be any downside to removing commons-logging from my ear - all my log statements (even those that use commons instead of log4j directly) seem to be working properly.

                Can anyone confirm this behavior in the JBoss 4 beta? Any guess if this will be a stable feature.

                • 5. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                  Michael Lipp Newbie

                  The problem with removing commons-logging.jar (if used by the application) is that the ear will no longer deploy in an application server that does not have commons-logging.jar "built-in". This is quite opposite of the idea of having an ear that you can deploy in various containers.

                  - Michael

                  • 6. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                    Michael Lipp Newbie

                    The problem still exists in 3.2.5. BTW: I didn't regitsr my commons-logging.jar with application.xml. I simply put it in EAR/lib/ and have it in the classpath of one of the ejbs.jar.

                    - Michael

                    • 7. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                      domosi Newbie

                      I sent a short description of this problem to
                      the JBoss BUG database at sourceforge.net.
                      (....)

                      • 8. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                        crowse Newbie

                        Hi,
                        I am getting the same problem on 3.2.5

                        My problem is sporadic and inconsistent. I work on the same code, dont change libraries and all of a sudden the app wont deploy.

                        If I delete server/default/work and server/default/tmp directories, and restart the server the problem usually goes away.

                        However today, when I delete and restart the server, the problem does not go away.

                        I have all the jar/war/etc from apache in server/lib since I need to reduce deployment file size. I dont want to take them out and put them in my jar/war/ear.

                        I dont have any of these problems with the same jar/war/ears on 3.2.3 where the app is working well and stably.

                        Chris

                        • 9. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                          Corey Johnston Newbie

                          Did anybody actually find a workable solution leaving the commons-logging packages inside of their JAR/WAR/EARS and working in conj with JBoss' own copies?

                          • 10. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                            Angelo Immediata Newbie

                            Hi All; do you know if this problem is still present in JBoss 3.2.6?
                            Have you found a solution, a patch in order to avoid this problem?
                            Thanks

                            • 11. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                              Thomas Krug Newbie

                              Hi,

                              I did have the same problem and solved it the following way:

                              Either set the "isolated" attribute in the ear-deployer.xml to true or include a jboss-app.xml or jboss-web.xml, configured as shown in http://www.jboss.org/wiki/Wiki.jsp?page=Logging, in your app.

                              The problem occures since jboss.web also uses the jar!

                              Hope it helps the same way for you!

                              Cheers

                              Thomas

                              • 12. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                                harm laat, de Newbie

                                Sorry to kick this message up again. But I'm running into the same problem using 3.2.6.... I cannot find any bug report in the JIRA. I also tried the workaround provided a few posts up. But nothing seems to work.

                                Please suggest....

                                • 13. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                                  Bruno Melloni Newbie

                                  The following is workable, but not great:

                                  Try jBoss 4.0.0 (exactly that version, not 4.0.x). The default config in 4.0.0 is supposed to be J2EE 1.4 compliant.

                                  If that is not enough, look at placing META-INF/jboss-app.xml in your EAR.

                                  Sample file:

                                  <?xml version="1.0"?>
                                  <jboss-app>
                                  <loader-repository>
                                  co.com:loader=co.ear
                                  <loader-repository-config>
                                  java2ParentDelegation=false
                                  </loader-repository-config>
                                  </loader-repository>
                                  </jboss-app>

                                  The above worked for me. But jBoss is leaking logging messages that were supposed to go to the server log in my application log. A few creative rules in log4j.xml did the trick to silence them (of course the server messages are now no longer logged anywhere).

                                  • 14. Re: JBoss-3.2.4 and commons-logging.jar bug (?!)
                                    Bruno Melloni Newbie

                                    ignore this line, just setting notifies.

                                    1 2 Previous Next