陈建华的博客
专注web开发
Tomcat启动时报错(Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies)
2016-07-06 18:33:15   阅读5024次

报错关键信息如下:

2016-7-6 18:00:46 org.apache.catalina.core.ContainerBase addChildInternal

严重: ContainerBase.addChild: start: 

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PANICS3]]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)

at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/PANICS3] due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed was [org.bouncycastle.asn1.ASN1OutputStream->org.bouncycastle.asn1.DEROutputStream->org.bouncycastle.asn1.ASN1OutputStream]

at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2176)

at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2122)

at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1983)

at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1944)

at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1929)

at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1328)

at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:887)

at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:387)

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:5472)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

... 11 more

2016-7-6 18:00:46 org.apache.catalina.startup.HostConfig deployDescriptor

严重: Error deploying configuration descriptor E:\eclipse\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\PANICS3.xml

java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PANICS3]]

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)

at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

2016-7-6 18:00:46 org.apache.catalina.startup.HostConfig deployDescriptor



解决办法:

To fix this for TC Server 2.9, running Tomcat 7.0.39 I restricted the jars to skip during startup for the context config using:

org.apache.catalina.startup.ContextConfig.jarsToSkip=*.jar

in catalina.properties.




-----------------------------------------------------
转载请注明来源此处
原地址:#

-----网友评论----
暂无评论
-----发表评论----
微网聚博客乐园 ©2014 blog.mn886.net 鲁ICP备14012923号   网站导航