We use maven 2.0.10 and the latest version of CAS. We didn't add jars manually 
to the dependencies, so I think it is a problem with the CAS build.
If I do a clean install there is no problem.

-Bart Ophelders

Date: Tue, 17 Mar 2009 15:13:29 -0400
From: [email protected]
Subject: Re: [cas-user] password expiration
To: [email protected]


2009/3/17 Bart Ophelders <[email protected]>






The problem occurred because we had multiple versions of the same jar.
Yes, multiple versions of Spring generally cause errors similar to the ones 
you're seeing.  This generally happens with older versions of Maven, where the 
way dependency resolution changed.  In the most recent versions of CAS, we've 
been specifying versions of Maven to eliminate this problem.  Did you have this 
problem on the latest version of CAS? If so, was it user error that resulted in 
multiple versions, or was it a problem with the CAS build?

Thanks-Scott


 

-Bart Ophelders
 
> Date: Wed, 18 Mar 2009 01:24:27 +0800
> From: [email protected]
> Subject: Re: [cas-user] password expiration
> To: [email protected]

> 
> I remembered I had to replace spring-beans*.jar and spring-core*.jar
> with the jars of version 2.5.6 manually. Perhaps you could check this
> first.
> 
> Regards,
> 
> Shi Yusen/Beijing Langhua Ltd.

> 
> 
> 
> 在 2009-03-17二的 14:00 +0100,Bart Ophelders写道:
> > Hi,
> > 
> > We implemented a possible solution for the password expiration
> > problem.
> > When we build the project with maven, the build is succesfull.

> > When we deploy cas in tomcat and try to test it, the error below
> > appears in the log file.
> > Does anyone have an idea as where we could start to look?
> > ApplicationContext.xml springs t
 mind, but we didn't modify anything
> > in it..
> > 
> > Thanks in advance!
> > 
> > Mar 17, 2009 1:37:17 PM
> > org.apache.catalina.core.ApplicationContext log

> > SEVERE: 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.springframework.util.Assert.noNullElements([Ljava/lang/Object;Ljava/lang/String;)V
> > at
> > org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocations(AbstractRefreshableConfigApplicationContext.jav

> > a:78)
> > at
> &gt
 
org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocation(AbstractRefreshableConfigApplicationContext.java
> > :69)
> > at
> > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)

> > at
> > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
> > at
> > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

> > at
> > org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)
> > at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)

> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
> > at
> &gt
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

> > at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
> > at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
> > at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)

> > at
> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
> > at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> > at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

> > at
> &gt
 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)

> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.run(ContainerBase.java:1590)

> > at java.lang.Thread.run(Thread.java:619)
> > Mar 17, 2009 1:37:17 PM
> > org.apache.catalina.core.StandardContext filterStart
> > SEVERE: Exception starting filter springSecurityFilterChain

> > java.lang.NoSuchMethodError:
> > org.springframework.util.Assert.noNullElements([Ljava/lang/Object;Ljava/lang/String;)V
> > at
> &gt
 
org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocations(AbstractRefreshableConfigApplicationContext.jav
> > a:78)
> > at
> > org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocation(AbstractRefreshableConfigApplicationContext.java

> > :69)
> > at
> > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)
> > at
> > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

> > at
> > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> > at
> > org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)

> > at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
&gt
 > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
> > at
> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> > at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)

> > at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
> > at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> > at
> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)

> > at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> > at
> &gt
 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> > at
> > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
> > at org.apache.catalina.core.ContainerBase

> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)

> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.run(ContainerBase.java:1590)
> > at java.lang.Thread.run(Thread.java:619)
> > Mar 17, 2009 1:37:17 PM
> > org.apache.catalina.core.StandardContext filterStart

> > SEVERE: Exception starting filter springSecurityFilterChain
> > java.lang.NoSuchMethodError:
> > org.springframework.util.Assert.noNullElements([Ljava/lang/Object;Ljava/lang/String;)V

> &gt
 at
> > org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocations(AbstractRefreshableConfigApplicationContext.jav
> > a:78)
> > at
> > org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocation(AbstractRefreshableConfigApplicationContext.java

> > :69)
> > at
> > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)
> > at
> > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

> > at
> > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> > at
> > org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)

> > at
> &gt
 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
> > at

> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

> > at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
> > at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
> > at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)

> > at
> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
> > at
> &gt
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> > at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> > at

> > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)

> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.run(ContainerBase.java:1590)

> > at java.lang.Thread.run(Thread.java:619)
> > Mar 17, 2009 1:37:17 PM
> > org.apache.catalina.core.StandardContext start
> > SEVERE: Error filterStart
> > Mar 17, 2009 1:37:17 PM

> > org.apache.catalina.core.StandardContex
 start
> > SEVERE: Context [/cas] startup failed due to previous errors
> > Mar 17, 2009 1:37:17 PM
> > org.apache.catalina.core.ApplicationContext log
> > INFO: Closing Spring root WebApplicationContext

> > Mar 17, 2009 1:38:17 PM org.apache.catalina.startup.HostConfig
> > checkResources
> > INFO: Undeploying context [/cas]
> > Mar 17, 2009 1:38:27 PM org.apache.catalina.startup.HostConfig

> > deployWAR
> > INFO: Deploying web application archive cas.war
> > Mar 17, 2009 1:38:29 PM
> > org.apache.catalina.core.ApplicationContext log
> > INFO: Initializing Spring root WebApplicationContext

> > Mar 17, 2009 1:38:29 PM
> > org.apache.catalina.core.ApplicationContext log
> > SEVERE: SafeContextLoaderListener: 
> > The Spring ContextLoaderListener we wrap threw on
> > contextInitialized.

> > But for our having caugh
 this error, the web application
> > context would not have initialized.
> > java.lang.NoSuchMethodError:
> > org.springframework.util.Assert.noNullElements([Ljava/lang/Object;Ljava/lang/String;)V

> > at
> > org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocations(AbstractRefreshableConfigApplicationContext.jav
> > a:78)
> > at
> > org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocation(AbstractRefreshableConfigApplicationContext.java

> > :69)
> > at
> > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)
> > at
> > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

> > at
> &gt
 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> > at
> > org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)

> > at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
> > at

> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

> > at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
> > at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
> > at

> &gt
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> > at
> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
> > at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

> > at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> > at
> > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)

> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)

> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.run(ContainerBase.java:1590)
> > at java.lang.Thread.run(Thread.java:619)
> > Mar 17, 2009 1:38:2
 PM
> > org.apache.catalina.core.StandardContext filterStart
> > SEVERE: Exception starting filter springSecurityFilterChain
> > java.lang.NoSuchMethodError:
> > org.springframework.util.Assert.noNullElements([Ljava/lang/Object;Ljava/lang/String;)V

> > at
> > org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocations(AbstractRefreshableConfigApplicationContext.jav
> > a:78)
> > at
> > org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfigLocation(AbstractRefreshableConfigApplicationContext.java

> > :69)
> > at
> > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:253)
> > at
> > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

> > at
> &gt
 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> > at
> > org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)

> > at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
> > at

> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

> > at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
> > at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
> > at

> &gt
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> > at
> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
> > at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

> > at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> > at
> > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)

> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)

> > at org.apache.catalina.core.ContainerBase
> > $ContainerBackgroundProcessor.run(ContainerBase.java:1590)
> > at java.lang.Thread.run(Thread.java:619)
> > Mar 17, 2009 1:38:2
 PM
> > org.apache.catalina.core.StandardContext start
> > SEVERE: Error filterStart
> > Mar 17, 2009 1:38:29 PM
> > org.apache.catalina.core.StandardContext start
> > SEVERE: Context [/cas] startup failed due to previous errors

> > Mar 17, 2009 1:38:29 PM
> > org.apache.catalina.core.ApplicationContext log
> > INFO: Closing Spring root WebApplicationContext
> > 
> > 
> > 
> > -- 
> > 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
> 
> 
> -- 

> 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


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




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

Reply via email to