Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8830

"Only one JAX-RS Application Class allowed.." on JBoss 6 final

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • No Release
    • 6.0.0.Final
    • None
    • None

      See forum discussion for details.

            [JBAS-8830] "Only one JAX-RS Application Class allowed.." on JBoss 6 final

            In my case : http://spring-java-ee.blogspot.com/2011/12/how-to-resolve-spring-data-neo4j-jersey.html

            Ultimately I needed to

            1. exclude jersey-server from my app, and
            2. use jboss-deployment-structure.xml to prevent loading JBoss's own jackson

            no change to instance wide standalone.xml needed

            Hendy Irawan (Inactive) added a comment - In my case : http://spring-java-ee.blogspot.com/2011/12/how-to-resolve-spring-data-neo4j-jersey.html Ultimately I needed to 1. exclude jersey-server from my app, and 2. use jboss-deployment-structure.xml to prevent loading JBoss's own jackson no change to instance wide standalone.xml needed

            Is there any workaround to disable jaxrs only for a deployment and not for whole instance (removing it from standalone.xml file)?

            Himanshu Gupta (Inactive) added a comment - Is there any workaround to disable jaxrs only for a deployment and not for whole instance (removing it from standalone.xml file)?

            I also get this problem.

            Try this :

            #Disable RESTEasy in JBoss AS 7

            RESTEasy needs to be disabled since it collides with the REST libraries included in the OpenAM.

            To disable it, remove the jaxrs references from your configuration. For example if you are using either the standalone or domain configuration, you should edit one of these:

            <JBoss_AS_7_Home>/standalone/configuration/standalone.xml
            <JBoss_AS_7_Home>/domain/configuration/domain.xml

            And remove the lines:

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

            Source: https://wikis.forgerock.org/confluence/display/openam/Deploy+OpenAM+in+JBoss+AS+7

            I have tried putting the following in WEB-INF/jboss-deployment-structure.xml :

            <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

            <deployment>

            <exclusions>

            <module name="org.jboss.as.jaxrs"/>

            <module name="org.jboss.resteasy"/>

            <module name="org.jboss.resteasy.resteasy-jaxrs"/>

            </exclusions>

            </deployment>

            </jboss-deployment-structure>

            But it doesn't work.

            What I can make work is disabling the module and subsystem in JBoss AS's standalone.xml as the reply above.

            Reference threads:

            Hendy Irawan (Inactive) added a comment - I also get this problem. Try this : #Disable RESTEasy in JBoss AS 7 RESTEasy needs to be disabled since it collides with the REST libraries included in the OpenAM. To disable it, remove the jaxrs references from your configuration. For example if you are using either the standalone or domain configuration, you should edit one of these: <JBoss_AS_7_Home>/standalone/configuration/standalone.xml <JBoss_AS_7_Home>/domain/configuration/domain.xml And remove the lines: ... <extension module="org.jboss.as.jaxrs"/> ... <subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/> ... Source: https://wikis.forgerock.org/confluence/display/openam/Deploy+OpenAM+in+JBoss+AS+7 I have tried putting the following in WEB-INF/jboss-deployment-structure.xml : <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> <deployment> <exclusions> <module name="org.jboss.as.jaxrs"/> <module name="org.jboss.resteasy"/> <module name="org.jboss.resteasy.resteasy-jaxrs"/> </exclusions> </deployment> </jboss-deployment-structure> But it doesn't work. What I can make work is disabling the module and subsystem in JBoss AS's standalone.xml as the reply above. Reference threads: http://community.jboss.org/message/642580#642580 http://community.jboss.org/message/579996

            Please update the issue, despite the title still affects JBoss AS7 7.0.2 users and I believe 7.1 too.

            Hendy Irawan (Inactive) added a comment - Please update the issue, despite the title still affects JBoss AS7 7.0.2 users and I believe 7.1 too.

            The problem was fixed for us by using Enunciate (which wires up the necessary pieces), it also made it possible to use RestEasy instead of Jersey. Problem solved for me, issue can be resolved.

            Viggo Navarsete (Inactive) added a comment - The problem was fixed for us by using Enunciate (which wires up the necessary pieces), it also made it possible to use RestEasy instead of Jersey. Problem solved for me, issue can be resolved.

            Due to feedback from the community, I have split the AS7 and AS6 projects and reopened all unscheduled AS6 issues that are a year or less old. This will make it easier community members to find and work on them.

            Future releases beyond 6.1 can be done provided a community member steps up to coordinate them.

            Jason Greene added a comment - Due to feedback from the community, I have split the AS7 and AS6 projects and reopened all unscheduled AS6 issues that are a year or less old. This will make it easier community members to find and work on them. Future releases beyond 6.1 can be done provided a community member steps up to coordinate them.

            Now that work is well underway with AS7, all previous community releases are end-of-lifed. So, all issues not directly assigned to an AS7 release are being closed.

            JBoss EAP is our supported enterprise version of AS, and you can file your issues against any release during its very long support window via CSP/RHN.

            If you believe your issue is still relevant to AS7 then please verify it and reopen.

            Jason Greene added a comment - Now that work is well underway with AS7, all previous community releases are end-of-lifed. So, all issues not directly assigned to an AS7 release are being closed. JBoss EAP is our supported enterprise version of AS, and you can file your issues against any release during its very long support window via CSP/RHN. If you believe your issue is still relevant to AS7 then please verify it and reopen.

            Viggo Navarsete (Inactive) added a comment - Also see this discussion: http://permalink.gmane.org/gmane.comp.java.jersey.user/8415

            JBoss 6 bundles RestEasy, which makes it (im)possible to run with Jersey?

            Viggo Navarsete (Inactive) added a comment - JBoss 6 bundles RestEasy, which makes it (im)possible to run with Jersey?

              Unassigned Unassigned
              viggo.navarsete_jira Viggo Navarsete (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: