[jboss-jira] [JBoss JIRA] (AS7-5913) RAR (inbound adapter) inside EAR does not see JAR files in EAR/lib
Juan José Olmedilla Arregui (JIRA)
jira-events at lists.jboss.org
Thu Nov 29 06:43:21 EST 2012
[ https://issues.jboss.org/browse/AS7-5913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juan José Olmedilla Arregui closed AS7-5913.
--------------------------------------------
Sorry, I have been coding an example to reproduce the bug without including our original code (due to privacy issues). With this clean example the bug didn't reproduce. So we have been working on our original code and finally we extracted classes from the lib that were not absolutely necessary to be accessed by both, the EJB and the RAR and the bug went away.
Sorry for that and thank you for your time.
> RAR (inbound adapter) inside EAR does not see JAR files in EAR/lib
> ------------------------------------------------------------------
>
> Key: AS7-5913
> URL: https://issues.jboss.org/browse/AS7-5913
> Project: Application Server 7
> Issue Type: Bug
> Environment: JBoss 7.1.2 on Windows 7 and Windos Vista
> Reporter: Juan José Olmedilla Arregui
> Assignee: Bartosz Baranowski
>
> -I have a RAR file and EJB JAR inside my EAR.
> The RAR includes several JAR libraries only used by it which are packed within it.
> - The EJB JAR includes an MDB that receives the inbound messages from the Resource Adapter and therefore needs to have access to the same MessageListener interface which is in the common JAR file library included in EAR/lib.
> - The RAR has a dependency on the common MessageListener interface included in the JAR file sitting in EAR/lib
> - The project is a maven multi-module project using maven jar (for the commong library where the interface is), ejb, ear and rar plugins
> - Things I have tried:
> 1. Including "compile" dependency to the common jar in both, the EJB JAR and RAR. It does not work because it includes two copies of the jar, one in the EAR/lib and one inside the RAR, it deploys but later it fails when a message is received because there are two different bytecodes for the same class.
> 2. Including a Dependency in the MANIFEST of the RAR pointing to deployment.EARNAME.ear.MYLIBNAME.jar. It does not find that dependency
> 3. Including a Dependency in the MANIFEST of the RAR pointing to deployment.EARNAME.ear.lib.MYLIBNAME.jar. It does not find that deployment
> 4. Including the dependency as "provided" in the EJB project as in the RAR, including in both MANIFEST's a dependency on "deployment.MYLIBNAME.jar" and deploying separately the MYLIBNAME.jar and EARNAME.ear. This works but I want a solution that allows me to pack everything in one single EAR file
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list