It seems to work now (I have done several restarts and it keeps working), after removing bcprov-jdk15on-1.50.jar ... but I still don't get why it happened ... since I have the same exact libraries on tomcat 7 JDK 7 and didn't face the problem....
I didn't try with tomcat from the source. opsld04:/usr/share/tomcat/webapps/cas/WEB-INF/lib # ls | sort FastInfoset-1.2.12.jar activation-1.1.jar annotations-2.0.1.jar antlr-2.7.7.jar aopalliance-1.0.jar aspectjrt-1.8.6.jar aspectjweaver-1.8.6.jar bcprov-jdk15on-1.50.jar bcprov-jdk15on-1.51.jar c3p0-0.9.1.1.jar cache-api-1.0.0.jar cache-ri-impl-1.0.0.jar cas-server-core-4.1.4.jar cas-server-core-api-4.1.4.jar cas-server-security-filter-2.0.4.jar cas-server-support-generic-4.1.4.jar cas-server-support-ldap-4.1.4.jar cas-server-support-saml-4.1.4.jar cas-server-webapp-support-4.1.4.jar cdi-api-1.0-SP4.jar classmate-1.0.0.jar commons-codec-1.10.jar commons-collections-3.2.1.jar commons-collections4-4.0.jar commons-compiler-2.7.8.jar commons-io-2.4.jar commons-jexl-1.1.jar commons-lang-2.4.jar commons-lang3-3.4.jar commons-logging-1.1.3.jar commons-logging-1.2.jar cryptacular-1.0.jar dom4j-1.6.1.jar guava-18.0.jar hibernate-commons-annotations-4.0.5.Final.jar hibernate-core-4.3.10.Final.jar hibernate-jpa-2.1-api-1.0.0.Final.jar hibernate-validator-5.1.3.Final.jar httpclient-4.4.1.jar httpclient-cache-4.3.6.jar httpcore-4.4.1.jar idp-attribute-api-3.1.1.jar idp-attribute-filter-api-3.1.1.jar idp-attribute-resolver-api-3.1.1.jar idp-authn-api-3.1.1.jar idp-core-3.1.1.jar idp-profile-api-3.1.1.jar idp-profile-impl-3.1.1.jar idp-profile-spring-3.1.1.jar idp-saml-api-3.1.1.jar idp-saml-impl-3.1.1.jar idp-schema-3.1.1.jar idp-session-api-3.1.1.jar inspektr-aspects-1.3.GA.jar inspektr-audit-1.3.GA.jar inspektr-common-1.3.GA.jar inspektr-error-1.3.GA.jar inspektr-support-spring-1.3.GA.jar istack-commons-runtime-2.16.jar jackson-annotations-2.5.0.jar jackson-core-2.5.3.jar jackson-databind-2.5.3.jar jandex-1.1.0.Final.jar janino-2.7.8.jar java-support-7.1.1.jar javassist-3.19.0-GA.jar javax.el-2.2.6.jar javax.inject-1.jar javax.json-1.0.4.jar javax.json-api-1.0.jar jaxb-api-2.2.7.jar jaxb-core-2.2.7.jar jaxb-impl-2.2.7.jar jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar jboss-logging-3.1.3.GA.jar jboss-transaction-api_1.2_spec-1.0.0.Final.jar jcl-over-slf4j-1.7.7.jar jcommander-1.47.jar jdom-1.0.jar jersey-core-1.19.jar jersey-server-1.19.jar jersey-servlet-1.19.jar jersey-spring-1.19.jar joda-time-2.8.1.jar jose4j-0.4.1.jar jsr173_api-1.0.jar jsr250-api-1.0.jar jsr305-3.0.0.jar jsr311-api-1.1.1.jar jstl-1.2.jar jul-to-slf4j-1.7.12.jar ldaptive-1.0.7.jar log4j-api-2.3.jar log4j-core-2.3.jar log4j-jcl-2.3.jar log4j-slf4j-impl-2.3.jar log4j-web-2.3.jar mail-1.4.7.jar metrics-annotation-3.1.2.jar metrics-core-3.1.2.jar metrics-healthchecks-3.1.2.jar metrics-json-3.1.2.jar metrics-jvm-3.1.2.jar metrics-servlets-3.1.2.jar metrics-spring-3.1.0.jar ognl-2.6.11.jar opensaml-core-3.1.1.jar opensaml-messaging-api-3.1.1.jar opensaml-profile-api-3.1.1.jar opensaml-saml-api-3.1.1.jar opensaml-saml-impl-3.1.1.jar opensaml-security-api-3.1.1.jar opensaml-security-impl-3.1.1.jar opensaml-soap-api-3.1.1.jar opensaml-soap-impl-3.1.1.jar opensaml-storage-api-3.1.1.jar opensaml-xmlsec-api-3.1.1.jar opensaml-xmlsec-impl-3.1.1.jar person-directory-api-1.7.0.jar person-directory-impl-1.7.0.jar quartz-2.2.1.jar reflections-0.9.10.jar slf4j-api-1.7.12.jar spring-aop-4.1.8.RELEASE.jar spring-beans-4.1.8.RELEASE.jar spring-binding-2.4.1.RELEASE.jar spring-context-4.1.8.RELEASE.jar spring-context-support-4.1.8.RELEASE.jar spring-core-4.1.8.RELEASE.jar spring-expression-4.1.8.RELEASE.jar spring-extensions-5.1.1.jar spring-jdbc-4.1.8.RELEASE.jar spring-js-2.4.1.RELEASE.jar spring-js-resources-2.4.1.RELEASE.jar spring-orm-4.1.8.RELEASE.jar spring-security-config-4.0.1.RELEASE.jar spring-security-core-4.0.1.RELEASE.jar spring-security-web-4.0.1.RELEASE.jar spring-tx-4.1.8.RELEASE.jar spring-web-4.1.8.RELEASE.jar spring-webflow-2.4.1.RELEASE.jar spring-webflow-client-repo-1.0.0.jar spring-webmvc-4.1.8.RELEASE.jar standard-1.1.2.jar stax-api-1.0-2.jar stax2-api-3.1.4.jar validation-api-1.1.0.Final.jar velocity-1.7.jar woodstox-core-asl-4.4.1.jar xml-apis-1.4.01.jar xmlsec-2.0.3.jar On Tue, Sep 27, 2016 at 11:38 AM, Misagh Moayyed <[email protected]> wrote: > Have you tried a tomcat 8 package that is not from a repo? You may not > have duplicate JARs by the same exact filename, but you may have duplicate > dependencies that are different in versions. Make sure there are no > "A-1.2.3.jar” and “A-1.2.5.jar” type of JARs in the config. > > If that fails, post your overlay here: https://github.com/cas- > projects/cas-issues > > -- > Misagh > > From: Toni McWild <[email protected]> <[email protected]> > Reply: Toni McWild <[email protected]> <[email protected]> > Date: September 27, 2016 at 12:59:58 PM > > To: Misagh Moayyed <[email protected]> <[email protected]> > Cc: [email protected] <[email protected]> <[email protected]> > Subject: Re: [cas-user] Tomcat 7 to Tomcat 8 doesn't work > > Hi, > I am running 7.0.68 (downloaded from the website) on SLES 12 SP0 and > openjdk (from repos) 1.7.0.101-30.1 > > and I am moving to SLES 12 SP1 with everything from repos: > > Tomcat 8.0.32-3.1 > OpenJDK 1.8.0.91-11.1 > > > And I don't have duplicated JAR in none of the directories of the servers. > > Best regards. > > On Tue, Sep 27, 2016 at 10:58 AM, Misagh Moayyed <[email protected]> > wrote: > >> >> What is the exact tomcat 7 version you’re on? And what is the exact >> tomcat 8 version you’re moving to? Are these tomcat packages you have >> downloaded from the tomcat website? Or from some sort of OS distro? Do you >> have duplicate JARs in WEB-INF/lib folder of CAS inside Tomcat? >> >> -- >> Misagh >> >> From: Toni McWild <[email protected]> <[email protected]> >> Reply: Toni McWild <[email protected]> <[email protected]> >> Date: September 27, 2016 at 12:19:53 PM >> To: Misagh Moayyed <[email protected]> <[email protected]> >> Cc: [email protected] <[email protected]> <[email protected]> >> Subject: Re: [cas-user] Tomcat 7 to Tomcat 8 doesn't work >> >> Thanks, >> That's everything I can find: >> >> Caused by: java.lang.IllegalStateException: Unable to complete the scan >> for annotations for web application [/cas] 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.ASN1Boolean->org.bouncycastle.asn1. >> DERBoolean->org.bouncycastle.asn1.ASN1Boolean] >> >> >> Doesn't matter how high I set "-Xss" size, if I set it to 10M it allows >> me to do 1 restart, but the second restart throws the previous error. >> >> Thanks. >> >> On Tue, Sep 27, 2016 at 10:32 AM, Misagh Moayyed <[email protected]> >> wrote: >> >>> Look further into your tomcat logs, (and all of the logs), and you’ll >>> find something that should explain the startup failure. >>> >>> -- >>> Misagh >>> >>> From: Toni McWild <[email protected]> <[email protected]> >>> Reply: Toni McWild <[email protected]> <[email protected]> >>> Date: September 27, 2016 at 11:55:26 AM >>> To: [email protected] <[email protected]> <[email protected]> >>> Subject: [cas-user] Tomcat 7 to Tomcat 8 doesn't work >>> >>> Hi, >>> We have been using Tomcat 7 with CAS 4.1 and the following configuration >>> in order to start tomcat ( JVM 7 ): >>> >>> 'CATALINA_OPTS=-Duser.timezone=CET -Xms8G -Xmx16G -XX:NewSize=4G >>> -XX:MaxNewSize=8g -XX:MaxPermSize=8G -XX:+DisableExplicitGC >>> -XX:+ExplicitGCInvokesConcurrent -Xloggc:/var/log/tomcat/gc.log' >>> >>> 32G of Physical memory >>> >>> >>> So, when I have tried to set up Tomcat 8 and install the CAS compilation >>> that I have running on tomcat and Java 7 it doesn't work, it allows me to >>> start Tomcat and load CAS, but if I try to stop it and start it again it >>> drops an error: >>> >>> May I change Java configuration? >>> >>> 27-Sep-2016 09:17:23.807 INFO [http-bio-8443-exec-6] >>> org.apache.catalina.core.ApplicationContext.log HTMLManager: start: >>> Starting web application '/cas' >>> 27-Sep-2016 09:17:24.455 SEVERE [http-bio-8443-exec-6] >>> org.apache.catalina.core.ApplicationContext.log FAIL - Application at >>> context path /cas could not be started >>> org.apache.catalina.LifecycleException: Failed to start component >>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]] >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153) >>> at org.apache.catalina.manager.ManagerServlet.start(ManagerServ >>> let.java:1293) >>> at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLMan >>> agerServlet.java:666) >>> at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLMa >>> nagerServlet.java:217) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>> lter(ApplicationFilterChain.java:292) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>> licationFilterChain.java:207) >>> at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(Cs >>> rfPreventionFilter.java:136) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>> lter(ApplicationFilterChain.java:240) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>> licationFilterChain.java:207) >>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte >>> r.java:52) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>> lter(ApplicationFilterChain.java:240) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>> licationFilterChain.java:207) >>> at org.apache.catalina.filters.SetCharacterEncodingFilter.doFil >>> ter(SetCharacterEncodingFilter.java:108) >>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >>> lter(ApplicationFilterChain.java:240) >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >>> licationFilterChain.java:207) >>> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar >>> dWrapperValve.java:212) >>> at org.apache.catalina.core.StandardContextValve.invoke(Standar >>> dContextValve.java:106) >>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A >>> uthenticatorBase.java:614) >>> at org.apache.catalina.valves.RequestFilterValve.process(Reques >>> tFilterValve.java:312) >>> at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddr >>> Valve.java:95) >>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo >>> stValve.java:141) >>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo >>> rtValve.java:79) >>> at org.apache.catalina.valves.AbstractAccessLogValve.invoke(Abs >>> tractAccessLogValve.java:616) >>> at org.apache.catalina.core.StandardEngineValve.invoke(Standard >>> EngineValve.java:88) >>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd >>> apter.java:522) >>> at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs >>> tractHttp11Processor.java:1095) >>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler >>> .process(AbstractProtocol.java:672) >>> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(J >>> IoEndpoint.java:279) >>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >>> Executor.java:1142) >>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >>> lExecutor.java:617) >>> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.r >>> un(TaskThread.java:61) >>> at java.lang.Thread.run(Thread.java:745) >>> Caused by: java.lang.IllegalStateException: Unable to complete the scan >>> for annotations for web application [/cas] 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.ASN1Boolean->org.bouncycastle.asn1.DE >>> RBoolean->org.bouncycastle.asn1.ASN1Boolean] >>> at org.apache.catalina.startup.ContextConfig.checkHandlesTypes( >>> ContextConfig.java:2100) >>> at org.apache.catalina.startup.ContextConfig.processAnnotations >>> Stream(ContextConfig.java:2046) >>> at org.apache.catalina.startup.ContextConfig.processAnnotations >>> Jar(ContextConfig.java:1991) >>> at org.apache.catalina.startup.ContextConfig.processAnnotations >>> Url(ContextConfig.java:1961) >>> at org.apache.catalina.startup.ContextConfig.processAnnotations >>> (ContextConfig.java:1915) >>> at org.apache.catalina.startup.ContextConfig.webConfig(ContextC >>> onfig.java:1158) >>> at org.apache.catalina.startup.ContextConfig.configureStart(Con >>> textConfig.java:780) >>> at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Con >>> textConfig.java:305) >>> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent >>> (LifecycleSupport.java:95) >>> at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Li >>> fecycleBase.java:90) >>> at org.apache.catalina.core.StandardContext.startInternal(Stand >>> ardContext.java:5154) >>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) >>> ... 33 more >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "CAS Community" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/a/ap >>> ereo.org/group/cas-user/. >>> To view this discussion on the web visit https://groups.google.com/a/ap >>> ereo.org/d/msgid/cas-user/CAEzQRepH%2BhcJp1jBRQaVav0WzBP4Ct% >>> 3DquLK5svpq348Cu8QQeA%40mail.gmail.com >>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAEzQRepH%2BhcJp1jBRQaVav0WzBP4Ct%3DquLK5svpq348Cu8QQeA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/a/apereo.org/d/optout. >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "CAS Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/a/ap >> ereo.org/group/cas-user/. >> To view this discussion on the web visit https://groups.google.com/a/ap >> ereo.org/d/msgid/cas-user/CAEzQReovX2eV9LZRB8ULPDCSX-0Y8cg40 >> GXHKYgfBHcrXzm7Vg%40mail.gmail.com >> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAEzQReovX2eV9LZRB8ULPDCSX-0Y8cg40GXHKYgfBHcrXzm7Vg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/a/apereo.org/d/optout. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "CAS Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/a/ap >> ereo.org/group/cas-user/. >> To view this discussion on the web visit https://groups.google.com/a/ap >> ereo.org/d/msgid/cas-user/etPan.57ea34af.137d9b2.31e4%40unicon.net >> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.57ea34af.137d9b2.31e4%40unicon.net?utm_medium=email&utm_source=footer>. >> >> >> For more options, visit https://groups.google.com/a/apereo.org/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/ > . > To view this discussion on the web visit https://groups.google.com/a/ > apereo.org/d/msgid/cas-user/CAEzQReq93hf%2BfYWVHaojcJMeVOx3%2BT6G%2BPR% > 2Bux-WXnNzct1SRg%40mail.gmail.com > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAEzQReq93hf%2BfYWVHaojcJMeVOx3%2BT6G%2BPR%2Bux-WXnNzct1SRg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/ > . > To view this discussion on the web visit https://groups.google.com/a/ > apereo.org/d/msgid/cas-user/etPan.57ea3e17.164d19a.31e4%40unicon.net > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.57ea3e17.164d19a.31e4%40unicon.net?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/a/apereo.org/d/optout. > -- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAEzQReoLUWKqwhgE_9r3YJ9YMtcmRprjTz6Y-jLfB64DM8pOug%40mail.gmail.com. For more options, visit https://groups.google.com/a/apereo.org/d/optout.
