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

Web Fragment projects are deployed as exploded jars

    Details

    • Steps to Reproduce:
      Hide
      • unzip attached web-fragment.zip
      • import web and fragment projects in eclipse
      • run web on an AS7 instance
      • ASSERT web is started without errors
      • ASSERT going to http://localhost:8080/web/ should display Hello World
      Show
      unzip attached web-fragment.zip import web and fragment projects in eclipse run web on an AS7 instance ASSERT web is started without errors ASSERT going to http://localhost:8080/web/ should display Hello World

      Description

      Following up https://issues.sonatype.org/browse/MECLIPSEWTP-181.

      Web Fragment projects are deployed as exploded jars in AS7 instead of zipped archives (probably other AS'es too). This leads to a deployment failure :

      10:11:40,572 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "web.war"
      10:11:40,600 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."web.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."web.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "web.war"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
      	at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.as.server.deployment.DeploymentUnitProcessingException: failed to process "/home/fbricon/Dev/servers/jboss-as-web-7.0.2.Final/standalone/deployments/web.war/WEB-INF/lib/fragment.jar"
      	at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:118)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
      	... 5 more
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: failed to process "/home/fbricon/Dev/servers/jboss-as-web-7.0.2.Final/standalone/deployments/web.war/WEB-INF/lib/fragment.jar"
      	at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:173)
      	at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createResourceRoots(WarStructureDeploymentProcessor.java:151)
      	at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:112)
      	... 6 more
      Caused by: java.util.zip.ZipException: error in opening zip file
      	at java.util.zip.ZipFile.open(Native Method) [:1.6.0_26]
      	at java.util.zip.ZipFile.<init>(ZipFile.java:127) [:1.6.0_26]
      	at java.util.jar.JarFile.<init>(JarFile.java:135) [:1.6.0_26]
      	at java.util.jar.JarFile.<init>(JarFile.java:99) [:1.6.0_26]
      	at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:95)
      	at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:81)
      	at org.jboss.vfs.VFS.mountZip(VFS.java:408)
      	at org.jboss.vfs.VFS.mountZip(VFS.java:434)
      	at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:168)
      	... 8 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rob.stryker Rob Stryker
                  Reporter:
                  fbricon Fred Bricon
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: