0 Replies Latest reply on Mar 21, 2012 7:34 AM by hanushmayalla

    org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed.  org.apache.wink.server.internal.application.ServletWinkApplication org.apache.wink.server.utils.RegistrationUtils$InnerApplication or

    hanushmayalla Newbie

      Hi All,

       

      I am trying to deploy my application war in JBoss 7.1.0 but getting the following exception :

       

      04:05:52,754 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."MyApp.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApp.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "MyApp.war"

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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_23]

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

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed.  org.apache.wink.server.internal.application.ServletWinkApplication org.apache.wink.server.utils.RegistrationUtils$InnerApplication org.apache.wink.common.WinkApplication org.apache.wink.client.ClientConfig$1 org.apache.wink.common.internal.model.ModelUtils$1 org.apache.wink.common.internal.application.SimpleWinkApplication org.apache.wink.spring.Registrar

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

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

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

                ... 5 more

       

      Following is the dependecy causing the exception:

       

      <dependency>

                                    <groupId>wink-1.0</groupId>

                                    <artifactId>wink-1.0</artifactId>

                                    <version>1.0</version>

                          </dependency>

       

      Can any one please let me know how can I solve this?

       

      Thanks in Advance.

       

      Regards,

      hyalla