Never tried stuff like that but what happens if you exclude the javax.resources.api directly (it appears to be exported from javaee.api)?
Hamid RAHMOUNI wrote:
I want my APP1.war to use an old jar geronimo-j2ee-connector_1.5_spec-1.1-osgi.jar defined on WEB-INF/lib directory
What on earth for?
What are you trying to achieve?
JBoss AS7 provides JCA 1.6 interfaces which AFAIK remain compatible with 1.5.
You should not need to deploy any JRE/JDK/JEE jars in your application. In fact doing so is a recipe for a lot of problems.
Thank you for your replay. I want to use the old jar because i have a jar on my APP1.war that is using the jca 1.5.
when i used the -verbose options to see the class loaded, i found that jboss is loading classes from jca 1.6 and the application did not work anymore.
So, in the case of using a tool (jar) which is compatible with version 1.5. how we can keep it working on jboss 7 ?
Thank you for your replay. I tried to use exclusions of the module javax.resources.api, but it still not working . Any others suggestions or ideas ?