Ask a Question

ASN1EncodableVector cyclic dependency in SoapUI-generated war

marcv
Visitor

ASN1EncodableVector cyclic dependency in SoapUI-generated war

Hello,

 

After generating a war file from my mock services SoapUI 5.6.0 project on Windows 10, I tried to deploy it in a Tomcat 10-JDK 15 Docker container, but it returns an error about a cyclic dependency between org.bouncycastle.asn1.ASN1EncodableVector and org.bouncycastle.asn1.DEREncodableVector.

 

I am not a Java developer, so I don't know if there is an easy fix to this issue or not. Can anyone give me a hand? Here are more details about the problem:

 

The full error message:

 

25-Dec-2020 10:19:42.828 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/bouchon.war]
25-Dec-2020 10:19:43.940 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/usr/local/tomcat/webapps/bouchon.war]
   java.lang.IllegalStateException: Error starting child
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)
           at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
           at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1848)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
           at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
           at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
           at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
           at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
           at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
           at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
           at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
           at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
           at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
           at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)
           at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
           at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
           at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
           at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
           at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
           at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
           at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
           at org.apache.catalina.core.StandardService.startInternal(StandardService.java:434)
           at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
           at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
           at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:564)
           at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
   Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/bouchon]]
           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:717)
           ... 37 more
   Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/bouchon] 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:2414)
           at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2352)
           at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2298)
           at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:2268)
           at org.apache.catalina.startup.ContextConfig.scanWebXmlFragment(ContextConfig.java:2173)
           at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:2153)
           at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1407)
           at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1302)
           at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:985)
           at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
           at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
           at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5031)
           at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
           ... 38 more
25-Dec-2020 10:19:43.943 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/bouchon.war] has finished in [1,114] ms
25-Dec-2020 10:19:43.953 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
25-Dec-2020 10:19:43.990 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [1250] milliseconds

 

 

List of the jar files inside the war's WEB-INF/lib folder:

 

 

activation-1.1.jar
analytics-core-5.5.1.jar
animal-sniffer-annotations-1.11.jar
bcprov-ext-jdk15on-1.60.jar
bcprov-jdk15-144.jar
bcprov-jdk15on-1.60.jar
binding-2.0.1.jar
commons-beanutils-1.7.0.jar
commons-cli-1.2.jar
commons-codec-1.10.jar
commons-collections-3.2.2.jar
commons-httpclient-3.1.jar
commons-io-2.4.jar
commons-lang-2.4.jar
commons-logging-1.2.jar
cssparser-0.9.5.jar
dom4j-1.6.1.jar
ezmorph-1.0.5.jar
flex-messaging-common-1.0.jar
flex-messaging-core-1.0.jar
flex-messaging-opt-1.0.jar
flex-messaging-proxy-1.0.jar
flex-messaging-remoting-1.0.jar
forms-1.0.7.jar
google-http-client-1.21.0.jar
google-oauth-client-1.21.0.jar
groovy-all-2.4.17.jar
guava-14.0.jar
hamcrest-core-1.3.jar
hermes-1.14.jar
htmlunit-2.7.jar
htmlunit-core-js-2.7.jar
httpclient-4.5.5.jar
httpclient-cache-4.5.5.jar
httpcore-4.4.9.jar
httpcore-nio-4.4.9.jar
httpmime-4.5.5.jar
i4jruntime-5.1.14.jar
javafx-base-12-win.jar
javafx-base-12.jar
javafx-controls-12-win.jar
javafx-controls-12.jar
javafx-graphics-12-win.jar
javafx-graphics-12.jar
javafx-media-12-win.jar
javafx-media-12.jar
javafx-swing-12-win.jar
javafx-web-12-win.jar
javassist-3.16.1-GA.jar
jaxen-1.1-beta-8.jar
jcifs-1.2.9.jar
jdom-1.0.jar
jettison-1.2.jar
jetty-6.1.26.jar
jetty-util-6.1.26.jar
jms-1.1.jar
joda-time-1.6.2.jar
js-1.7R2.jar
json-20090211.jar
json-lib-2.2.2-jdk15.jar
json-path-0.9.1.jar
json-smart-1.2.jar
jsr173_api-1.0.jar
jsr305-1.3.9.jar
jtidy-r872-jdk15.jar
junit-4.12.jar
log4j-1.2.14.jar
looks-2.2.0.jar
mail-1.4.jar
maven-plugin-api-2.0.jar
mixpanel-java-1.4.4.jar
nekohtml-1.9.14.jar
not-going-to-be-commons-ssl-0.3.20.jar
opensaml-2.5.1-1.jar
openws-1.4.2-1.jar
org.apache.oltu.oauth2.client-0.31.jar
org.apache.oltu.oauth2.common-0.31.jar
org.apache.oltu.oauth2.httpclient4-0.31.jar
out-app-analytics-provider-5.5.1.jar
proxy-vole-20131209.jar
reflections-0.9.9-RC1.jar
rsyntaxtextarea-2.5.0.jar
sac-1.3.jar
saxon-9.1.0.8j.jar
saxon-9.jar
saxon-dom-9.1.0.8j.jar
serializer-2.7.1.jar
slf4j-api-1.6.1.jar
slf4j-log4j12-1.6.4.jar
soapui-5.6.0.jar
stax-api-1.0.1.jar
swingx-soapui.jar
ws-commons-util-1.0.2.jar
wsdl4j-1.6.2-fixed.jar
wss4j-1.6.16.jar
xalan-2.7.1.jar
xercesImpl-2.9.1.jar
xml-apis-1.3.04.jar
xml-apis-2.9.1.jar
xmlParserAPIs-2.6.2.jar
xmlbeans-3.1.1-sb-fixed.jar
xmlbeans-xmlpublic-2.6.0.jar
xmlbeans-xpath-2.6.0.jar
xmlsec-1.4.5.jar
xmltooling-1.3.2-1.jar
xmlunit-1.2.jar
xom-1.1.jar
xstream-1.3.1.jar

 

 

 

cancel
Showing results for 
Search instead for 
Did you mean: