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

Discussion in 'Java' started by hari_om@hotmail.com, May 3, 2005.

  1. Guest

    I am using SuSE Linux 9.0, JDK 1.4.2, JBoss 4.2.

    I have simple hello.java file and created hello.class filw without any
    problems. I also set my CLASSPATH to point to SERVLET.JAR file. and
    then put this HELLO.CLASS file under jboss/server/default/deploy
    directory on which I get following ERROR... wonder why: I am trying to
    run this Hello World Servlet from browser as:
    http://localhost:8080/hello

    Here is the ERROR I get on JBOSS COnsole when I start JBoss:
    ------------------------------------------------------------------------------------------
    10:37:11,220 WARN [JARDeployer] Failed to add deployable jar:
    file:/local/jboss-4.0.1sp1/server/default/tmp/deploy/tmp12587hello.class
    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:112)
    at java.util.jar.JarFile.<init>(JarFile.java:127)
    at java.util.jar.JarFile.<init>(JarFile.java:65)
    at
    org.jboss.deployment.SubDeployerSupport.processNestedDeployments(SubDeployerSupport.java:285)
    at
    org.jboss.deployment.SubDeployerSupport.init(SubDeployerSupport.java:183)
    at
    org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
    at
    org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
    at
    org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
    at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at
    org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at
    org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    at
    org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at
    org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy8.deploy(Unknown Source)
    at
    org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
    at
    org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
    at
    org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
    at
    org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
    at
    org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
    at
    org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    at
    org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at
    org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
    at $Proxy0.start(Unknown Source)
    at
    org.jboss.system.ServiceController.start(ServiceController.java:416)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    at
    org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at
    org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
    at
    org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
    at
    org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
    at
    org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
    at
    org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
    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:324)
    at
    org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at
    org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at
    org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at
    org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    at
    org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at
    org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    at $Proxy5.deploy(Unknown Source)
    at
    org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
    at
    org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
    at org.jboss.Main.boot(Main.java:162)
    at org.jboss.Main$1.run(Main.java:423)
    at java.lang.Thread.run(Thread.java:534)
    10:37:11,415 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on
    http-0.0.0.0-8080
     
    , May 3, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sudsy
    Replies:
    0
    Views:
    405
    Sudsy
    Apr 1, 2004
  2. Alex Hunsley
    Replies:
    1
    Views:
    602
    Andrew Thompson
    Sep 16, 2004
  3. HARI OM
    Replies:
    0
    Views:
    17,423
    HARI OM
    May 3, 2005
  4. crash.test.dummy
    Replies:
    6
    Views:
    3,337
    Thomas Kellerer
    Dec 12, 2005
  5. sunil_varma
    Replies:
    1
    Views:
    1,181
Loading...

Share This Page