Tomcat boot error:: org.apache.catalina.LifecycleException

Source: Internet
Author: User
Tags addchild zip tomcat aliyun

Error Description

The following error occurred in the deployment of Maven + SPRINGMVC Javaweb project to Tomcat:

Severity: ContainerBase.addChild:start:org.apache.catalina.LifecycleException:Failed to start component [standardengine[ Catalina]. Standardhost[localhost]. Standardcontext[/test]] at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:162) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:725) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:701) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:717) at Org.apache.catalina.startup.HostConfig.deployDescriptor (hostconfig.java:587) at Org.apache.catalina.startup.hostconfig$deploydescriptor.run (hostconfig.java:1798) at Java.util.concurrent.executors$runnableadapter.call (executors.java:511) at Java.util.concurrent.FutureTask.run ( futuretask.java:266) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617) at Java.lang.Thread.run ( thread.java:745) CauSed by:org.apache.catalina.LifecycleException:Failed to start component [ ORG.APACHE.CATALINA.WEBRESOURCES.STANDARDROOT@2FA56038] at Org.apache.catalina.util.LifecycleBase.start ( lifecyclebase.java:162) at Org.apache.catalina.core.StandardContext.resourcesStart (standardcontext.java:4969) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5099) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:145) ... caused by:org.apache.catalina.LifecycleException:Failed to initialize component [ ORG.APACHE.CATALINA.WEBRESOURCES.JARRESOURCESET@560533BD] at Org.apache.catalina.util.LifecycleBase.init ( lifecyclebase.java:107) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:135) at Org.apache.catalina.webresources.StandardRoot.startInternal (standardroot.java:706) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:145) ... More caused BY:JAVA.LANG.ILLEGALARGUMENTEXCEPTION:JAVA.UTIL.ZIP.ZIPEXCEPTION:INVAlid LOC Header (bad signature) at Org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal ( abstractsinglearchiveresourceset.java:113) at Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:102 )
	... caused By:java.util.zip.ZipException:invalid LOC header (bad signature) at Java.util.zip.ZipFile.read (Native Me Thod) at java.util.zip.zipfile.access$1400 (zipfile.java:60) at Java.util.zip.zipfile$zipfileinputstream.read ( zipfile.java:717) at Java.util.zip.zipfile$zipfileinflaterinputstream.fill (zipfile.java:419) at Java.util.zip.InflaterInputStream.read (inflaterinputstream.java:158) at sun.misc.IOUtils.readFully (Ioutils.java : +) at Java.util.jar.JarFile.getBytes (jarfile.java:425) at Java.util.jar.JarFile.getManifestFromReference ( jarfile.java:193) at Java.util.jar.JarFile.getManifest (jarfile.java:180) at Org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal ( abstractsinglearchiveresourceset.java:111) ...
More 



Root cause

The project dependency package is downloaded by Maven management, and the default MAVEN remote repository server download is sometimes interrupted, causing problems with the jar package that Maven downloads.

Solution

1. New configuration of Maven settings.xml to increase domestic mirror

   <mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorof>central </mirrorOf>        
    </mirror>
  </mirrors>

2. Empty the local maven repository, and download the dependent jar from the new.

3. Restart the IDE to automatically trigger project build.



Problem solved perfectly.

Forwarding Please specify: http://my.csdn.net/zhulangfly



Related Article

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.