由于StackOverflowError,无法完成扫描Web应用程序[/ app]的注释 [英] Unable to complete the scan for annotations for web application [/app] due to a StackOverflowError
问题描述
为了创建项目,我按照STS向导添加了一个新的Spring MVC项目。然后,我向其他项目和库添加了一些依赖项。
但是,当我正在尝试将项目部署到STS的集成vFabric服务器时,我有时会得到例外:
SEVERE:ContainerBase.addChild:start:
org.apache.catalina.LifecycleException:无法启动组件[StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ wsa]]
在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
在org.apache.catalina .core.ContainerBase.addChildInternal(ContainerBase.java:901)
...
导致:java.lang.IllegalStateException:无法完成扫描Web应用程序[/ app]的注释,原因是的StackOverflowError。可能的根本原因包括-Xss和非法循环继承依赖关系的设置太低。正在处理的类层次结构是org.apache.catalina.startup.ContextConfig中的[org.bouncycastle.asn1.ASN1EncodableVector-> org.bouncycastle.asn1.DEREncodableVector-> org.bouncycastle.asn1.ASN1EncodableVector]
。 checkHandlesTypes(ContextConfig.java:2179)
...
发出maven clean ,之后是maven install和服务器的重新启动,异常有时不会被抛出,应用程序工作正常。然而,大多数时候,它不起作用。
我想没有必要扫描bouncycastle依赖关系的注释。
可以我以某种方式禁用某些jar的扫描?
我已经尝试将$ code> metadata-complete =true添加到我的web.xml并增加堆栈大小,没有结果。
我可以如何解决这个问题?
为了开发目的,我切换到Tomcat - 到目前为止,它的工作正常,没有任何修改。
I am developing a Spring MVC application using STS (eclipse plugin) and maven.
For creating the project, I followed the STS wizard for a new "Spring MVC project". Afterwards, I added some dependencies to other projects and libraries.
However, when I am now trying to deploy the project to the integrated vFabric server of STS, I sometimes get an exception:
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wsa]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
...
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/app] 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:2179)
...
When issuing a "maven clean", followed by a "maven install" and a restart of the server, the exception sometimes doesn't get thrown and the application works fine. Yet, most of the times, it doesn't work.
I guess there is no need to scan the bouncycastle dependencies for annotations.
Can I somehow disable this scanning for some jars?
I already tried adding metadata-complete="true"
to my web.xml and increasing the stack size with no result.
What can I do to fix this?
I switched to Tomcat for development purposes - so far, it works fine without any modifications.
这篇关于由于StackOverflowError,无法完成扫描Web应用程序[/ app]的注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!