[
https://issues.jboss.org/browse/AS7-5913?page=com.atlassian.jira.plugin.s...
]
Bartosz Baranowski commented on AS7-5913:
-----------------------------------------
Tested CL with lib jar containing common class for RAR and ejb.jar:
/
-/lib/
-lib.jar
-/ejb.jar
-/rar.jar
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