0 Replies Latest reply on May 17, 2014 3:24 AM by Hemalata Sonawane

    JBoss EAP 6.2 issues in deployment with JAX RS (Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed)

    Hemalata Sonawane Newbie

      Hi

       

      i am facing a issues when migrating my old application from WebSphere server to JBoss EAP 6.2 and below is given error log

      Please take a look of it and let me know for further information if required.

       

       

      12:12:29,184 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.subunit."WSDispatcherEAR.ear"."WSDispatcher.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."WSDispatcherEAR.ear"."WSDispatcher.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "WSDispatcher.war" of deployment "WSDispatcherEAR.ear"

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

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

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

        at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_21]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed.  com.sun.jersey.api.core.ClasspathResourceConfig com.sun.jersey.api.core.ApplicationAdapter com.sun.jersey.api.core.ResourceConfig com.sun.jersey.api.core.ClassNamesResourceConfig com.sun.jersey.api.core.DefaultResourceConfig com.sun.jersey.api.core.PackagesResourceConfig com.sun.jersey.server.impl.application.ComponentsResourceConfig

        at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:206)

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

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

        ... 5 more

       

       

      12:12:29,439 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "WSDispatcherEAR.ear" (runtime-name : "WSDispatcherEAR.ear")

      12:12:29,453 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.subunit."WSDispatcherEAR.ear"."WSDispatcher.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."WSDispatcherEAR.ear"."WSDispatcher.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "WSDispatcher.war" of deployment "WSDispatcherEAR.ear"

       

       

      Thanks in advance.