Forget it, I localized the problem. my custom views, themes and css seems to be responsible of the error I encountered. Now I found a working setup , however I'am a bit afraid that I can trash a working cas authentication only by changing a css file ! probably a misunderstood of mine somewhere , but can't find how I came to that strange behavior of not beeing anymore able to authenticate . Anyway, it works fine now, I hope it will last . thanks .
PS: french doc on what I did with french esup package cas-toolbox-3.1.1-1 http://www-public.int-evry.fr/~procacci/wiki/bin/view/Documentations/RenderCasv3C5 jehan.procaccia wrote: > OK, I do have a log4j installed > $ rpm -qa | grep log4j > log4j-1.2.13-3jpp.2 > > Mysteriously, I stoped/start tomcat and now cas start with no errors > :-) . > Unfortunaltly , now I have a new problem, it apparently cannot > authenticate against the ldap directory . I did configured > cas.authHandlers=ldapHandler in config.properties though !. More > strange, I have an other cas v3 machine where everyting works fine (I > am authenticated by cas and I do see the ldap request on the ldap > server), I took that cas sources and war to the server where I have > the problem, it also worked fine . But in order to have local > look&feel I had to rebuild the whole thing (ant clean, ant init, ant > undeploy, ant deploy) then I come to the point that it doesn't do any > ldap request and consequently refused to authenticate. It turns me > mad, I really don't know why on one server it works fine and on the > other as soon as I rebuild it it doesn't anymore :-( . > > here the problem in logs: > > cas.log when tomcat restarts, are these WARN a problem ? > > 2008-01-30 12:25:46,897 WARN > [org.springframework.ldap.support.LdapContextSource] - Property > 'userName' not set - anonymous context will be used for read-write > operations > 2008-01-30 12:25:47,619 INFO > [org.jasig.cas.web.flow.AuthenticationViaFormAction] - FormObjectClass > not set. Using default class of > org.jasig.cas.authentication.principal.UsernamePasswordCredentials > with formObjectName credentials and validator > org.jasig.cas.validation.UsernamePasswordCredentialsValidator. > 2008-01-30 12:25:48,486 WARN > [org.springframework.ldap.support.LdapContextSource] - Property > 'userName' not set - anonymous context will be used for read-write > operations > 2008-01-30 12:25:48,944 INFO > [org.jasig.cas.web.flow.AuthenticationViaFormAction] - FormObjectClass > not set. Using default class of > org.jasig.cas.authentication.principal.UsernamePasswordCredentials > with formObjectName credentials and validator > org.jasig.cas.validation.UsernamePasswordCredentialsValidator. > 2008-01-30 12:25:49,765 WARN > [org.springframework.ldap.support.LdapContextSource] - Property > 'userName' not set - anonymous context will be used for read-write > operations > 2008-01-30 12:25:50,343 INFO > [org.jasig.cas.web.flow.AuthenticationViaFormAction] - FormObjectClass > not set. Using default class of > org.jasig.cas.authentication.principal.UsernamePasswordCredentials > with formObjectName credentials and validator > org.jasig.cas.validation.UsernamePasswordCredentialsValidator. > > The few secondes later : > > 2008-01-30 12:26:06,416 INFO > [org.jasig.cas.web.flow.InitialFlowSetupAction] - Setting ContextPath > for cookies to: /cas > 2008-01-30 12:26:09,553 INFO > [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - > Starting cleaning of expired tickets from ticket registry at [Wed Jan > 30 12:26:09 CET 2008] > 2008-01-30 12:26:09,553 INFO > [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - > 0 found to be removed. Removing now. > 2008-01-30 12:26:09,553 INFO > [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - > Finished cleaning of expired tickets from ticket registry at [Wed Jan > 30 12:26:09 CET 2008] > > Fianlly when user logs in http://cas1.int-evry.fr:8080/cas/login he > gets "The credentials you provided cannot be determined to be > authentic." and I don't see any ldap request on the ldap server !? > > 2008-01-30 12:26:23,287 INFO > [org.jasig.cas.authentication.AuthenticationManagerImpl] - > AuthenticationHandler: > org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler failed > to authenticate the user which provided the following credentials: test > > > Scott Battaglia wrote: >> For whatever reason you are somehow missing the following: >> >> Caused by: java.lang.NoClassDefFoundError: >> org/apache/log4j/spi/ThrowableInformation >> >> Are you sure that log4j is available? The fact that a log4j error is >> showing up may be hiding the real error. >> >> -Scott >> >> On Jan 29, 2008 12:03 PM, jehan procaccia >> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> >> wrote: >> >> strangely , I had a cas v3 running OK for several days , but while >> only >> configuring look&feel (cas.css, jps theme, views ...) , I don't >> know how >> but I came to a point that cas isn't running anymore :-( . Tomcat >> cannot start it , and shows in catalina.out the following error : >> >> Jan 29, 2008 5:57:38 PM org.apache.catalina.core.ContainerBase stop >> INFO: Container >> >> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cas].[cas] >> >> has not been started >> Jan 29, 2008 5:57:38 PM org.apache.catalina.core.ContainerBase stop >> INFO: Container >> >> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cas].[jsp] >> >> has not been started >> Jan 29, 2008 5:57:38 PM org.apache.catalina.core.ContainerBase stop >> INFO: Container >> >> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cas].[default] >> >> >> has not been started >> Jan 29, 2008 5:57:38 PM org.apache.commons.modeler.Registry >> unregisterComponent >> SEVERE: Error unregistering mbean >> javax.management.RuntimeErrorException: Error thrown in >> preDeregister method >> at >> >> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1053) >> >> >> at >> >> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:421) >> >> >> at >> >> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403) >> >> >> at >> >> com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506) >> >> >> at >> >> org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643) >> >> at >> >> org.apache.catalina.core.StandardContext.start(StandardContext.java:3999) >> >> at >> >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) >> >> >> at >> >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) >> at >> >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) >> at >> >> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) >> >> at >> >> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) >> >> >> at >> >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) >> at >> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206) >> at >> >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293) >> >> at >> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) >> >> >> at >> >> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306) >> >> >> at >> >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) >> >> >> at >> >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) >> >> >> at >> >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559) >> >> >> at java.lang.Thread.run(Thread.java:619) >> Caused by: java.lang.NoClassDefFoundError: >> org/apache/log4j/spi/ThrowableInformation >> at >> org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:154) >> at org.apache.log4j.Category.forcedLog(Category.java:388) >> at org.apache.log4j.Category.log(Category.java:853) >> at >> >> org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:251) >> at >> >> org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3809) >> >> >> at >> >> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4357) >> at >> >> org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:5009) >> >> >> at >> >> org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:1410) >> >> >> at >> >> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1048) >> >> >> ... 19 more >> Jan 29, 2008 5:57:38 PM >> org.apache.catalina.core.NamingContextListener >> lifecycleEvent >> SEVERE: Creation of the naming context failed: >> javax.naming.NamingException: Context is read only >> 2008-01-29 17:57:39,501 WARN >> [org.springframework.ldap.support.LdapContextSource] - <Property >> 'userName' not set - anonymous context will be used for read-write >> operations> >> 2008-01-29 17:57:39,995 INFO >> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - >> <FormObjectClass >> not set. Using default class of >> org.jasig.cas.authentication.principal.UsernamePasswordCredentials >> with >> formObjectName credentials and validator >> org.jasig.cas.validation.UsernamePasswordCredentialsValidator.> >> >> >> If you have an idea on where I should start to find out what is >> wrng , >> please let me know. >> Thanks. >> >> PS: I use cas from >> >> >> http://sourcesup.cru.fr/frs/download.php/1799/cas-toolbox-3.1.1-1.tar.gz >> I documented my positive (at that time ...) installation >> experience at : >> >> http://www-public.int-evry.fr/~procacci/wiki/bin/view/Documentations/InstallCasv3C5 >> >> >> >> <http://www-public.int-evry.fr/%7Eprocacci/wiki/bin/view/Documentations/InstallCasv3C5> >> >> >> >> _______________________________________________ >> Yale CAS mailing list >> [email protected] <mailto:[email protected]> >> http://tp.its.yale.edu/mailman/listinfo/cas >> >> >> >> >> -- >> -Scott Battaglia >> >> LinkedIn: http://www.linkedin.com/in/scottbattaglia >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Yale CAS mailing list >> [email protected] >> http://tp.its.yale.edu/mailman/listinfo/cas >> > > _______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
