Start Tomcat error Java.util.zip.ZipException:invalid LOC header (bad signature)

Source: Internet
Author: User

The error message is roughly as follows:

At Sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source) at Java.lang.reflect.Method.invoke (Unknown Source) at Org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:303) at Org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:431) July23, 2013 4:14:07pm Org.apache.catalina.startup.ContextConfig processannotationsjarsevere:unable to process Jar entry [org/apache/taglibs/standard/lang/jstl/lessthanorequalsoperator.class] from Jar [jar:jndi:/localhost/app/web-inf/lib/standard-1.1.2.jar!/] forannotationsjava.util.zip.ZipException:invalid LOC Header (bad signature) at Java.util.zip.ZipFile.read (Native Met HOD) at java.util.zip.zipfile.access$1400(Unknown source) at Java.util.zip.zipfile$zipfileinputstream.read (Unknown source) at JAVA.UTIL.ZIP.ZIPFILE$ZIPFI Leinflaterinputstream.fill (Unknown source) at Java.util.zip.InflaterInputStream.read (Unknown source) at Java.io.Buff Eredinputstream.fill (Unknown source) at Java.io.BufferedInputStream.read (Unknown source) at Java.io.DataInputStream. ReadInt (Unknown Source) at Org.apache.tomcat.util.bcel.classfile.ClassParser.readID (Classparser.java:237) at Org.apache.tomcat.util.bcel.classfile.ClassParser.parse (Classparser.java:114) at Org.apache.catalina.startup.ContextConfig.processAnnotationsStream (Contextconfig.java:1917)

Reason:

[jar:jndi:/localhost/app/web-inf/lib/standard-1.1.2.jar! The reason is that the jar was compromised because of the location.

Solution:

Re-copy a new jar package, or let Maven do it again.

Start Tomcat error Java.util.zip.ZipException:invalid LOC header (bad signature)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.