[cas-user] Tomcat 7 to Tomcat 8 doesn't work

191 views
Skip to first unread message

Toni McWild

unread,
Sep 27, 2016, 4:25:21 AM9/27/16
to cas-...@apereo.org
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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.

Misagh Moayyed

unread,
Sep 27, 2016, 4:33:21 AM9/27/16
to cas-...@apereo.org, Toni McWild

Look further into your tomcat logs, (and all of the logs), and you’ll find something that should explain the startup failure. 


-- 
Misagh
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.57ea2ecb.5002557c.31e4%40unicon.net.

Toni McWild

unread,
Sep 27, 2016, 4:49:47 AM9/27/16
to Misagh Moayyed, cas-...@apereo.org
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.

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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.

Misagh Moayyed

unread,
Sep 27, 2016, 4:58:32 AM9/27/16
to cas-...@apereo.org

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? 

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.

Misagh Moayyed

unread,
Sep 27, 2016, 5:00:49 AM9/27/16
to cas-...@apereo.org

Toni McWild

unread,
Sep 27, 2016, 5:29:50 AM9/27/16
to Misagh Moayyed, cas-...@apereo.org
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.

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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 cas-user+unsubscribe@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

--
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 cas-user+unsubscribe@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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.

Misagh Moayyed

unread,
Sep 27, 2016, 5:38:40 AM9/27/16
to cas-...@apereo.org
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 
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.

Toni McWild

unread,
Sep 27, 2016, 5:50:45 AM9/27/16
to Misagh Moayyed, cas-...@apereo.org
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



--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
--
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 cas-user+unsubscribe@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

--
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 cas-user+unsubscribe@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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.

dkopy...@unicon.net

unread,
Sep 27, 2016, 6:40:08 AM9/27/16
to Misagh Moayyed, Toni McWild, cas-...@apereo.org
Just an aside note - Java7 is well end of life and Java8 has been here for several years.

Anyone still running Java7, I'd recommend to seriously consider getting current on Java8.

Cheers,
D.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/bf1d18a3-798d-4955-a379-f158e4e9d6b9%40Spark.

Toni McWild

unread,
Sep 27, 2016, 6:55:03 AM9/27/16
to Misagh Moayyed, cas-...@apereo.org
Hi,
Thanks. So, Could you show me how to trace the dependencies? and I will try to figure out why the code is requiring both versions.

Here is the pom.xml from Maven Overlay 

Could it be a bug with CAS 4.1 ?

Cheers!


<?xml version="1.0" encoding="UTF-8"?>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.jasig.cas</groupId>
    <artifactId>cas-overlay</artifactId>
    <packaging>war</packaging>
    <version>1.0</version>

    <build>
        <plugins>
            <plugin>
                <groupId>com.rimerosolutions.maven.plugins</groupId>
          <artifactId>wrapper-maven-plugin</artifactId>
          <version>0.0.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <warName>cas</warName>
                    <overlays>
                        <overlay>
                            <groupId>org.jasig.cas</groupId>
                            <artifactId>cas-server-webapp</artifactId>
                            <excludes>
                                <exclude>WEB-INF/cas.properties</exclude>
                                <exclude>WEB-INF/classes/log4j2.xml</exclude>
                            </excludes>
                        </overlay>
                    </overlays>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>${maven-jetty-plugin.version}</version>
                <configuration>
                    <jettyXml>${basedir}/etc/jetty/jetty.xml,${basedir}/etc/jetty/jetty-ssl.xml,${basedir}/etc/jetty/jetty-https.xml</jettyXml>
                    <systemProperties>
                        <systemProperty>
                            <name>org.eclipse.jetty.annotations.maxWait</name>
                            <value>240</value>
                        </systemProperty>
                    </systemProperties>
                    <webApp>
                        <contextPath>/cas</contextPath>
                        <overrideDescriptor>${basedir}/etc/jetty/web.xml</overrideDescriptor>
                    </webApp>
               <webAppConfig>
                   <allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
               </webAppConfig>
                    <jvmArgs>-Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n</jvmArgs>
                </configuration>
            </plugin>
        </plugins>
        <finalName>cas</finalName>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.jasig.cas</groupId>
            <artifactId>cas-server-webapp</artifactId>
            <version>${cas.version}</version>
            <type>war</type>
            <scope>runtime</scope>
        </dependency>
<dependency>
            <groupId>org.jasig.cas</groupId>
            <artifactId>cas-server-support-ldap</artifactId>
            <version>${cas.version}</version>
        </dependency>
        <dependency>
          <groupId>org.jasig.cas</groupId>
          <artifactId>cas-server-support-saml</artifactId>
          <version>${cas.version}</version>
        </dependency>
<dependency>
 <groupId>org.jasig.cas</groupId>
 <artifactId>cas-server-support-generic</artifactId>
 <version>${cas.version}</version>
</dependency>
    </dependencies>

    <properties>
        <cas.version>4.1.4</cas.version>
        <maven-jetty-plugin.version>9.3.6.v20151106</maven-jetty-plugin.version>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <repositories>
        <repository>
            <id>sonatype-releases</id>
        </repository>
        <repository>
            <id>sonatype-snapshots</id>
        </repository>
    </repositories>
</project>


On Tue, Sep 27, 2016 at 11:52 AM, Misagh Moayyed <mmoa...@unicon.net> wrote:

Tomcat 8 may have changes the way JARs are loaded onto the Java classpath. That’s really a question for them, but as a point of best practice, you should scan your configuration and figure out where duplicate dependencies come from and exclude those at the source. The fact that it worked with Tomcat 7 only indicates that you got lucky! 

--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
--
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 cas-user+unsubscribe@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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/CAEzQReqHs_gPLJB7%2BBoM6Vie7ospniUBvbLLFsTQm2%2BuNFbusQ%40mail.gmail.com.

Toni McWild

unread,
Sep 27, 2016, 8:36:56 AM9/27/16
to cas-...@apereo.org
I've checked dependencies within MVN but I only found 1.51v from bcprov-jdk15on being used. Am I missing something?


cas-source$ mvn dependency:tree -Dverbose -Dincludes=org.bouncycastle:bcprov-jdk15on:jar:1.51

Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building cas-overlay 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ cas-overlay ---
[INFO] org.jasig.cas:cas-overlay:war:1.0
[INFO] \- org.jasig.cas:cas-server-support-saml:jar:4.1.4:compile
[INFO]    \- org.bouncycastle:bcprov-jdk15on:jar:1.51:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.596s
[INFO] Finished at: Tue Sep 27 14:35:54 CEST 2016
[INFO] Final Memory: 17M/310M
[INFO] ------------------------------------------------------------------------


cas-source$ mvn dependency:tree -Dverbose -Dincludes=org.bouncycastle:bcprov-jdk15on:jar:1.50

Warning: JAVA_HOME environment variable is not set.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building cas-overlay 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ cas-overlay ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.514s
[INFO] Finished at: Tue Sep 27 14:36:02 CEST 2016
[INFO] Final Memory: 18M/309M
[INFO] ------------------------------------------------------------------------


--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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/CAEzQRerm9w83qFn2DASHGBYFAd2%2BEK4Q2zSc%3DTpug-SU_eZmaA%40mail.gmail.com.

Misagh Moayyed

unread,
Sep 27, 2016, 1:14:16 PM9/27/16
to cas-...@apereo.org

You will need to exclude that jar from the web app, much like the way you exclude cas.properties.

To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.57eaa8db.7691941c.31e4%40unicon.net.
Reply all
Reply to author
Forward
0 new messages