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

EAR deployed from DevStudio to EAP contains errorneously named ejbs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.5.0.AM1
    • 4.2.3.Final, 4.4.0.Final
    • server
    • None
    • Hide
      • Download JBoss Developer Studio 10.0.0.GA
      • Add JBoss EAP 6.4 runtime to the studio.
      • Unzip attached test-project.zip into workspace
      • In Studio, use import existing projects wizard to import test-ejb and test-ear projects into workspace
      • Double-click the server in Servers view, select "Deployment" tab and check "Deploy projects as compressed archives"
      • Add test-ear to the server, right-click on the server and select "Clean".
      • Now navigate to the deployments directory and inspect test-ear.ear contents. Compare this file to to test-ear.ear obtained from command-line maven build or via Export EAR Eclipse wizard.
      Show
      Download JBoss Developer Studio 10.0.0.GA Add JBoss EAP 6.4 runtime to the studio. Unzip attached test-project.zip into workspace In Studio, use import existing projects wizard to import test-ejb and test-ear projects into workspace Double-click the server in Servers view, select "Deployment" tab and check "Deploy projects as compressed archives" Add test-ear to the server, right-click on the server and select "Clean". Now navigate to the deployments directory and inspect test-ear.ear contents. Compare this file to to test-ear.ear obtained from command-line maven build or via Export EAR Eclipse wizard.

      I've created a maven-based EAR project that contains serveral ejb modules some of which come from workspace whereas others are downloaded from binary artifact repository. All modules have bundleFileName specified as module-name.jar in order to override the default module-name-version.jar.

      When I right-click on an EAR project and choose Export..., a correct EAR file is built, which looks exactly the same as when I build it from command line. However, when I add this project to an EAP 6.4 server, and check "Deploy projects as compressed archives" option, an EAR with erroneously named ejbs is deployed. the bundleFileName option is namely ignored for EJBs that come from binary artifact repository. See attached screenshot.

      This problem makes it extremely difficult to debug issues that arise only with zipped ear deployments. The only workaround is to comment out bundleFileName lines in test-ear pom.xml as well as possibly fix filenames in persistence.xml, and remember to revert these changes before committing!

        1. JBIDE-22878-deployment-assembly.png
          JBIDE-22878-deployment-assembly.png
          55 kB
        2. screendump.png
          screendump.png
          56 kB
        3. test-ear.ear
          2.13 MB
        4. test-projects.zip
          17 kB

            rob.stryker Rob Stryker (Inactive)
            mkalkov_jira Mikhail Kalkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: