3 Replies Latest reply on Aug 21, 2012 4:58 AM by Nicklas Karlsson

    org.jboss.as.server.deployment.DeploymentUnitProcessingException:  Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation

    mukul goel Newbie

      Now I am getting the following exception

       

       

       

      Hi, I am trying to migrate a springs 3.1 application from tomcat 7 to JBoss AS7.2 ALPHA1.

      my app uses CXF version 2.3.2

       

       

      I am stuck here, please help..  I am attaching structure of my war and my standalone.xml
      I am getting the following error while deploying

       

      WARN  [org.jboss.as.ee] (MSC service thread 1-1) JBAS011006: Not installing optional component org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation

                at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:83) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)

                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(Unknown Source) [rt.jar:1.6.0_32]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_32]

                at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]

       

       

      15:00:42,703 WARN  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016012: Deployment deployment "PolicyWeb.war" contains CDI annotations but beans.xml was not found.

      15:00:43,407 INFO  [org.jboss.web] (MSC service thread 1-6) JBAS018210: Register web context: /PolicyWeb

      15:00:45,359 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-6) Error listenerStart

      15:00:45,359 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-6) Context [/PolicyWeb] startup failed due to previous errors

      15:00:45,402 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.web.deployment.default-host./PolicyWeb: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./PolicyWeb: JBAS018040: Failed to start context

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:106)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_32]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_32]

                at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]

        • 2. Re: org.jboss.as.server.deployment.DeploymentUnitProcessingException:  Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation
          mukul goel Newbie

          Thanks for the quick reply Nicklas,

           

          Yes it does seem related to AS7-5178

           

          Yes CXF2.3.2 jar was inside my war, i removed that and restart and now getting the following exception

           

          Are there any other (spring or cxf) Jars inside my war ( refer to policyweb.txt) that i need to remove ?

           

          ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."PolicyWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."PolicyWeb.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "PolicyWeb.war"

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_32]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_32]

                    at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: org.apache.cxf.transport.servlet.CXFServlet from [Module "deployment.PolicyWeb.war:main" from Service Module Loader]

                    at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:295)

                    at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scanWebDeployment(JaxrsScanningProcessor.java:160)

                    at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:109)

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                    ... 5 more

          Caused by: java.lang.ClassNotFoundException: org.apache.cxf.transport.servlet.CXFServlet from [Module "deployment.PolicyWeb.war:main" from Service Module Loader]

                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                    at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:293)

                    ... 8 more

          • 3. Re: org.jboss.as.server.deployment.DeploymentUnitProcessingException:  Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation
            Nicklas Karlsson Master

            You will probably need to add a dependency in the manifest to the cxf-module required (*

             

             

             

             

             

             

             

             

            (* Which in practice means hunting the modules for the *correct* module the class happens to be in so you know what module to add. I never found a scientific way of doing this