0 Replies Latest reply on Jan 16, 2012 4:45 AM by Arun Ramachandran

    Mule with Jboss - Deployment issue

    Arun Ramachandran Newbie

      I am deploying a war file containing all the libraries necessary for Mule ESB 3.2 on my JBoss AS 7.0.2.

       

      Deployment fails and the following is logged.

       

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

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

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

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

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

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

      at java.lang.Thread.run(Thread.java:619) [:1.6.0_16]

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

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

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

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

      ... 5 more

       

      The 2nd exception (Only one JAX-RS Application Class allowed.) is recorded many times in the forum but none really giving a solution. Can any one throw some light on the error?

       

      The issue is occuring only during deploying Mule webservices on JBoss, other web services are getting deployed.

       

      Thanks

       

      Arun