8 Replies Latest reply on Feb 19, 2013 7:17 AM by asegurpe

    Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly

    asegurpe

      I have one problem when deploy my project. I will explain:

       

      My project have one interface for web service that published with annotations.

       

      import javax.jws.WebMethod;
      import javax.jws.WebParam;
      import javax.jws.WebResult;
      import javax.jws.WebService;
      import javax.jws.soap.SOAPBinding;
      
       ... 
      
      @WebService(name = "UpdateServiceIntf", targetNamespace = "http://xxxx.net")
      @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE)
      public interface UpdateServiceIntf {
      
      
          @WebMethod(operationName = "xxxxx", action = "http://xxxx.net/yyyyy")
          @WebResult(name = "yyyyyyResponse", targetNamespace = "http://xxxx.net")
          public YYYYYY Response yyyyyy(
              @WebParam(name = "yyyyyy", targetNamespace = "http://xxxx.net")
              YYYYY yyyyyy);
      
      ....
      
      }
      

       

      This project runs perfectly on JBoss 4.2.3, JBoss 7.1 but not start. This class gives a ClassNotFoundException for this class.

       

      The jdk used is the 1.7.

       

      Thanks!!

        • 1. Re: Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly
          nickarls

          Full stack trace, please.

          • 2. Re: Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly
            asegurpe

            09:17:52,095 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.subunit."hcis.ear"."web.war".INSTALL: org.jb

            oss.msc.service.StartException in service jboss.deployment.subunit."hcis.ear"."web.war".INSTALL: Failed to process phase INSTALL of subdeployment "web.war" of deploymen

            t "hcis.ear"

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            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(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_20]

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

            at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_20]

            Caused by: java.lang.RuntimeException: Cannot load service endpoint interface class

            at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.createDDEndpoint(MetadataBuilder.java:250)

            at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.build(MetadataBuilder.java:79)

            at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.generateMetadataFromDeployment(DescriptorDeploymentAspect.java:153)

            at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.start(DescriptorDeploymentAspect.java:81)

            at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

            ... 5 more

            Caused by: java.lang.ClassNotFoundException: pl.tomeks.client.UpdateServiceIntf from [Module "deployment.hcis.ear.web.war:main" from Service Module Loader]

            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

            at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.createDDEndpoint(MetadataBuilder.java:246)

            ... 10 more

             

             

            203.733: [GC 203.734: [ParNew: 87031K->4826K(89600K), 0.0098152 secs] 224844K->142639K(908800K), 0.0099682 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]

            09:17:52,392 INFO [org.jboss.as.server] (HttpManagementService-threads - 1) JBAS015870: Deploy of deployment "hcis.ear" was rolled back with failure message {"JBAS0146

            71: Failed services" => {"jboss.deployment.subunit.\"hcis.ear\".\"web.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"hcis

            .ear\".\"web.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"web.war\" of deployment \"hcis.ear\""}}

            09:18:14,569 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment web.war in 22176ms

            09:18:14,605 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment hcis.ear in 22213ms

            09:18:14,628 INFO [org.jboss.as.controller] (HttpManagementService-threads - 1) JBAS014774: Service status report

            JBAS014777: Services which failed to start: service jboss.deployment.subunit."hcis.ear"."web.war".INSTALL: org.jboss.msc.service.StartException in service jboss.

            deployment.subunit."hcis.ear"."web.war".INSTALL: Failed to process phase INSTALL of subdeployment "web.war" of deployment "hcis.ear"

             

             

             

             

             

            Thanks!!

            • 3. Re: Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly
              jaikiran

              Caused by: java.lang.ClassNotFoundException: pl.tomeks.client.UpdateServiceIntf from [Module "deployment.hcis.ear.web.war:main" from Service Module Loader]

              Where exactly is that class packaged? Post the output of :

               

              jar -tf hcis.ear

               

              and

               

              jar -tf web.war

              • 4. Re: Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly
                asegurpe

                The output of jar -tf hcis.ear is:

                 

                jar.exe -tf hcis.ear

                META-INF/

                META-INF/MANIFEST.MF

                META-INF/application.xml

                META-INF/jboss-deployment-structure.xml

                web.war

                lib/

                lib/ifxjdbc.jar

                lib/ojdbc14.jar

                lib/ojdbc6.jar

                 

                And in output for jar -tf web.war appears this line:

                 

                WEB-INF/classes/com/hphis/hc3/actualitzacio/ws/xfire/pl/tomeks/client/UpdateServiceIntf.class

                 

                And there is no other line refers to this class.

                 

                Thanks another time!!

                • 5. Re: Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly
                  jaikiran

                  WEB-INF/classes/com/hphis/hc3/actualitzacio/ws/xfire/pl/tomeks/client/UpdateServiceIntf.class

                  Caused by: java.lang.ClassNotFoundException: pl.tomeks.client.UpdateServiceIntf

                  The mismatch is right there! The package names don't match.

                  • 6. Re: Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly
                    asegurpe

                    It's true!! ¬¬U The package names don't match.

                     

                    I searched on project, and I found this line:

                     

                    @WebService(serviceName = "zzzzzzzzzzzzzz", targetNamespace = "http://xxxx.net", endpointInterface = "pl.tomeks.client.UpdateServiceIntf")

                     

                    This line is apparently the error, but my question is: why in JBoss 4.2.3 start server correctly and in JBoss 7 fail?

                     

                     

                    I am very grateful for your help and thanks another time! x2

                    • 7. Re: Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly
                      jaikiran

                      I'm not sure why it deployed fine in AS4. Perhaps someone had packaged that class with the correct package name somewhere on the server or the deployment? Or maybe something else?

                      • 8. Re: Deploy project in JBoss 7.1 give error and JBoss 4.2.3 runs perfectly
                        asegurpe

                        I didn't found any other class with correct package. It's strange.

                         

                        Unsolved mystery