java - Unable to complete the scan for annotations for web application [/app] due to a StackOverflowError -


i developing spring mvc application using sts (eclipse plugin) , maven.

for creating project, followed sts wizard new "spring mvc project". afterwards, added dependencies other projects , libraries.

however, when trying deploy project integrated vfabric server of sts, exception:

severe: containerbase.addchild: start:  org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[/wsa]]     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:901)     ... caused by: java.lang.illegalstateexception: unable complete scan annotations web application [/app] due stackoverflowerror. possible root causes include low setting -xss , illegal cyclic inheritance dependencies. class hierarchy being processed [org.bouncycastle.asn1.asn1encodablevector->org.bouncycastle.asn1.derencodablevector->org.bouncycastle.asn1.asn1encodablevector]     @ org.apache.catalina.startup.contextconfig.checkhandlestypes(contextconfig.java:2179)     ... 

when issuing "maven clean", followed "maven install" , restart of server, exception doesn't thrown , application works fine. yet, of times, doesn't work.

i guess there no need scan bouncycastle dependencies annotations.
can somehow disable scanning jars?

i tried adding metadata-complete="true" web.xml , increasing stack size no result.

what can fix this?

in case org.bouncycastle.asn1.derencodablevector class causing cyclic dependency, served 2 jars in class path.

bcprov-jdk15on-1.47.jar , bcprov-jdk16-1.45.jar

excluded unwanted jar(bcprov-jdk16-1.45.jar) , worked


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -