Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-6320

EAR deployment with option "as compressed archives" results in ear containing invalid jars

XMLWordPrintable

    • Hide

      1. Create Enterprise Application Project (Target: JBoss6, EAR version 5.0, Generate application.xml)
      2. Create a lib folder at root level and a lib folder in EarContent
      3. Copy jboss-seam.jar into lib folder and mvel2.jar into EarContent/lib folder
      4. Add jboss-seam.jar as ejb-module in application.xml (<module><ejb>jboss-seam-2.2.1.CR1.jar</ejb></module>)
      5. Open Properties of JBoss6 Server in "Servers" view
      6. Go to the "Deployment" tab and activate the option "Deploy projects as compressed archives"
      7. Deploy project to JBoss6

      Show
      1. Create Enterprise Application Project (Target: JBoss6, EAR version 5.0, Generate application.xml) 2. Create a lib folder at root level and a lib folder in EarContent 3. Copy jboss-seam.jar into lib folder and mvel2.jar into EarContent/lib folder 4. Add jboss-seam.jar as ejb-module in application.xml (<module><ejb>jboss-seam-2.2.1.CR1.jar</ejb></module>) 5. Open Properties of JBoss6 Server in "Servers" view 6. Go to the "Deployment" tab and activate the option "Deploy projects as compressed archives" 7. Deploy project to JBoss6

      The deployment of a minimal Enterprise Application Project (consisting of e.g. jboss-seam.jar as ejb-module and mvel2.jar as 3rd-party jar) with the deployment option "Deploy projects as compressed archives" activated, results in an ear containing some invalid jars: These invalid jars are containing only one jar with the same name which finally contains the actual jar content.
      E.g. the mvel2.jar contains a mvel2.jar which contains the "META-INF" and an "org" directory.

      It seems that every supplied jar is affected that is determined as module jar, because it is an ejb-module (e.g. jboss-seam.jar) or its manifest contains a "Main-class" entry marking it as client-module.

              rob.stryker Rob Stryker (Inactive)
              gonne Gonne Martens (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: