2 Replies Latest reply on Apr 16, 2013 3:35 AM by Xinhua Gu

    org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018037: Failed to process WEB-INF/lib

    Xinhua Gu Newbie

      Hi,

       

      i have one EAR file, which contains a war file. By deployment, i got exception like this:

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018037: Failed to process WEB-INF/lib: "/E:/Jboss/EAP6/jboss-eap-6.0/bin/content/xx.ear/xx.war/WEB-INF/lib/jboss-seamjar"
              at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:175)
              at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createResourceRoots(WarStructureDeploymentProcessor.java:153)
              at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:114)
              ... 6 more
      Caused by: java.util.zip.ZipException: zip file is empty
              at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.7.0_15]
              at java.util.zip.ZipFile.<init>(ZipFile.java:214) [rt.jar:1.7.0_15]
              at java.util.zip.ZipFile.<init>(ZipFile.java:144) [rt.jar:1.7.0_15]
              at java.util.jar.JarFile.<init>(JarFile.java:153) [rt.jar:1.7.0_15]
              at java.util.jar.JarFile.<init>(JarFile.java:117) [rt.jar:1.7.0_15]
              at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:97) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
              at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:83) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
              at org.jboss.vfs.VFS.mountZip(VFS.java:408) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
              at org.jboss.vfs.VFS.mountZip(VFS.java:434) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
              at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:170)
      
      

      i cannot understand why jboss think the web lib is unter "E:/Jboss/EAP6/jboss-eap-6.0/bin/content" ????

       

      My jboss-deployment-structure.xml is: 
            <sub-deployment name="WEB.war">
                  <exclusions>
                          <module name="org.hibernate" slot="main"/>
                          <module name="javax.faces.api" slot="main" />
                          <module name="com.sun.jsf-impl" slot="main" />
                          <module name="javax.el.api" slot="main"/>
                  </exclusions>
                  <dependencies>
                          <module name="org.hibernate" slot="3" />
                          <module name="javax.faces.api" slot="1.2"/>
                          <module name="com.sun.jsf-impl" slot="1.2" />
                          <module name="deployment.seam"/>
                  </dependencies>
      
      
          </sub-deployment>
      
      
          <module name="deployment.seam">
                  <resources>
                          <resource-root path="WEB.war/WEB-INF/lib/jboss-seam.jar" />
                          <resource-root path="WEB-.war/WEB-INF/lib/jboss-seam-ui.jar" />
                          <resource-root path="WEB-.war/WEB-INF/lib/jboss-seam-debug.jar" />
                          <resource-root path="WEB.war/WEB-INF/lib/jboss-seam-excel.jar" />
                  </resources>
          </module>
      
      

       

      Please help

       

      Thank you very much!