java.util.zip.ZipException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • disable uddi in weblogic 7.0 server
    via by 3004,
  • Jar and java.util.zip.ZipException:
    via by 843804,
  • can't get it to run on linux
    via freemind by nobody
    ,
  • I'm having problems using a .par file in Tomcat. The .par file works fine if I use it with a standalone application. However, if I bundle it in the WEB-INF/lib directory with my Web application, I receive a java.lang.NoClassDefFoundError exception. If I rename the .par file so that it has a .jar extension instead it works, but, I receive the following exception. Aug 22, 2005 11:48:20 AM org.hibernate.ejb.packaging.ZippedJarVisitor doProcessElements WARNING: Unable to find file (ignored): opt/jakarta-tomcat-5.5.9-dev/webapps/alt/WEB-INF/lib/alt-persistence.jar java.util.zip.ZipException: No such file or directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at org.hibernate.ejb.packaging.ZippedJarVisitor.doProcessElements(ZippedJarVisitor.java:29) at org.hibernate.ejb.packaging.JarVisitor.getClassNames(JarVisitor.java:79) at org.hibernate.ejb.HibernatePersistence.addMetadataFromVisitor(HibernatePersistence.java:216) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:185) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) at edu.uchicago.at.alt.persistence.EntityManagerManager.getEntityManagerFactory(EntityManagerManager.java:89) at edu.uchicago.at.alt.persistence.EntityManagerManager.getEntityManager(EntityManagerManager.java:77) at edu.uchicago.at.alt.manager.ManagerHandler.listApplications(ManagerHandler.java:80) at org.apache.jsp.manager.listApplications_jspx._jspService(listApplications_jspx.java:126) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) ... Note, it works, I just receive the exception as a warning. Also, the path listed in the exception above is pretty much the correct path, only it looks like maybe the path needs a leading '/'. I'm using the following in my persistence.xml in case that makes a difference. <?xml version="1.0" encoding="UTF-8"?> <entity-manager> <name>alt</name> <class>edu.uchicago.at.alt.persistence.entity.Application</class> <class>edu.uchicago.at.alt.persistence.entity.Reference</class> <class>edu.uchicago.at.persistence.entity.Department</class> <class>edu.uchicago.at.persistence.entity.Person</class> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> <property name="hibernate.use_sql_comments" value="true"/> </properties> </entity-manager> What I'm wondering is whether it's valid to use a file with a .par extension in Tomcat. I'm guessing the reason I received the first exception is because Tomcat only looks for classes that are in .jar files. Please let me know if you have any questions or need more information. Thanks.
    via by Jonathan Eric Miller,
    • java.util.zip.ZipException: No such file or directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:105) at java.util.jar.JarFile.<init>(JarFile.java:110) at java.util.jar.JarFile.<init>(JarFile.java:52) at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:220) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:632) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:552) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:441) at weblogic.management.deploy.slave.SlaveDeployer.prepareAllStagedApplications(SlaveDeployer.java:482) at weblogic.management.deploy.slave.SlaveDeployer.initialize(SlaveDeployer.java:253) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.initialize(DeploymentManagerServerLifeCycleImpl.java:150) at weblogic.t3.srvr.ServerLifeCycleList.initialize(ServerLifeCycleList.java:54) at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:762) at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276) at weblogic.Server.main(Server.java:31)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    marcbouvierdavmarcbouvierdav
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    52 more bugmates