启动 StandartContext 时出现 Tomcat 错误

Tomcat error starting StandartContext

提问人:Edgar 提问时间:11/30/2015 更新时间:11/30/2015 访问量:1256

问:

当我在它上面部署了 webProject 时。我开始得到 exptions,它们总是杀死并重新启动我的项目。我不知道在哪里搜索问题,也许有人可以帮助我。TomCat

有堆栈跟踪:

    Nov 30, 2015 9:58:05 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [ROOT] created a ThreadLocal with key of type [scala.concurrent.forkjoin.ThreadLocalRandom$1] (value [scala.concurrent.forkjoin.ThreadLocalRandom$1@5c1e8d8a]) and a value of type [scala.concurrent.forkjoin.ThreadLocalRandom] (value [scala.concurrent.forkjoin.ThreadLocalRandom@28aae326]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 30, 2015 9:58:05 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
SEVERE: The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@4276669e]) and a value of type [scala.concurrent.forkjoin.ForkJoinPool.Submitter] (value [scala.concurrent.forkjoin.ForkJoinPool$Submitter@7f0dec04]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 30, 2015 9:58:08 AM org.apache.catalina.core.StandardContext reload
SEVERE: Exception starting Context with name []
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3746)
    at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:292)
    at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5528)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1349)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: entry
    at java.util.zip.ZipFile.getInputStream(Unknown Source)
    at java.util.jar.JarFile.getInputStream(Unknown Source)
    at org.apache.catalina.webresources.JarResource.getJarInputStreamWrapper(JarResource.java:46)
    at org.apache.catalina.webresources.AbstractArchiveResource.getContent(AbstractArchiveResource.java:174)
    at org.apache.catalina.loader.WebappClassLoaderBase.findResourceInternal(WebappClassLoaderBase.java:2611)
    at org.apache.catalina.loader.WebappClassLoaderBase.findResource(WebappClassLoaderBase.java:938)
    at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1117)
    at org.apache.catalina.startup.ContextConfig.populateJavaClassCache(ContextConfig.java:2165)
    at org.apache.catalina.startup.ContextConfig.populateJavaClassCache(ContextConfig.java:2158)
    at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2060)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2012)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1961)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1936)
    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1897)
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1149)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 8 more

Nov 30, 2015 9:58:08 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [] is completed
Spring Tomcat Web 项目

评论

0赞 ksokol 11/30/2015
您的文件似乎已损坏。尝试创建一个新的工件。warwar
0赞 We are Borg 11/30/2015
如果您使用的是 maven,请执行 maven clean && maven install 。如果在 IDE 上,那么您可以使用 IDE 执行相同的操作。
0赞 Edgar 11/30/2015
不知道怎么说正确,我在eclipse中部署,没有创建单独的文件,而只是将我的项目添加到eclipse中的tomcat服务器并在那里运行它。war

答: 暂无答案