-
1. Re: Exclude javax.jms from JBOSS EAP 7
nitin.takale Dec 14, 2017 2:13 AM (in response to dilipraj)Create jboss-deployment-structure.xml in your application's WEB-INF folder. And paste following content in it -
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="javax.jms.api"/>
</exclusions>
</deployment>
</jboss-deployment-structure>
Make a build & deploy your WAR.
-Nitin -
2. Re: Exclude javax.jms from JBOSS EAP 7
dilipraj Dec 15, 2017 12:22 AM (in response to dilipraj)Hi.
That doesn't work. I can still see both the JARs loaded.
-
3. Re: Exclude javax.jms from JBOSS EAP 7
ctomc Dec 15, 2017 2:31 AM (in response to dilipraj)best thing to do is to remove your JMS jar from your application.
if you are using maven, jms-api dependency you are using, should be set to scope=provided
You can also not enable messaging support in app server by running with standalone.xml instead of standalone-full.xml
but that will disable all JMS related functionality, for example MDBs wouldn't work anymore.
-
4. Re: Exclude javax.jms from JBOSS EAP 7
dilipraj Dec 15, 2017 2:52 AM (in response to ctomc)I did that. I removed the JMS jar from my application. But it resulted an error while deploying the WAR. NoClassDefFoundError: javax/jms/Destination