You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/03/21 11:22:40 UTC
[Bug 53871] java.lang.StackOverflowError on deploying a web
application
https://issues.apache.org/bugzilla/show_bug.cgi?id=53871
--- Comment #16 from Robert Pasztor <ro...@tss-yonder.com> ---
I've tried to upgrade to 7.0.37 (latest release at this moment).
We still encounter the same issue, but this time the logged stacktrace is more
detailed than the one I've added in the initial description:
10:49:06,990 ERROR [ContainerBase:903] ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/dossier]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657)
at
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IllegalStateException: Unable to complete the scan for
annotations for web application [/dossier]. Possible root causes include a
too low setting for -Xss and illegal cyclic inheritance dependencies
at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2109)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1981)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1947)
at
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1932)
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1326)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Caused by: java.lang.StackOverflowError
at java.util.Random.nextInt(Random.java:239)
at sun.misc.Hashing.randomHashSeed(Hashing.java:254)
at java.util.HashMap.<init>(HashMap.java:255)
at java.util.HashMap.<init>(HashMap.java:305)
at java.util.HashSet.<init>(HashSet.java:103)
at
org.apache.catalina.startup.ContextConfig.populateSCIsForCacheEntry(ContextConfig.java:2252)
at
org.apache.catalina.startup.ContextConfig.populateSCIsForCacheEntry(ContextConfig.java:2269)
at
org.apache.catalina.startup.ContextConfig.populateSCIsForCacheEntry(ContextConfig.java:2269)
...
I thought this might be helpful for further progress on this issue.
As mentioned in comment 10 and also on
http://collab.sakaiproject.org/pipermail/sakai-dev/2012-November/019574.html ,
I was able to workaround this exception by skipping the jar scannining in
catalina.properties:
# Additional JARs (over and above the default JARs listed above) to skip when
# scanning for Servlet 3.0 pluggability features. These features include web
# fragments, annotations, SCIs and classes that match @HandlesTypes. The list
# must be a comma separated list of JAR file names.
org.apache.catalina.startup.ContextConfig.jarsToSkip=*.jar
IMHO this is still a workaround and not the fix.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org