Mountain View


JBAS011232: Only one JAX-RS Application Class allowed

Posted On : 26-Aug-2017 [963]



jboss.deployment.unit."*.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "*.war"
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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed.
com.sun.jersey.api.core.servlet.WebAppResourceConfig com.sun.jersey.server.impl.application.DeferredResourceConfig
com.sun.jersey.api.core.ResourceConfig com.sun.jersey.api.core.ScanningResourceConfig com.sun.jersey.api.core.DefaultResourceConfig
com.sun.jersey.api.core.ClassNamesResourceConfig com.sun.jersey.api.core.ApplicationAdapter
com.sun.jersey.api.core.ClasspathResourceConfig com.sun.jersey.api.core.PackagesResourceConfig
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.1.Final.jar:7.1.1.Final]
... 5 more
Comment below two lines from standalone.xml of Jboss

<extension module="org.jboss.as.jaxrs"/>
<subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>

Related Articles
   ♦ Specified JRE installation does not exist
   ♦ javax.servlet.ServletException: PWC1392: Error instantiating servlet class
   ♦ JBAS011232: Only one JAX-RS Application Class allowed
   ♦ The processing instuction target matching "[xX][mM][IL]" is not allowed
   ♦ Should not consume any form parameter
   ♦ jspService is exceeding the 65535 bytes limit
   ♦ Attribute qualified names must be unique within an element
   ♦ org.codehaus.jackson.JsonGenerationException cannot be resolved
Recent Articles
   ♦ StaticInjectorError(AppModule) in Angular.
   ♦ Angular-Spring rest example
   ♦ Interview topics
   ♦ All_Heirarchy_images
   ♦ Introduction to DTD schema
   ♦ Schemas in XML
   ♦ XML parsers and it's functionalities
   ♦ Elements VS Attributes in XML
Most Viewed Articles
   ♦ Operators in java
   ♦ npm ERR! code ENOTFOUND
   ♦ JBAS011232: Only one JAX-RS Application Class allowed
   ♦ Explain the command javac -d . filename.java?
   ♦ System.out.print(); is this statement will be executed fine?
   ♦ System.out.println(null); is this statement executed fine?
   ♦ javax.servlet.ServletException: PWC1392: Error instantiating servlet class
   ♦ Equality operator

Big Boat
Big Boat