4 Replies Latest reply on Sep 22, 2010 4:02 PM by Gurinder Randhawa

    JBoss 5.1 : java.util.zip.ZipException: error in opening zip file

    raja murugesan Newbie

      Hi All,

      I have disabled hot deployment. I am deploying applications using JMX. All my applications are located at my custom directory called "apps".

      Whenever i modify ear after it is deployed the follwing exception is thrown. I understood that it is because some thread is checking for modification of deployed applications. How to disable that?? or is there any other way to solve this issue?

       

       

      2010-06-30 11:31:22,409 WARN org.jboss.virtual.plugins.context.zip.ZipEntryContext - IGNORING: Failed to reinitialize context: vfszip:/disk1/raja/vector2406_jboss/jboss-5.1.0.GA/server/vector/apps/ab.ear
      java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:114)
              at java.util.zip.ZipFile.<init>(ZipFile.java:131)
              at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)
              at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:484)
              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:785)
              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:817)
              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
              at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:684)
              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
              at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
              at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
              at org.jboss.classloading.spi.vfs.policy.VFSClassLoaderPolicy.getResources(VFSClassLoaderPolicy.java:524)
              at org.jboss.classloader.spi.base.BaseClassLoader$4.run(BaseClassLoader.java:691)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.jboss.classloader.spi.base.BaseClassLoader.getResourcesLocally(BaseClassLoader.java:687)
              at org.jboss.classloader.spi.base.BaseClassLoader.getResourcesLocally(BaseClassLoader.java:668)
              at org.jboss.classloader.spi.base.BaseDelegateLoader.getResources(BaseDelegateLoader.java:150)
              at org.jboss.classloader.spi.filter.FilteredDelegateLoader.getResources(FilteredDelegateLoader.java:159)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.getResourcesFromExports(BaseClassLoaderDomain.java:775)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.getResources(BaseClassLoaderDomain.java:492)
              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.getResources(BaseClassLoaderDomain.java:1154)
              at org.jboss.classloader.spi.base.BaseClassLoader.loadResources(BaseClassLoader.java:495)
              at org.jboss.classloader.spi.base.BaseClassLoader.findResources(BaseClassLoader.java:481)
              at java.lang.ClassLoader.getResources(ClassLoader.java:1015)

       

      Thanks & Regards

      Raja

        • 1. Re: JBoss 5.1 : java.util.zip.ZipException: error in opening zip file
          raja murugesan Newbie

          Please ignore this.The error was due to HornetQ. Sorry guys.

          • 2. Re: JBoss 5.1 : java.util.zip.ZipException: error in opening zip file
            Gurinder Randhawa Newbie

            We are receiving this same error when deploying an EAR? Can anyone provide some insight into potential causes?

             

            Our JAR are not corrupt as they are deploying ok in other EARs.

             

            java.lang.RuntimeException: Error handling file /usr/share/jboss-eap/jboss-as/server/default/deploy/venture.ear/lib/client-product-api.jar
                    at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:134)
                    at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107)
                    at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)
                    at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:113)
                    at org.jboss.seam.init.Initialization.create(Initialization.java:132)
                    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
                    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                    at $Proxy38.start(Unknown Source)
                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                    at org.jboss.system.ServiceController.start(ServiceController.java:460)
                    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1211)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782)
                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                    at org.jboss.Main.boot(Main.java:221)
                    at org.jboss.Main$1.run(Main.java:556)
                    at java.lang.Thread.run(Thread.java:619)
            Caused by: java.util.zip.ZipException: error in opening zip file
                    at java.util.zip.ZipFile.open(Native Method)
                    at java.util.zip.ZipFile.<init>(ZipFile.java:114)
                    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
                    at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123)

            • 3. Re: JBoss 5.1 : java.util.zip.ZipException: error in opening zip file
              Gurinder Randhawa Newbie

              We should add, we have tried both twiddle script and deploy.dir drop/jboss restart as deployment tactics. We have removed hd scanner as it seems to be buggy.

              • 4. Re: JBoss 5.1 : java.util.zip.ZipException: error in opening zip file
                Gurinder Randhawa Newbie

                I should also add we are running JBoss EAP 5.0.1, EAR is a seam 2.2.EAP5 certified app.