java Tomcat7:等待WAR文件的多线程部署完成时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12459666/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tomcat7: Error waiting for multi-thread deployment of WAR files to complete
提问by Joseph Victor Zammit
Tomcat 7.0.30fails on startup (does not manage to start) with this exception:
Tomcat 7.0.30在启动时失败(无法启动),但出现以下异常:
SEVERE: Error waiting for multi-thread deployment of WAR files to complete
The following is the exception's full stack trace:
以下是异常的完整堆栈跟踪:
==> /usr/share/tomcat7/logs/catalina.out <==
Sep 17, 2012 2:43:22 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /usr/share/tomcat7/webapps/cfwd.war
Sep 17, 2012 2:43:22 PM org.apache.catalina.startup.HostConfig deployWARs
SEVERE: Error waiting for multi-thread deployment of WAR files to complete
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1302)
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:248)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:752)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1454)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
at java.lang.Thread.run(Thread.java:679)
Note that cfwd.war
is the only war file in the webapps
directory (in addition to the usual default contents, as examples
, manager
, etc etc).
请注意,这cfwd.war
是webapps
目录中唯一的 war 文件(除了通常的默认内容,如examples
、manager
等)。
Any ideas about possible causes for this?
关于可能原因的任何想法?
回答by Mark Thomas
This is usually caused by an issue with the applciation class hierarchy. One example I have seen is with out of date classes introducing circular inheritance.
这通常是由应用程序类层次结构问题引起的。我见过的一个例子是引入循环继承的过时类。
If you upgrade to 7.0.47 you'll get a more informative error message as to what the problem is. Alternatively, a clean build of your applciation may be enough to clean things up.
如果您升级到 7.0.47,您将收到有关问题所在的更多信息错误消息。或者,您的应用程序的干净构建可能足以清理事情。