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]>
Reply: Toni McWild <[email protected]>
Date: September 27, 2016 at 12:19:53 PM
To: Misagh Moayyed <[email protected]>
Cc: [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]>
Reply: Toni McWild <[email protected]>
Date: September 27, 2016 at 11:55:26 AM
To: [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(ManagerServlet.java:1293)
at 
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:666)
at 
org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.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.internalDoFilter(ApplicationFilterChain.java:292)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at 
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at 
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
at 
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:312)
at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:95)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at 
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:279)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(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.DERBoolean->org.bouncycastle.asn1.ASN1Boolean]
at 
org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2100)
at 
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2046)
at 
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1991)
at 
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1961)
at 
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1915)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1158)
at 
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:780)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.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/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAEzQRepH%2BhcJp1jBRQaVav0WzBP4Ct%3DquLK5svpq348Cu8QQeA%40mail.gmail.com.
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/CAEzQReovX2eV9LZRB8ULPDCSX-0Y8cg40GXHKYgfBHcrXzm7Vg%40mail.gmail.com.
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.57ea34af.137d9b2.31e4%40unicon.net.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to