I sent you the link to the latest cas-servlet.xml

On Fri, Jul 9, 2010 at 1:04 AM, Tanura Vittil <[email protected]> wrote:

>  I am using  cas-server-3.4.2........which is the new configuration.
>
> regards,
> tanura
>
> ----- Original Message -----
> *From:* Scott Battaglia <[email protected]>
> *To:* [email protected]
> *Sent:* Friday, July 09, 2010 8:05 AM
> *Subject:* Re: [cas-dev] CAS 3.4.2 - REMEMBER ME OPTION
>
> It says ClassNotFoundException.
>
> You're apparently working from old configuration:
>
> https://source.jasig.org/cas3/tags/cas-server-3.4.2/cas-server-webapp/src/main/webapp/WEB-INF/cas-servlet.xml
>
>
> On Fri, Jul 9, 2010 at 12:02 AM, Tanura Vittil <[email protected]> wrote:
>
>>  Out of the three configuration changes mentioned in this
>>  https://wiki.jasig.org/display/CASUM/Remember+Me
>>
>> I did the first two (deployerConfigContext.xml  and cas-servlet.xml)
>> changes........and i didn't do the third
>> change that is change in ticketExpirationPolicies.xml
>>
>>
>> When i restart tomcat after the above 2 changes, i am getting the
>> following error
>>
>> 2010-07-09 07:51:44,218 INFO
>> [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.>
>> 2010-07-09 07:51:46,125 INFO
>> [org.jasig.cas.util.AutowiringSchedulerFactoryBean] - <Starting Quartz
>> Scheduler now>
>> 2010-07-09 07:51:47,218 ERROR
>> [org.springframework.web.servlet.DispatcherServlet] - <Context
>> initialization failed>
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'authenticationViaFormAction' defined in ServletContext
>> resource [/WEB-INF/cas-servlet.xml]: Cannot resolve reference to bean
>> 'UsernamePasswordCredentialsValidator' while setting bean property
>> 'validator'; nested exception is
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
>> class [org.jasig.cas.validation.UsernamePasswordCredentialsValidator] for
>> bean with name 'UsernamePasswordCredentialsValidator' defined in
>> ServletContext resource [/WEB-INF/cas-servlet.xml]; nested exception is
>> java.lang.ClassNotFoundException:
>> org.jasig.cas.validation.UsernamePasswordCredentialsValidator
>>  at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>>  at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>>  at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
>>  at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
>>  at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
>>  at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
>>  at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
>>  at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
>>  at
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
>>  at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
>>  at
>> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:443)
>>  at
>> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)
>>  at
>> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)
>>  at
>> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)
>>  at
>> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
>>  at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>>  at
>> org.jasig.cas.web.init.SafeDispatcherServlet.init_aroundBody0(SafeDispatcherServlet.java:64)
>>  at
>> org.jasig.cas.web.init.SafeDispatcherServlet.init_aroundBody1$advice(SafeDispatcherServlet.java:44)
>>  at
>> org.jasig.cas.web.init.SafeDispatcherServlet.init(SafeDispatcherServlet.java:1)
>>  at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
>>  at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
>>  at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
>>  at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
>>  at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>>  at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>>  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>>  at
>> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909)
>>  at
>> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872)
>>  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
>>  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
>>  at
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>>  at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
>>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
>>  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
>>  at
>> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>>  at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
>>  at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>  at java.lang.reflect.Method.invoke(Unknown Source)
>>  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
>>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>> Caused by: org.springframework.beans.factory.CannotLoadBeanClassException:
>> Cannot find class
>> [org.jasig.cas.validation.UsernamePasswordCredentialsValidator] for bean
>> with name 'UsernamePasswordCredentialsValidator' defined in ServletContext
>> resource [/WEB-INF/cas-servlet.xml]; nested exception is
>> java.lang.ClassNotFoundException:
>> org.jasig.cas.validation.UsernamePasswordCredentialsValidator
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1208)
>>  at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
>>  at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
>>  at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
>>  ... 47 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.jasig.cas.validation.UsernamePasswordCredentialsValidator
>>  at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
>>  at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
>>  at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1229)
>>  at
>> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1200)
>>   Kindly advise me what i am missing in the configuration.
>>
>>
>>  ----- Original Message -----
>> *From:* Scott Battaglia <[email protected]>
>> *To:* [email protected]
>> *Sent:* Friday, July 09, 2010 7:05 AM
>>   *Subject:* Re: [cas-dev] CAS 3.4.2 - REMEMBER ME OPTION
>>
>> You've done all the steps on here?
>> https://wiki.jasig.org/display/CASUM/Remember+Me
>> (swapping the one step that's different for Spring Web Flow)
>>
>> Are you also running over SSL?
>>
>>  On Thu, Jul 8, 2010 at 10:45 PM, Tanura Vittil <[email protected]>wrote:
>>
>>>  Putting those binders didn't work for me.......is there any other
>>> configuration that
>>> i should change?
>>>
>>> Thank you so much for the follow-ups.
>>>
>>> regards,
>>> tanura
>>>
>>>
>>>  ----- Original Message -----
>>> *From:* Scott Battaglia <[email protected]>
>>> *To:* [email protected]
>>>   *Sent:* Friday, July 09, 2010 5:43 AM
>>> *Subject:* Re: [cas-dev] CAS 3.4.2 - REMEMBER ME OPTION
>>>
>>> In theory yes.  You should also be able to remove all of those binders if
>>> you want.
>>>
>>> Check out the Spring Web Flow 2 documentation for the complete details
>>> :-)
>>>
>>>
>>> On Thu, Jul 8, 2010 at 2:33 PM, Tanura Vittil <[email protected]>wrote:
>>>
>>>>          <binder>
>>>>             <binding property="username" />
>>>>             <binding property="password" />
>>>>             <binding property="rememberMe" />
>>>>         </binder>
>>>> where rememberMe is the name of the form field in the casloginview.jsp
>>>> page
>>>>
>>>> is it like this?
>>>>
>>>> regards,
>>>> tanura
>>>>
>>>>
>>>>  ----- Original Message -----
>>>> *From:* Scott Battaglia <[email protected]>
>>>> *To:* [email protected]
>>>>   *Sent:* Thursday, July 08, 2010 9:14 PM
>>>> *Subject:* Re: [cas-dev] CAS 3.4.2 - REMEMBER ME OPTION
>>>>
>>>> You're only binding two properties.  What about the Remember Me
>>>> property?
>>>>
>>>>
>>>> On Thu, Jul 8, 2010 at 12:57 PM, Tanura Vittil <[email protected]>wrote:
>>>>
>>>>>  i tried this link....but it didn't work with me.....
>>>>> I tried this : Edited the login-webflow.xml file inside web-inf
>>>>> folder...as follows
>>>>>
>>>>> <view-state id="viewLoginForm" view="casLoginView" model="credentials">
>>>>>         <!-- remember me credentials -->
>>>>>                 <var name="credentials"
>>>>>
>>>>> class="org.jasig.cas.authentication.principal.RememberMeUsernamePasswordCredentials"/>
>>>>>
>>>>>                 <!-- Simple credentials
>>>>>                 <var name="credentials"
>>>>>
>>>>> class="org.jasig.cas.authentication.principal.UsernamePasswordCredentials"
>>>>> />
>>>>>                  -->
>>>>>         <binder>
>>>>>             <binding property="username" />
>>>>>             <binding property="password" />
>>>>>         </binder>
>>>>>         <on-entry>
>>>>>             <set name="viewScope.commandName" value="'credentials'" />
>>>>>         </on-entry>
>>>>>   <transition on="submit" bind="true" validate="true" to="realSubmit">
>>>>>             <set name="flowScope.credentials" value="credentials" />
>>>>>             <evaluate
>>>>> expression="authenticationViaFormAction.doBind(flowRequestContext,
>>>>> flowScope.credentials)" />
>>>>>         </transition>
>>>>>  </view-state>
>>>>>
>>>>> And restarted tomcat.
>>>>>
>>>>> But still the sessions is not remembered after i close all the
>>>>> browsers.
>>>>>
>>>>> Kindly help me solve this.
>>>>>
>>>>> regards,
>>>>> tanura
>>>>>
>>>>>
>>>>>   ----- Original Message -----
>>>>> *From:* Scott Battaglia <[email protected]>
>>>>> *To:* [email protected]
>>>>> *Sent:* Thursday, July 08, 2010 7:09 AM
>>>>> *Subject:* Re: [cas-dev] CAS 3.4.2 - REMEMBER ME OPTION
>>>>>
>>>>> Check out this thread:
>>>>>
>>>>> http://jasig.275507.n4.nabble.com/How-to-enable-remember-me-in-CAS-3-4-2-td1744967.html
>>>>>
>>>>>
>>>>> On Wed, Jul 7, 2010 at 11:06 PM, tanura <[email protected]> wrote:
>>>>>
>>>>>> Thank you so much for the mail.
>>>>>> It will be of great help if you can u specify exactly what i should
>>>>>> change and in exactly which file?
>>>>>>
>>>>>> regards,
>>>>>> tanura
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> *From:* [hidden 
>>>>>> email]<http://user/SendEmail.jtp?type=node&node=2281764&i=0>
>>>>>> *To:* [hidden 
>>>>>> email]<http://user/SendEmail.jtp?type=node&node=2281764&i=1>
>>>>>> *Sent:* Thursday, July 08, 2010 6:09 AM
>>>>>> *Subject:* Re: CAS 3.4.2 - REMEMBER ME OPTION
>>>>>>
>>>>>> Search the list archives. The only configuration that is slightly
>>>>>> different is how Spring Web Flow 2 allows you to define the domain class 
>>>>>> (in
>>>>>> Web Flow 2 its done in the flow. Â Just replace the
>>>>>> UsernamePasswordCredentials with the RememberMe ones)
>>>>>>
>>>>>>
>>>>>>  On Wed, Jul 7, 2010 at 12:24 AM, tanura <[hidden 
>>>>>> email]<http://user/SendEmail.jtp?type=node&node=2281740&i=0&by-user=t>
>>>>>> > wrote:
>>>>>>
>>>>>>>
>>>>>>> Hello !
>>>>>>>
>>>>>>> I am using cas 3.4.2 version. It works fine ......except the remember
>>>>>>> me
>>>>>>> option.
>>>>>>> I see that the documentation of the remember-me option is outdated.
>>>>>>> Can anyone help me to implement the remember-me option in cas 3.4.2
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>>
>>>>>>> tanura
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://jasig.275507.n4.nabble.com/CAS-3-4-2-REMEMBER-ME-OPTION-tp2280460p2280460.html<http://jasig.275507.n4.nabble.com/CAS-3-4-2-REMEMBER-ME-OPTION-tp2280460p2280460.html?by-user=t&by-user=t>
>>>>>>> Sent from the CAS Developers mailing list archive at Nabble.com.
>>>>>>>
>>>>>>> --
>>>>>>> You are currently subscribed to [hidden 
>>>>>>> email]<http://user/SendEmail.jtp?type=node&node=2281740&i=1&by-user=t>as:
>>>>>>>  [hidden
>>>>>>> email]<http://user/SendEmail.jtp?type=node&node=2281740&i=2&by-user=t>
>>>>>>>
>>>>>>> To unsubscribe, change settings or access archives, see
>>>>>>> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>> You are currently subscribed to [hidden email] 
>>>>>> <http://user/SendEmail.jtp?type=node&node=2281740&i=3&by-user=t> as: 
>>>>>> [hidden email] 
>>>>>> <http://user/SendEmail.jtp?type=node&node=2281740&i=4&by-user=t>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> To unsubscribe, change settings or access archives, see 
>>>>>> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------
>>>>>> View message @
>>>>>> http://jasig.275507.n4.nabble.com/CAS-3-4-2-REMEMBER-ME-OPTION-tp2280460p2281740.html<http://jasig.275507.n4.nabble.com/CAS-3-4-2-REMEMBER-ME-OPTION-tp2280460p2281740.html?by-user=t>
>>>>>> To unsubscribe from CAS 3.4.2 - REMEMBER ME OPTION, click here.
>>>>>>
>>>>>>
>>>>>> ------------------------------
>>>>>> View this message in context: Re: CAS 3.4.2 - REMEMBER ME 
>>>>>> OPTION<http://jasig.275507.n4.nabble.com/CAS-3-4-2-REMEMBER-ME-OPTION-tp2280460p2281764.html>
>>>>>>
>>>>>> Sent from the CAS Developers mailing list 
>>>>>> archive<http://jasig.275507.n4.nabble.com/CAS-Developers-f253502.html>at 
>>>>>> Nabble.com.
>>>>>>
>>>>>> --
>>>>>> 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
>>>>>
>>>>> --
>>>>> 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
>>>>
>>>>   --
>>>> 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
>>>
>>>  --
>>> 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
>>
>>  --
>> 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
>
>  --
> 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

Reply via email to