tomcat启动程序报错分析

符号 阅读:148 2021-09-18 14:27:36 评论:0
本文章主要介绍了tomcat启动程序报错,具有不错的的参考价值,希望对您有所帮助,如解说有误或未考虑完全的地方,请您留言指出,谢谢!

1、问题

23-Apr-2021 10:53:38.897 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/data/webapps/glapps/appmgr] 
23-Apr-2021 10:53:39.257 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:  
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/appmgr]] 
        at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) 
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) 
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) 
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) 
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) 
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1176) 
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1917) 
        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:1149) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
        at java.lang.Thread.run(Thread.java:748) 
    Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/appmgr] 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.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncodableVector] 
        at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2071) 
        at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2009) 
        at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1961) 
        at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1931) 
        at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1887) 
        at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1186) 
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1093) 
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779) 
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299) 
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) 
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066) 
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 
        ... 10 more 
23-Apr-2021 10:53:39.260 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [/data/webapps/glapps/appmgr] 
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/appmgr]] 
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:747) 
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) 
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) 
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1176) 
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1917) 
        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:1149) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
        at java.lang.Thread.run(Thread.java:748) 
23-Apr-2021 10:53:39.261 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/data/webapps/glapps/appmgr] has finished in [364] ms

2、解决

vim tomcat-8.5.65/conf/catalina.properties

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\

...

xmlParserAPIs.jar,\
xom-*.jar,\
*

重启tomcat即可


标签:Tomcat
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

发表评论
搜索
KIKK导航

KIKK导航

排行榜
关注我们

一个IT知识分享的公众号