tomcat的war由于损坏不能解压导致的服务不能启动

时间:2024-01-05 23:59:56

问题描述:

  Tomcat启动,提示异常,服务自动释放!

INFO: Starting Servlet Engine: Apache Tomcat/7.0.
Sep , :: PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/yhs-web]]
at java.util.concurrent.FutureTask.report(FutureTask.java:)
at java.util.concurrent.FutureTask.get(FutureTask.java:)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:)
at java.util.concurrent.FutureTask.run(FutureTask.java:)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:)
at java.lang.Thread.run(Thread.java:)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/yhs-web]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:)
... more
Caused by: java.lang.IllegalArgumentException: MALFORMED //畸形的war
at java.util.zip.ZipCoder.toString(ZipCoder.java:58)
at java.util.zip.ZipFile.getZipEntry(ZipFile.java:531) //xxx.war ==> xxx.zip
at java.util.zip.ZipFile.access$(ZipFile.java:)
at java.util.zip.ZipFile$.nextElement(ZipFile.java:)
at java.util.zip.ZipFile$.nextElement(ZipFile.java:)
at java.util.jar.JarFile$.nextElement(JarFile.java:)
at java.util.jar.JarFile$.nextElement(JarFile.java:)
at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:)
at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:)
at org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:)
... more

问题解决:

  01、人工解压到制定的目录webapps/yhs-web/

  02、或者重新打包,部署!