Previous Topic: Federation Transaction Fails with Forms Authentication (179120)Next Topic: Federation Does Not Support the Cookie Provider (172511)


Deployment of Federation Web Services Fails on JBoss 6.1 (174757)

Symptom:

Deploying the Federation Web Services (affwebservices.war) on JBoss 6.1 fails with the following exception:

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed

This error is caused by an open issue in JBoss.

Solution:

Edit the affwebservices deployment descriptor to add a number of <context-param> entries.

Follow these steps:

  1. Open the affwebservices deployment descriptor file (webagent_option_pack/affwebservices/WEB-INF/web.xml) in a text editor.
  2. Add the following lines after the <web-app> tag and before the <servlet> tag:
    <context-param>
    <param-name>resteasy.scan</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>resteasy.scan.resources</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>resteasy.scan.providers</param-name>
    <param-value>false</param-value>
    </context-param>
    
  3. Save and exit the text editor.