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:
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