How do I correct ClassCastException when libraries are duplicated across EJB and Web Modules in JBoss
Issue
We have 2 modules in our EAR file : WEB and EJB.
The two modules exchange java instance of the same class but the library is in the EAR/lib directory and WEB-INF/lib. The WEB module pass instance to EJB module and get ClassCastException.
Do you have some trick for solve this issue ?
Environment
- Enterprise Application Platform(EAP) 5.0.0
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.
