How to exclude the JBoss javax.mail.api* API classes from a deployment in JBoss EAP 6
Issue
- Excluding javax.mail.api does not work
-
Trying to deploy an existing Spring application to JBoss. The deployed application's SMTP mail sening functionality is broken. User realized that JBoss is loading the javax.mail.api from its own existing modules. (red-hat implementation of the jar). user needs to have with their implementaion.
-
They have created a jboss-deployment-structure.xml and tried different exclusion ideas. None of them worked. JBoss AS refuses to load our war provided javax mail.jar.
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
