tomcat启动失败, java.lang.IllegalStateException: Unable to complete the scan for annotations for web app
2018-03-05 14:23
651 查看
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [] 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:2144)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2090)
at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1965)
at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1931)
at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1916)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
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:5416)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more问题背景描述:把项目导出为war包,放到tomcat目录下的webapps文件夹下,然后启动tomcat,提示上述错误信息。修改内存大小还是错误,最后修改方案如下更改tomcat配置文件catalina.properties 。 tomcat.util.scan.DefaultJarScanner.jarsToSkip=\ 值后面加",*"。
at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2144)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2090)
at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1965)
at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1931)
at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1916)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
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:5416)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more问题背景描述:把项目导出为war包,放到tomcat目录下的webapps文件夹下,然后启动tomcat,提示上述错误信息。修改内存大小还是错误,最后修改方案如下更改tomcat配置文件catalina.properties 。 tomcat.util.scan.DefaultJarScanner.jarsToSkip=\ 值后面加",*"。
相关文章推荐
- Tomcat 启动 异常 java.lang.IllegalStateException: Unable to complete the scan for annotations...
- Unable to complete the scan for annotations for web application XXX due to a StackOverflowErr
- Unable to complete the scan for annotations for web application [] due to a StackOverflowError
- Unable to complete the scan for annotations for web application [] due to a StackOverflowError
- Unable to complete the scan for annotations for web application [] due to a StackOverflowError
- Unable to complete the scan for annotations for web application [/xxx] due to a StackOverflowError
- Unable to complete the scan for annotations for web application [] due to a StackOverflowError
- Unable to complete the scan for annotations for web application
- 使用myeclipse启动tomcat时出现这种错误“Could not publish to the server. java.lang.NullPointerException”
- Caused by: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadP
- tomcat下部署了多个项目启动报错java web error:Choose unique values for the 'webAppRootKey' context-param in your
- Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- java.lang.SecurityException: Unable to find app for caller android.app.ActivityThread$
- Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- android启动Dialog风格Activity报错:java.lang.IllegalStateException: You need to use a theme.appcompat theme
- Tomcat启动报Could not publish to the server. java.lang.NullPointerException
- java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy
- tomcat启动不了报错: Publishing failed Could not publish to the server. java.lang.IndexOutOfBoundsException
- tomcat启动多个应用logback初始化失败报Web app root system property already set to different value: 'webapp.root'
- Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource