[jboss-jira] [JBoss JIRA] Created: (AS7-995) EAR deployment error - java.util.zip.ZipException: error in opening zip file

Peter Bocak (JIRA) jira-events at lists.jboss.org
Fri Jun 10 10:26:59 EDT 2011


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

                 Key: AS7-995
                 URL: https://issues.jboss.org/browse/AS7-995
             Project: Application Server 7
          Issue Type: Bug
          Components: EE
    Affects Versions: 7.0.0.Beta3
         Environment: Eclipse Indigo, JBoss Tools 3.3, Win7
            Reporter: Peter Bocak


I am trying to deploy maven application using Eclipse Indigo with JBoss Tools 3.3 (standalone mode, exploded EAR and its children projects in standalone/deployments directory). When I publish the application, jboss shows following error on console:
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>

I can deploy the same EAR (unexploded) without errors on glassfish 3.0.1 server.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list