Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5913

RAR (inbound adapter) inside EAR does not see JAR files in EAR/lib

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • None
    • None
    • None
    • High

    Description

      -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

      Attachments

        Activity

          People

            rhn-cservice-bbaranow Bartosz Baranowski
            jolmedilla1 Juan José Olmedilla Arregui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: