4 Replies Latest reply on Mar 5, 2009 2:21 AM by Gaurav Maheshwari

    Error deploying war file (developed using visual web 5.5.1)

    Bupathi Rajha Newbie

      Hi All,
      I am using Netbeans 5.5.1 with visual web 5.5.1 and Jboss4.0.3sp1. I have developed a sample web application. In this I have added some third party jar fiels in the library. When deploying it throws the following error.
      (In my server war or ear file is twiced deployed).
      How to solve this issue?

      Thanks in advance.


      09:57:41,718 ERROR [Tomcat5] Problem in init
      java.util.zip.ZipException: unexpected EOF
      at java.util.zip.ZipInputStream.read(ZipInputStream.java:159)
      at java.util.jar.JarInputStream.read(JarInputStream.java:171)
      at org.jboss.util.file.JarUtils.unjar(JarUtils.java:285)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:302)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy31.init(Unknown Source)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
      09:57:42,093 ERROR [MainDeployer] Could not initialise deployment: file:/D:/jbossBPS/jboss-4.0.3SP1/server/BPSReportServer/deploy/BPSReports.war
      org.jboss.deployment.DeploymentException: unexpected EOF; - nested throwable: (java.util.zip.ZipException: unexpected EOF)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:352)
      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:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy31.init(Unknown Source)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
      Caused by: java.util.zip.ZipException: unexpected EOF
      at java.util.zip.ZipInputStream.read(ZipInputStream.java:159)
      at java.util.jar.JarInputStream.read(JarInputStream.java:171)
      at org.jboss.util.file.JarUtils.unjar(JarUtils.java:285)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:302)
      ... 36 more

        • 1. Re: Error deploying war file (developed using visual web 5.5
          Carmo Melo Newbie

          Hi All,

          I am using JDeveloper 10.1.3.3.0 1 and JBoss-4.0.5.GA I have developed a sample web application. In this I have added some third party jar fiels in the library. When deploying it throws the following error.
          (In my server war or ear file is twiced deployed).
          How to solve this issue?

          Thanks in advance.
          12:03:19,968 ERROR [Tomcat5] Problem in init
          java.util.zip.ZipException: unexpected EOF
          at java.util.zip.ZipInputStream.read(ZipInputStream.java:159)
          at java.util.jar.JarInputStream.read(JarInputStream.java:171)
          at org.jboss.util.file.JarUtils.unjar(JarUtils.java:300)
          at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:325
          )
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
          er.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
          or.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
          BeanOperationInterceptor.java:142)
          at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
          .java:97)
          at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
          rServiceMBeanSupport.java:238)
          at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerIn
          terceptorSupport.java:119)
          at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
          init(SubDeployerInterceptorSupport.java:172)
          at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
          ptor.java:87)
          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:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy39.init(Unknown Source)
          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:895)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
          er.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
          or.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
          BeanOperationInterceptor.java:142)
          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:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy6.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
          tScanner.java:421)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
          canner.java:634)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
          doScan(AbstractDeploymentScanner.java:263)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
          loop(AbstractDeploymentScanner.java:274)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
          run(AbstractDeploymentScanner.java:225)
          12:03:19,999 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Soft
          ware/JBoss-4.0.5.GA/server/default/deploy/testeall.ear
          org.jboss.deployment.DeploymentException: unexpected EOF; - nested throwable: (j
          ava.util.zip.ZipException: unexpected EOF)
          at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:374
          )
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
          er.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
          or.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
          BeanOperationInterceptor.java:142)
          at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
          .java:97)
          at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
          rServiceMBeanSupport.java:238)
          at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerIn
          terceptorSupport.java:119)
          at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
          init(SubDeployerInterceptorSupport.java:172)
          at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
          ptor.java:87)
          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:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy39.init(Unknown Source)
          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:895)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
          er.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
          or.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
          BeanOperationInterceptor.java:142)
          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:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy6.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
          tScanner.java:421)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
          canner.java:634)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
          doScan(AbstractDeploymentScanner.java:263)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
          loop(AbstractDeploymentScanner.java:274)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
          run(AbstractDeploymentScanner.java:225)
          Caused by: java.util.zip.ZipException: unexpected EOF
          at java.util.zip.ZipInputStream.read(ZipInputStream.java:159)
          at java.util.jar.JarInputStream.read(JarInputStream.java:171)
          at org.jboss.util.file.JarUtils.unjar(JarUtils.java:300)
          at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:325
          )
          ... 41 more



          • 2. Re: Error deploying war file (developed using visual web 5.5
            ma xiaoming Newbie

            java.util.zip.ZipException: unexpected EOF

            I got the problem too :-(
            How to resolve the issue!@#!

            • 3. Re: Error deploying war file (developed using visual web 5.5
              Ilya Romanenko Newbie

              Same problem with netbeans 6.1 + jboss 4.2.2 :(

              • 4. Re: Error deploying war file (developed using visual web 5.5
                Gaurav Maheshwari Newbie

                I am also facing the same issue. Please some one help.......