1. 程式人生 > >Tomcat啟動時報錯,Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardCont

Tomcat啟動時報錯,Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardCont

來源:http://www.cnblogs.com/abclife/p/6171271.html

 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext []]         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)         
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)         at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
        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: java.lang.IllegalStateException: Unable to complete the scanfor annotationsfor web application [] due to a StackOverflo wError. Possible root causes include a too low settingfor -Xss and illegal cyclic inheritance dependencies. The class hierarchy bei ng processed was [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1Enc odableVector]         at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2099)         at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2043)         at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1989)         at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1959)         at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1912)         at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1154)         at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:298)         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5076)         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)         ... 10more

解決方法:

 修改tomcat配置檔案catalina.propertiesa

tomcat.util.scan.DefaultJarScanner.jarsToSkip=\ 為 tomcat.util.scan.DefaultJarScanner.jarsToSkip=\,*