Web App deployment error on Tomcat mark

Source: Internet
Author: User

Development of a test web app, deployed to the cloud server Tomat, always reported the following error, but the local debugging is not a problem, and later confirmed that web. XML is less webapprootkey defined, multiple project conflicts caused, mark.

28-apr-2016 11:00:01.152 SEVERE [localhost-startstop-10] Org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild:start:
org.apache.catalina.LifecycleException:Failed to start component [Standardengine[catalina]. Standardhost[localhost]. Standardcontext[/mywebtest]]
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:154)
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.deployWAR (hostconfig.java:940)
At Org.apache.catalina.startup.hostconfig$deploywar.run (hostconfig.java:1738)
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 [[email protected]
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:154)
At Org.apache.catalina.core.StandardContext.resourcesStart (standardcontext.java:4844)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:4974)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
... Ten more
caused by:org.apache.catalina.LifecycleException:Failed to initialize component [[email protected]]
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:106)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:139)
At Org.apache.catalina.webresources.StandardRoot.startInternal (standardroot.java:690)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
... More
caused by:java.lang.IllegalArgumentException:java.util.zip.ZipException:error in opening zip file
At Org.apache.catalina.webresources.JarResourceSet.initInternal (jarresourceset.java:96)
At Org.apache.catalina.util.LifecycleBase.init (lifecyclebase.java:102)
... More
caused by: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:220)
At Java.util.zip.zipfile.<init> (zipfile.java:150)
At Java.util.jar.jarfile.<init> (jarfile.java:166)
At Java.util.jar.jarfile.<init> (jarfile.java:103)
At Org.apache.catalina.webresources.JarResourceSet.initInternal (jarresourceset.java:88)
... More

Different projects in Web. XML should define their own different webapprootkey values, which, if not defined, will default to "Webapp.root", causing a conflict.

<context-param>
<param-name>webAppRootKey</param-name>
<param-value>mywebtest.root</param-value>
</context-param>

Web App deployment error on Tomcat mark

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.