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

Exploded EAR deployment error - java.util.zip.ZipException: error in opening zip file

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.0.Beta3
    • Fix Version/s: No Release
    • Component/s: VFS
    • Labels:
    • Environment:

      JBoss Tools 3.3-M6 (Eclipse Indigo, Win7 32-bit), Maven 3.0.3 application

      Description

      Deployment of EAR application (ejb module, JSF war module, 2 jar libraries) fails with ZipException error on JBoss AS Beta 3 and Beta-4-SNAPSHOT using standalone server with exploded archives. Application is published by JBoss Tools 3.3.M6. Content of "\jboss-7.0.0.Beta3\standalone\deployments" directory included in attachment.

      15:20:17,611 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."SNapplication-0.0.1-SNAPSHOT.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."SNapplication-0.0.1-SNAPSHOT.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "SNapplication-0.0.1-SNAPSHOT.ear"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:108)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_22]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_22]
      at java.lang.Thread.run(Unknown Source) [:1.6.0_22]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to process children for EAR ["/C:/Dev/jboss-7.0.0.Beta3/bin/content/SNapplication-0.0.1-SNAPSHOT.ear"]
      at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:211)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:102)
      ... 4 more
      Caused by: java.util.zip.ZipException: error in opening zip file
      at java.util.zip.ZipFile.open(Native Method) [:1.6.0_22]
      at java.util.zip.ZipFile.<init>(Unknown Source) [:1.6.0_22]
      at java.util.jar.JarFile.<init>(Unknown Source) [:1.6.0_22]
      at java.util.jar.JarFile.<init>(Unknown Source) [:1.6.0_22]
      at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:94)
      at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:80)
      at org.jboss.vfs.VFS.mountZip(VFS.java:428)
      at org.jboss.vfs.VFS.mountZip(VFS.java:454)
      at org.jboss.as.ee.structure.EarStructureProcessor.mount(EarStructureProcessor.java:216)
      at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:124)
      ... 5 more

      15:20:17,615 INFO [org.jboss.as.server] (MSC service thread 1-2) Service status report
      Services which failed to start:
      service jboss.deployment.unit."SNapplication-0.0.1-SNAPSHOT.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."SNapplication-0.0.1-SNAPSHOT.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "SNapplication-0.0.1-SNAPSHOT.ear"
      ------------------------------------------------------------------------------------------------------------------

      EAR structure:
      \business-0.0.1-SNAPSHOT.jar
      \userweb-0.0.1-SNAPSHOT.war
      \META-INF\application.xml
      \META-INF\jboss-app.xml
      \META-INF\MANIFEST.MF
      \lib\domain-0.0.1-SNAPSHOT.jar
      \lib\eclipselink-2.2.0.jar
      \lib\javax.persistence-2.0.3.jar
      \lib\wsclients-0.0.1-SNAPSHOT.jar

      pom.xml:
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <artifactId>application</artifactId>
      <packaging>ear</packaging>
      <name>SMS Notify Application</name>

      <parent>
      <groupId>sk.arsnova.sn</groupId>
      <artifactId>assembly</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      </parent>

      <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      </properties>

      <dependencies>
      <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>business</artifactId>
      <version>${project.version}</version>
      <type>ejb</type>
      <scope>compile</scope>
      </dependency>
      <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>domain</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
      <scope>compile</scope>
      </dependency>
      <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>userweb</artifactId>
      <version>${project.version}</version>
      <type>war</type>
      <scope>compile</scope>
      </dependency>
      <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>wsclients</artifactId>
      <version>${project.version}</version>
      <type>jar</type>
      <scope>compile</scope>
      </dependency>
      </dependencies>

      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>2.3.2</version>
      <configuration>
      <source>1.6</source>
      <target>1.6</target>
      </configuration>
      </plugin>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-ear-plugin</artifactId>
      <version>2.5</version>
      <configuration>
      <version>6</version>
      <defaultLibBundleDir>lib</defaultLibBundleDir>
      </configuration>
      </plugin>
      </plugins>
      </build>
      </project>

      application.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
      <display-name>application</display-name>
      <module>
      <ejb>business-0.0.1-SNAPSHOT.jar</ejb>
      </module>
      <module>
      <web>
      <web-uri>userweb-0.0.1-SNAPSHOT.war</web-uri>
      <context-root>/userweb</context-root>
      </web>
      </module>
      <library-directory>lib</library-directory>
      </application>

      Unexploded EAR deploys succesfully.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sider Peter Bocak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: