2 Replies Latest reply on Apr 1, 2009 11:18 AM by Peter Johnson

    Deployment error with net beans

    Gaurav Maheshwari Newbie

      I am getting the error while deployment of my project for the war file. The exact error is : 16:48:51,812 ERROR [Tomcat5] Problem in init
      java.util.zip.ZipException: unexpected EOF
      .
      ..
      .
      .
      .
      .
      .
      16:48:52,406 ERROR [MainDeployer] Could not initialise deployment: file:/D:/program_files/jboss/server/default/deploy/Birchstreet_Application.war


      Please help me out as I am using Jboss first time.

      Thanks in advance.

      ===============================================================================
      .
      JBoss Bootstrap Environment
      .
      JBOSS_HOME: D:\program_files\jboss\bin\\..
      .
      JAVA: C:\Program Files\Java\jdk1.6.0_07\bin\java
      .
      JAVA_OPTS: -Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttp.nonProxyHosts="localhost|127.0.0.1|bss3|bss3.small.local" -Dhttps.proxyHost= -Dhttps.proxyPort= -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
      .
      CLASSPATH: C:\Program Files\Java\jdk1.6.0_07\lib\tools.jar;D:\program_files\jboss\bin\\run.jar
      .
      ===============================================================================
      .
      16:06:23,484 INFO [Server] Starting JBoss (MX MicroKernel)...
      16:06:23,484 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
      16:06:23,500 INFO [Server] Home Dir: D:\program_files\jboss
      16:06:23,515 INFO [Server] Home URL: file:/D:/program_files/jboss/
      16:06:23,515 INFO [Server] Patch URL: null
      16:06:23,531 INFO [Server] Server Name: default
      16:06:23,531 INFO [Server] Server Home Dir: D:\program_files\jboss\server\default
      16:06:23,531 INFO [Server] Server Home URL: file:/D:/program_files/jboss/server/default/
      16:06:23,625 INFO [Server] Server Log Dir: D:\program_files\jboss\server\default\log
      16:06:23,625 INFO [Server] Server Temp Dir: D:\program_files\jboss\server\default\tmp
      16:06:23,625 INFO [Server] Root Deployment Filename: jboss-service.xml
      16:06:24,859 INFO [ServerInfo] Java version: 1.6.0_07,Sun Microsystems Inc.
      16:06:24,859 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 10.0-b23,Sun Microsystems Inc.
      16:06:24,859 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      16:06:25,906 INFO [Server] Core system initialized
      16:06:29,093 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      16:06:31,765 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.248:3873/]
      16:06:33,031 INFO [AspectDeployer] Deployed AOP: file:/D:/program_files/jboss/server/default/deploy/ejb3-interceptors-aop.xml
      16:06:36,484 INFO [WebService] Using RMI server codebase: http://bss3:8083/
      16:06:44,687 INFO [MailService] Mail Service bound to java:/Mail
      16:06:45,781 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
      16:06:45,812 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher
      16:06:46,750 INFO [Embedded] Catalina naming disabled
      16:06:46,828 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
      16:06:46,828 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
      16:06:47,359 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      16:06:47,359 INFO [Catalina] Initialization processed in 531 ms
      16:06:47,359 INFO [StandardService] Starting service jboss.web
      16:06:47,359 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17
      16:06:47,421 INFO [StandardHost] XML validation disabled
      16:06:47,437 INFO [Catalina] Server startup in 78 ms
      16:06:47,734 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      16:06:48,453 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
      16:06:48,984 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp43537jbossws-exp.war/
      16:06:49,265 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/

      16:06:50,812 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      16:06:51,046 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      16:06:51,109 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
      16:06:51,125 INFO [QuartzResourceAdapter] start quartz!!!
      16:06:51,203 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      16:06:51,234 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      16:06:51,265 INFO [RAMJobStore] RAMJobStore initialized.
      16:06:51,265 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      16:06:51,265 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      16:06:51,265 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      16:06:52,265 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      16:06:52,578 INFO [A] Bound to JNDI name: queue/A
      16:06:52,578 INFO [B] Bound to JNDI name: queue/B
      16:06:52,578 INFO [C] Bound to JNDI name: queue/C
      16:06:52,578 INFO [D] Bound to JNDI name: queue/D
      16:06:52,578 INFO [ex] Bound to JNDI name: queue/ex
      16:06:52,625 INFO [testTopic] Bound to JNDI name: topic/testTopic
      16:06:52,625 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      16:06:52,765 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      16:06:52,765 INFO [testQueue] Bound to JNDI name: queue/testQueue
      16:06:52,781 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      16:06:52,859 INFO [DLQ] Bound to JNDI name: queue/DLQ
      16:06:53,015 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      16:08:43,531 INFO [TomcatDeployer] deploy, ctxPath=/Birchstreet, warUrl=.../tmp/deploy/tmp43569Birchstreet-exp.war/
      16:08:45,687 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
      16:08:46,187 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      16:08:46,765 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
      16:08:46,812 INFO [JkMain] Jk running ID=0 time=0/125 config=null
      16:08:46,812 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 2m:23s:156ms
      16:48:51,812 ERROR [Tomcat5] Problem in init
      java.util.zip.ZipException: unexpected EOF
      at java.util.zip.ZipInputStream.read(ZipInputStream.java:166)
      at java.util.jar.JarInputStream.read(JarInputStream.java:177)
      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(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerInterceptorSupport.java:119)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.init(SubDeployerInterceptorSupport.java:172)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.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 $Proxy44.init(Unknown Source)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.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)
      16:48:52,406 ERROR [MainDeployer] Could not initialise deployment: file:/D:/program_files/jboss/server/default/deploy/Birchstreet_Application.war
      org.jboss.deployment.DeploymentException: unexpected EOF; - nested throwable: (java.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(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerInterceptorSupport.java:119)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.init(SubDeployerInterceptorSupport.java:172)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.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 $Proxy44.init(Unknown Source)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.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:166)
      at java.util.jar.JarInputStream.read(JarInputStream.java:177)
      at org.jboss.util.file.JarUtils.unjar(JarUtils.java:300)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:325)
      ... 40 more
      16:49:16,125 WARN [MainDeployer] undeploy 'file:/D:/program_files/jboss/server/default/deploy/Birchstreet_Application.war' : package not deployed
      16:51:59,703 INFO [TomcatDeployer] deploy, ctxPath=/Birchstreet, warUrl=.../tmp/deploy/tmp43571Birchstreet_Application-exp.war/
      17:34:35,265 INFO [TomcatDeployer] undeploy, ctxPath=/Birchstreet, warUrl=.../tmp/deploy/tmp43571Birchstreet_Application-exp.war/
      17:37:24,125 INFO [TomcatDeployer] deploy, ctxPath=/Birchstreet, warUrl=.../tmp/deploy/tmp43572Birchstreet_Application-exp.war/
      17:38:47,000 INFO [TomcatDeployer] undeploy, ctxPath=/Birchstreet, warUrl=.../tmp/deploy/tmp43572Birchstreet_Application-exp.war/
      17:40:47,390 ERROR [Tomcat5] Problem in init
      java.util.zip.ZipException: unexpected EOF
      at java.util.zip.ZipInputStream.read(ZipInputStream.java:166)
      at java.util.jar.JarInputStream.read(JarInputStream.java:177)
      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(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerInterceptorSupport.java:119)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.init(SubDeployerInterceptorSupport.java:172)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.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 $Proxy44.init(Unknown Source)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      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)
      17:40:47,421 ERROR [MainDeployer] Could not initialise deployment: file:/D:/program_files/jboss/server/default/deploy/Birchstreet_Application.war
      org.jboss.deployment.DeploymentException: unexpected EOF; - nested throwable: (java.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(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerInterceptorSupport.java:119)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.init(SubDeployerInterceptorSupport.java:172)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.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 $Proxy44.init(Unknown Source)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      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:166)
      at java.util.jar.JarInputStream.read(JarInputStream.java:177)
      at org.jboss.util.file.JarUtils.unjar(JarUtils.java:300)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:325)
      ... 40 more
      17:49:38,921 WARN [MainDeployer] undeploy 'file:/D:/program_files/jboss/server/default/deploy/Birchstreet_Application.war' : package not deployed
      17:49:56,625 ERROR [Tomcat5] Problem in init
      java.util.zip.ZipException: unexpected EOF
      at java.util.zip.ZipInputStream.read(ZipInputStream.java:166)
      at java.util.jar.JarInputStream.read(JarInputStream.java:177)
      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(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerInterceptorSupport.java:119)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.init(SubDeployerInterceptorSupport.java:172)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.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 $Proxy44.init(Unknown Source)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      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)
      17:49:56,906 ERROR [MainDeployer] Could not initialise deployment: file:/D:/program_files/jboss/server/default/deploy/Birchstreet_Application.war
      org.jboss.deployment.DeploymentException: unexpected EOF; - nested throwable: (java.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(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerInterceptorSupport.java:119)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.init(SubDeployerInterceptorSupport.java:172)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.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 $Proxy44.init(Unknown Source)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.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(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
      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:166)
      at java.util.jar.JarInputStream.read(JarInputStream.java:177)
      at org.jboss.util.file.JarUtils.unjar(JarUtils.java:300)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:325)
      ... 40 more
      17:50:29,796 WARN [MainDeployer] undeploy 'file:/D:/program_files/jboss/server/default/deploy/Birchstreet_Application.war' : package not deployed
      17:53:17,937 INFO [TomcatDeployer] deploy, ctxPath=/Birchstreet, warUrl=.../tmp/deploy/tmp43575Birchstreet_Application-exp.war/

        • 1. Re: Deployment error with net beans
          Hassan Sadiq Newbie

          Same case as above reported:

          12:53:08,656 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 27s:844ms
          12:53:18,093 ERROR [JBossWeb] Problem in init
          java.util.zip.ZipException: unexpected EOF
          at java.util.zip.ZipInputStream.read(ZipInputStream.java:166)
          at java.util.jar.JarInputStream.read(JarInputStream.java:177)
          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)

          Please help if there's any solution:

          • 2. Re: Deployment error with net beans
            Peter Johnson Master

            The hot deployer scans the deploy directory every 5 seconds looking for changes. If you are in the middle of deploying an archive file (that is, it is only partially copied), such as an EAR or WAR file, the hot deployer will attempt to open it and run into this error. The best way to deploy is to copy the archive to a temporary location on the same partition as the deploy directory, and then move the archive to the deploy directory.

            Since you are using Net Beans, and Net Beans uses Ant for its builds, you should be able to modify the build file to do this for deployment. (This is a guess on my part, I have not tried it.)