Is there a way to configure an application to be deployed to JBoss so that you can ignore certain libraries that are in the common libraries? For OC4J, we have used an orion-application.xml file, allowing the version of the library in our project to be the one imported:
<orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd" deployment-version="10.1.3.1.0" default-data-source="jdbc/OracleDS" component-classification="external" 02. schema-major-version="10" schema-minor-version="0" > 03. <imported-shared-libraries> 04. <remove-inherited name="oracle.toplink"/> 05. <remove-inherited name="oracle.persistence"/> 06. <remove-inherited name="oracle.xml"/> 07. <remove-inherited name="oracle.xml.security"/> 08. </imported-shared-libraries> 09.</orion-application>
Try defining a loader-repository in jboss-app.xml. See http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Server_Configuration_Guide/4/html/ch01s04s02.html