0 Replies Latest reply on Jan 11, 2013 7:50 AM by chandrup

    java.util.zip.ZipException: The system cannot find the path specified

    Newbie

      Hi All,

       

      I am using eclipse to deploy a JBoss application. After I got all my build errors fixed and ready for deployment, it did complete the services bound and server related congiuration were found. But as soon as the ear deployment came ( i mean when it detected the .ear file under deployments)

       

       

      17:44:23,310 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "Cargo.ear"

      17:44:23,967 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."Cargo.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Cargo.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "Cargo.ear"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011060: Failed to process children for EAR ["/D:/Application/jboss-as-7.1.1.Final/standalone/deployments/Cargo.ear"]

      at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:218)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

      ... 5 more

      Caused by: java.util.zip.ZipException: error in opening zip file

      at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_31]

      at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_31]

      at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_31]

      at java.util.jar.JarFile.<init>(JarFile.java:99) [rt.jar:1.6.0_31]

      at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:97)

      at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:83)

      at org.jboss.vfs.VFS.mountZip(VFS.java:408)

      at org.jboss.vfs.VFS.mountZip(VFS.java:434)

      at org.jboss.as.ee.structure.EarStructureProcessor.mount(EarStructureProcessor.java:223)

      at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:118)

      ... 6 more

       

       

      I tried the following

       

      1.Removed the rt.jar present in EAR/lib which was copied from different ear/lib (reverted back)

      2.Verified that the ear had read-only attributes, unchecked read-only and deployed again

      3.Tried changing to Jboss 7.1.1 frm Jboss 7.1.0(reverted)

      4.Moved other jre and jdk versions  from ProgramFiles->Java to have only jdk1.6(reverted)

      5.Tried deploying by clearing tmp folder in JBoss

      6.Verified zipping and unzipping the ear  to check if there was any problem with opening archive

      7.Regenerated EAR by ant build and rebuilt with new workspace,added util-java.jar this time,copied src and settings from previous workspace and redeployed

      8.Changed some of the components and redeployed

       

      But when I ran the ear in other machine it was deploying. Also sometimes when I deploy I get this error along with the above exception 

      ERROR [org.jboss.remoting.remote.connection] (Remoting "<machine_name>:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOException: An established connection was aborted by the software in your host machine

      03:37:29,072 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."Cargo.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Cargo.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "Cargo.ear"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011060: Failed to process children for EAR

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

      ... 5 more

      Caused by: java.util.zip.ZipException: error in opening zip file

      at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_31]

      at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_31]

      at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_31]

      at java.util.jar.JarFile.<init>(JarFile.java:99) [rt.jar:1.6.0_31]

      at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:97)

      at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:83)

       

       

      Is there problem with my machine or the ear? Any suggestions please welcome.

       

      Thanks,