2 Replies Latest reply on Nov 6, 2014 11:54 AM by shashank.agarwal

    Error in Migration from Jboss5.1 to Jboss-eap-6.1

    shashank.agarwal

      Hi All,

       

      We have a web service which is bundled as a war file. It works fine in Jboss5.1 but throws up error when we try to deploy it on Jboss-eap-6.1.

      The war is deployed but it is failing to start and throws up an exception.

      Please find below the log of jboss:-

       

      14:48:34,964 INFO  [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.1.3.Final-redhat-3

      14:48:35,444 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory D:\Jboss\jboss-eap-6.1.0\jboss-eap-6.1\standalone\deployments

      14:48:35,474 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "FeedPackService_6full.war" (runtime-name: "FeedPackService_6full.war")

      14:48:35,564 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on 127.0.0.1:9999

      14:48:35,564 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on 127.0.0.1:4447

      14:48:36,236 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry xbean.jar in /D:/Jboss/jboss-eap-6.1.0/jboss-eap-6.1/standalone/deployments/FeedPackService_6full.war/WEB-INF/lib/js.jar  does not point to a valid jar for a Class-Path reference.

      14:48:36,327 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."FeedPackService_6full.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."FeedPackService_6full.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "FeedPackService_6full.war"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

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

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

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

          at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      Caused by: java.lang.RuntimeException: JBAS018043: com.edb.eiam.imhfws.wsi.FeedPackService has the wrong component type, it cannot be used as a web component

          at org.jboss.as.web.deployment.component.WebComponentProcessor.deploy(WebComponentProcessor.java:120)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          ... 5 more

       

      14:48:36,857 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "FeedPackService_6full.war" (runtime-name : "FeedPackService_6full.war")

      14:48:36,857 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."FeedPackService_6full.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."FeedPackService_6full.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "FeedPackService_6full.war"

       

      14:48:36,997 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

      14:48:36,997 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

      14:48:36,997 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) started (with errors) in 14815ms - Started 126 of 181 services (1 services failed or missing dependencies, 53 services are passive or on-demand)

       

       

       

      Any help here will be highly appreciated .

       

      Thanks,

      Shashank

        • 1. Re: Error in Migration from Jboss5.1 to Jboss-eap-6.1
          rafachies

          Please, paste here the com.edb.eiam.imhfws.wsi.FeedPackService  content.

          • 2. Re: Error in Migration from Jboss5.1 to Jboss-eap-6.1
            shashank.agarwal

            Hi Rafael,

             

            Thanks for your time

             

            I figured out the issue. Actually in one of the class file , @Stateless annotation was being used . For this annotation "javax.ejb.jar" was required which was missing from my configuration. I imported the relevant jar file and build the war again, after this it was successfully deployed on the jboss-eap-6.1 server.

             

            @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)   

            @Stateless

            public class FeedPackService {

             

            Also I had to create a deployment descriptor jboss-web.xml for defining the context-root of the service. After this code worked perfectly.

               

            Thanks,

            Shashank