CAS is Unavailable

Scott Battaglia scott.battaglia at gmail.com
Sat May 5 12:44:42 EDT 2007


Did you include the CAS LDAP jar in your localPlugins/lib?

-Scott

On 5/5/07, PLK Albert <plkit.helpdesk at poleungkuk.org.hk> wrote:
>
> Hi,
>
> I update the cas-server to 3.0.7-final.   And using LDAP for
> authenication.
> After configure the deployerConfigContext.xml, it shows CAS is
> Unavailable.
> It says that Cannot find class
> [org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource.
> But I have define in deployerConfigContext.xml and found the file which is
> at
>
> /usr/local/cas-server/adaptors/ldap/src/main/java/org/jasig/cas/adaptors/lda
> p/util/
>
> What's going error?
>
> deployerConfigContext.xml
>
> <beans
>         <bean id="authenticationManager"
>
> class="org.jasig.cas.authentication.AuthenticationManagerImpl">
>                 <property name="credentialsToPrincipalResolvers">
>                         <list>
>                                 <bean
>
> class="
> org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToP
> rincipalResolver" />
>                                 <bean
>
> class="
> org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToP
> rincipalResolver" />
>                         </list>
>                 </property>
>                 <property name="authenticationHandlers">
>                         <list>
>                          <bean
>
> class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler" >
>                                 <property name="filter" value="cn=%u" />
>                                 <property name="searchBase"
> value="ou=people,dc=plk,dc=hk" />
>                                 <property name="contextSource"
> ref="contextSource" />
>                          </bean>
>
>                         </list>
>                 </property>
>          </bean>
>          <bean id="contextSource"
> class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
>                  <property name="authenticatedReadOnly" value="true" />
>                  <property name="pooled" value="true" />
>                  <property name="urls" value="ldap://plk.hk:389/" />
>                  <property name="userName" value="cn=Manager,dc=plk,dc=hk"
> />
>                  <property name="password" value="secret" />
>                  <property name="baseEnvironmentProperties">
>                         <map>
>                                 <entry>
>
> <key><value>java.naming.security.authentication</value></key>
>                                         <value>simple</value>
>                                 </entry>
>                         </map>
>                  </property>
>          </bean>
>
> </beans>^M
>
>
> 2007-05-05 12:39:54,564 FATAL
> [org.jasig.cas.web.init.SafeDispatcherServlet] - SafeDispatcherServlet:
> The Spring DispatcherServlet we wrap threw on init.
> But for our having caught this error, the servlet would not have
> initialized.
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> find
> class [org.jasig.cas.adaptors.ldap.util.Authe
> nticatedLdapContextSource] for bean with name 'contextSource' defined in
> ServletContext resource [/WEB-INF/deployerConfig
> Context.xml]; nested exception is java.lang.ClassNotFoundException:
> org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapCon
> textSource
> Caused by:
> java.lang.ClassNotFoundException:
> org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.jav
> a:1340)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.jav
> a:1189)
>         at org.springframework.util.ClassUtils.forName(ClassUtils.java
> :201)
>         at
>
> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBean
> Class(AbstractBeanDefinition.java:
> 321)
>         at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanCla
> ss(AbstractBeanFactory.java:1058)
>         at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.isBeanClassMat
> ch(AbstractBeanFactory.java:1086)
>         at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean
> NamesForType(DefaultListableBeanFa
> ctory.java:173)
>         at
>
> org.springframework.context.support.AbstractApplicationContext.getBeanNamesF
> orType(AbstractApplicationContext.
> java:736)
>         at
>
> org.springframework.context.support.AbstractApplicationContext.invokeBeanFac
> toryPostProcessors(AbstractApplica
> tionContext.java:403)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh
> (Abstr
> actApplicationContext.java:334)
>         at
> org.springframework.web.context.ContextLoader.createWebApplicationContext
> (Co
> ntextLoader.java:241)
>         at
> org.springframework.web.context.ContextLoader.initWebApplicationContext
> (Cont
> extLoader.java:184)
>         at
> org.springframework.web.context.ContextLoaderListener.contextInitialized
> (Con
> textLoaderListener.java:49)
>         at
> org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized
> (SafeCont
> extLoaderListener.java:62)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(
> StandardContext.java:
> 3827)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :8
> 23)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
>         at
> org.apache.catalina.core.StandardHostDeployer.install(
> StandardHostDeployer.j
> ava:277)
>         at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java
> :983)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> (LifecycleSuppor
> t.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
>
>
>
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070505/ebb9aff9/attachment.html 


More information about the cas mailing list