I cant reproduce the error, but I definitely see multiple versions of the log dependencies in lib.
-Misagh > -----Original Message----- > From: jleleu [mailto:[email protected]] > Sent: Wednesday, October 10, 2012 2:43 AM > To: [email protected] > Subject: [cas-dev] Critical issue with log4j and slf4j cas server webapp > 3.5.1 > > Hi, > > Someone reported me an issue on my CAS OAuth demo : > https://github.com/leleuj/cas-oauth-demo/issues/1. > > After analysis, we have in the cas-server-webapp 3.5.1 both > log4j-over-slf4j > and slf4j-log4j12 jars. The first one comes from the opensaml dependency : > [INFO] | +- org.opensaml:opensaml:jar:2.5.1-1:compile > [INFO] | | +- org.opensaml:openws:jar:1.4.2-1:compile > [INFO] | | | +- org.opensaml:xmltooling:jar:1.3.2-1:compile > [INFO] | | | | +- org.slf4j:log4j-over-slf4j:jar:1.6.1:compile > The second one comes from our parent pom.xml : > <dependency> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-log4j12</artifactId> > <version>${slf4j.version}</version> > <scope>runtime</scope> > <type>jar</type> > > Both are uncompatible and lead to a java.lang.IllegalStateException: > Detected > both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, > preempting > StackOverflowError. See also > http://www.slf4j.org/codes.html#log4jDelegationLoop for more details. > > It's strange as the tests on 3.5.1 were successfull. It may depend on the > JDK > / classloader but I think in some cases, the CAS server 3.5.1 can't start. > It's a critical error. > > Can someone else reproduce the error ? > > As we use log4j for logging, we don't need the log4j-over-slf4j (sending > log4j logs to slf4j). I propose to remove it. I open JIRA CAS-1199. > > I will send pull requests for CAS 3.5.2-SNAPSHOT and CAS-4.0.0-SNAPSHOT as > soon as someone confirmed the issue. > > Thanks, > Jérôme > > -- > You are currently subscribed to [email protected] as: > [email protected] To unsubscribe, change settings or access archives, > see > http://www.ja-sig.org/wiki/display/JSG/cas-dev -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
