It looks like you've got an old version (perhaps 1.5.8) of slfj4 libraries
hanging around on your classpath somewhere.  See here for more details:
http://stackoverflow.com/a/3528823

 

In the upgrade from CAS 3.5.0 to 3.5.1, it seems that various logging
libraries were updated including moving jcl-over-slf4j to 1.7.1 which is
incompatible with the older slf4j-api-1.5.8 that was used before and
presumably hanging around on your classpath.  This is just based on looking
into the binary copies of cas-server-webapp-3.5.1.war.

 

lglw8145:/tmp/cas/cas-server-3.5.1/modules # unzip -t
cas-server-webapp-3.5.1.war |grep slf4j

    testing: WEB-INF/lib/log4j-over-slf4j-1.6.1.jar   OK

    testing: WEB-INF/lib/jul-to-slf4j-1.6.1.jar   OK

    testing: WEB-INF/lib/slf4j-api-1.7.1.jar   OK

    testing: WEB-INF/lib/slf4j-log4j12-1.7.1.jar   OK

    testing: WEB-INF/lib/jcl-over-slf4j-1.7.1.jar   OK

 

From: Tim Delesio [mailto:[email protected]] 
Sent: Monday, January 28, 2013 11:21 AM
To: [email protected]
Subject: [cas-user] upgrading from 3.5.0 to 3.5.1

 

I was running CAS 3.5.0 fine without any errors.  I tried to upgrade to
3.5.1 and now when I start my server I get:

2013-01-28 11:16:21,953 ERROR
[org.jasig.cas.web.init.SafeContextLoaderListener] -
<SafeContextLoaderListener: 
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not
have initialized.>
java.lang.NoSuchMethodError:
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;IL
java/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
    at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwa
reLog.java:225)
    at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:227)
    at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
textLoaderListener.java:47)
    at
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBo
dy0(SafeContextLoaderListener.java:75)
    at
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBo
dy1$advice(SafeContextLoaderListener.java:57)
    at
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeCont
extLoaderListener.java:1)
    at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
4205)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at
org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Was anything done with the logging?  Any other idea?  Changing the version
is the only change I made.

Tim

-- 
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-user

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to