2 Replies Latest reply on Aug 30, 2014 3:50 PM by Dawid Malinowski

    ENABLE_MODELER leads to NoClassDefFoundError

    Darius Schier Newbie

      To enable the export of standard Catalina/jboss.web-MBeans we set -Dorg.apache.tomcat.util.ENABLE_MODELER=true.

      While deploying wars we get the attached exception. The application itself seems to be ok.

      Without the property, everything starts fine. Maybe some module dependency is missing?

       

      We use JBoss 7.1.1.

       

      Regards

      Darius

       

       

      15:42:47,165 INFO  [org.jboss.weld.deployer] (MSC service thread 1-16) JBAS016008: Starting weld service for deployment test.war

      15:42:47,212 INFO  [org.apache.catalina.core.StandardPipeline] (MSC service thread 1-3) Can't register valve org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve[/test]: java.lang.NoClassDefFoundError: javax/servlet/ServletException

          at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.6.0_33]

          at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [rt.jar:1.6.0_33]

          at java.lang.Class.privateGetPublicMethods(Class.java:2547) [rt.jar:1.6.0_33]

          at java.lang.Class.getMethods(Class.java:1410) [rt.jar:1.6.0_33]

          at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.createManagedBean(MbeansDescriptorsIntrospectionSource.java:304) [jbossweb-7.0.13.Final.jar:]

          at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.execute(MbeansDescriptorsIntrospectionSource.java:84) [jbossweb-7.0.13.Final.jar:]

          at org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource.loadDescriptors(MbeansDescriptorsIntrospectionSource.java:77) [jbossweb-7.0.13.Final.jar:]

          at org.apache.tomcat.util.modeler.Registry.load(Registry.java:753) [jbossweb-7.0.13.Final.jar:]

          at org.apache.tomcat.util.modeler.Registry.loadDescriptors(Registry.java:867) [jbossweb-7.0.13.Final.jar:]

          at org.apache.tomcat.util.modeler.Registry.findManagedBean(Registry.java:650) [jbossweb-7.0.13.Final.jar:]

          at org.apache.tomcat.util.modeler.Registry.findManagedBean(Registry.java:964) [jbossweb-7.0.13.Final.jar:]

          at org.apache.tomcat.util.modeler.Registry.registerComponent(Registry.java:793) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:308) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:237) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3786) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_33]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_33]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_33]

       

      15:42:47,213 INFO  [org.jboss.web] (MSC service thread 1-3) JBAS018210: Registering web context: /test

      15:42:47,244 INFO  [org.jboss.as.server] (management-handler-thread - 17) JBAS018559: Deployed "test.war"