Java.util.zip.ZipException:invalid LOC Header (bad signature)

Source: Internet
Author: User

1: Deploy a good project, start Tomcat appears the following error, Baidu method, quite a lot of, but it does not seem to solve my problem, the problem is as follows:

1 java.util.zip.ZipException:invalid LOC Header (bad signature)2 At Java.util.zip.ZipFile.read (Native Method)3At java.util.zip.zipfile.access$1400(Unknown Source)4 At Java.util.zip.zipfile$zipfileinputstream.read (Unknown Source)5 At Java.util.zip.zipfile$zipfileinflaterinputstream.fill (Unknown Source)6 At Java.util.zip.InflaterInputStream.read (Unknown Source)7At Org.apache.catalina.loader.WebappClassLoaderBase.findResourceInternal (Webappclassloaderbase.java:3521)8At Org.apache.catalina.loader.WebappClassLoaderBase.findResource (Webappclassloaderbase.java:1458)9At Org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream (Webappclassloaderbase.java:1686)TenAt Org.apache.catalina.startup.ContextConfig.populateJavaClassCache (Contextconfig.java:2272) OneAt Org.apache.catalina.startup.ContextConfig.populateJavaClassCache (Contextconfig.java:2262) AAt Org.apache.catalina.startup.ContextConfig.populateJavaClassCache (Contextconfig.java:2280) -At Org.apache.catalina.startup.ContextConfig.populateJavaClassCache (Contextconfig.java:2262) -At Org.apache.catalina.startup.ContextConfig.populateJavaClassCache (Contextconfig.java:2280) theAt Org.apache.catalina.startup.ContextConfig.populateJavaClassCache (Contextconfig.java:2262) -At Org.apache.catalina.startup.ContextConfig.populateJavaClassCache (Contextconfig.java:2280) -At Org.apache.catalina.startup.ContextConfig.populateJavaClassCache (Contextconfig.java:2262) -At Org.apache.catalina.startup.ContextConfig.checkHandlesTypes (Contextconfig.java:2168) +At Org.apache.catalina.startup.ContextConfig.processAnnotationsStream (Contextconfig.java:2120) -At Org.apache.catalina.startup.ContextConfig.processAnnotationsJar (Contextconfig.java:1981) +At Org.apache.catalina.startup.ContextConfig.processAnnotationsUrl (Contextconfig.java:1942) AAt Org.apache.catalina.startup.ContextConfig.processAnnotations (Contextconfig.java:1927) atAt Org.apache.catalina.startup.ContextConfig.webConfig (Contextconfig.java:1332) -At Org.apache.catalina.startup.ContextConfig.configureStart (Contextconfig.java:888) -At Org.apache.catalina.startup.ContextConfig.lifecycleEvent (Contextconfig.java:388) -At Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (Lifecyclesupport.java:117) -At Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (Lifecyclebase.java: -) -At Org.apache.catalina.core.StandardContext.startInternal (Standardcontext.java:5522) inAt Org.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java:145) -At Org.apache.catalina.core.containerbase$startchild.call (Containerbase.java:1571) toAt Org.apache.catalina.core.containerbase$startchild.call (Containerbase.java:1561) + At Java.util.concurrent.FutureTask.run (Unknown Source) - At Java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source) the At Java.util.concurrent.threadpoolexecutor$worker.run (Unknown Source) * At Java.lang.Thread.run (Unknown Source) $ Panax NotoginsengFebruary -,2018 5: -: +Afternoon org.apache.catalina.loader.WebappClassLoaderBase Findresourceinternal -Critical: Resource read error:could not load junit/framework/testcase.class.

2: The workaround is as follows, as well as the problem analysis:

The cause is as follows, as shown below, because the download is not complete. So delete this package and download it from the new maven:

Download it using the Maven tool shown below:

Then use Toncat to start the project, the main analysis is that the package appears to download the exception, and then solve it;

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.