Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
liferay 6.0.5 and CAS antonello grimaldi February 7, 2011 2:47 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 7, 2011 3:58 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 7, 2011 4:15 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 7, 2011 6:00 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 7, 2011 6:21 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 8, 2011 3:09 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 8, 2011 2:06 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 8, 2011 3:01 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 8, 2011 3:50 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 8, 2011 4:35 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 9, 2011 1:08 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 9, 2011 7:05 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 9, 2011 8:52 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 9, 2011 10:08 PM
RE: liferay 6.0.5 and CAS antonello grimaldi February 10, 2011 6:16 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 11, 2011 1:33 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 11, 2011 1:45 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 13, 2011 10:43 PM
RE: liferay 6.0.5 and CAS antonello grimaldi February 14, 2011 3:21 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 14, 2011 3:25 AM
RE: liferay 6.0.5 and CAS vasv kumar February 15, 2011 1:00 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 15, 2011 2:01 AM
RE: liferay 6.0.5 and CAS vasv kumar February 15, 2011 2:06 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 15, 2011 2:57 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 15, 2011 2:58 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 16, 2011 7:06 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 16, 2011 9:45 AM
RE: liferay 6.0.5 and CAS antonello grimaldi February 17, 2011 6:21 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 17, 2011 9:01 AM
RE: liferay 6.0.5 and CAS vasv kumar February 15, 2011 1:16 AM
RE: liferay 6.0.5 and CAS vasv kumar February 13, 2011 10:30 PM
RE: liferay 6.0.5 and CAS ice sword June 7, 2011 6:37 PM
RE: liferay 6.0.5 and CAS Apoorva Prakash June 7, 2011 9:04 PM
RE: liferay 6.0.5 and CAS ice sword June 7, 2011 10:51 PM
RE: liferay 6.0.5 and CAS Apoorva Prakash June 7, 2011 11:34 PM
RE: liferay 6.0.5 and CAS Aasif Bihari June 11, 2013 5:26 AM
RE: liferay 6.0.5 and CAS Juan Gonzalez February 7, 2011 4:08 AM
RE: liferay 6.0.5 and CAS Apoorva Prakash February 7, 2011 4:21 AM
antonello grimaldi
liferay 6.0.5 and CAS
February 7, 2011 2:47 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Hello everybody,
I'm trying to set CAS with Liferay 6.0.5
After deploying cas server in my tomcat bundle (and after opening 8443 port in server.xml), I set these parameters in Control-Panel->Authentication->CAS

Check "Enabled"

Login url: https://localhost:8443/cas-web/login
Logout url: https://localhost:8443/cas-web/logout
Server name: localhost:8080
Service URL: http://localhost:8080/c/portal/login

After saving, I try to login (with "Sign in" in top right corner of home page), and I am redirect in CAS login page. I enter liferay standard admin credentials (bruno-bruno, I use screen name login), I click on Login button, but I'm redirect on a blanck page with url http://localhost:8080/c/portal/login?ticket=[ticket-number], rather than my logged portal home page.

Can you help me? There are another steps of configuration I have to do?

Thanks in advance
Antonello
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 7, 2011 3:58 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Hello Apoorva,
in my server.xml I am not commenting port 8080...
but in my portal there isn't any "Validate URL" textfield...
Can you help me?
Thanks
Juan Gonzalez
RE: liferay 6.0.5 and CAS
February 7, 2011 4:08 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

antonello grimaldi:
Hello everybody,
Login url: https://localhost:8443/cas-web/login
Logout url: https://localhost:8443/cas-web/logout
Server name: localhost:8080
Service URL: http://localhost:8080/c/portal/login


I send you my working config in port 8080 too:

Login url: http://localhost:8080/cas/login
Logout url: http://localhost:8080/cas/logout
Server name: localhost
Service URL: http://localhost:8080/c/portal/login

It seems you do not have to provide the port in Server name.
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 7, 2011 4:15 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

antonello grimaldi:
Hello Apoorva,
in my server.xml I am not commenting port 8080...
but in my portal there isn't any "Validate URL" textfield...
Can you help me?
Thanks


OK then, check that you have added the following in server.xml
I hope that your path to keystore and cacerts are not correct... You may try with absolute paths...
 1<Connector port="8443" maxHttpHeaderSize="8192"
 2        maxThreads="150" minSpareThreads="25"
 3        maxSpareThreads="75"
 4        enableLookups="false" disableUploadTimeout="true"
 5        acceptCount="100" scheme="https" secure="true"
 6        clientAuth="false" sslProtocol="TLS"
 7        keystoreFile="<path to keystore>"
 8        keystorePass="changeit"
 9        truststoreFile="<path to cacerts>" />


set following in system-ext.properties
1com.liferay.filters.sso.cas.CASFilter=true


Hope this will help...

Thanks, regards and happy coding... emoticon
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 7, 2011 4:21 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Juan,

I have integrated CAS in Liferay 5.2.3 several times and we have to provide port in server name...

Thanks and Regards...
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 7, 2011 6:00 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Hello, I set system-ext.properties correctly, and path to keystore is correct...but I have still the problem...

I use a proxy to connect via Internet...may be this the reason of my problem?
thanks
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 7, 2011 6:21 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

This is the exception that appears in my console...

 114:18:37,023 ERROR [CASFilter:136] org.jasig.cas.client.validation.TicketValidationException: java.net.MalformedURLException: no protocol: /proxyValidate?&redirectAfterValidation=false&ticket=ST-3-QTjcMKZxHie75YVkdxoobOxXDicyexkzb5j-20&service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin&casServerUrlPrefix=&serverName=localhost&casServerLoginUrl=https://localhost:8443/cas-web/login
 2org.jasig.cas.client.validation.TicketValidationException: java.net.MalformedURLException: no protocol: /proxyValidate?&redirectAfterValidation=false&ticket=ST-3-QTjcMKZxHie75YVkdxoobOxXDicyexkzb5j-20&service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin&casServerUrlPrefix=&serverName=localhost&casServerLoginUrl=https://localhost:8443/cas-web/login
 3    at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:190)
 4    at com.liferay.portal.servlet.filters.sso.cas.CASFilter.processFilter(CASFilter.java:162)
 5    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 6    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 7    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 8    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 9    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:179)
10    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
11    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
12    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
14    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:184)
15    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
16    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
17    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
18    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
19    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
20    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
21    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
22    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
23    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
24    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
25    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
26    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
27    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
28    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
29    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
30    at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
31    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
32    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
33    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
34    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
35    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
36    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
37    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
38    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
39    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
40    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
41    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
42    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
43    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
44    at java.lang.Thread.run(Thread.java:619)
45Caused by: java.net.MalformedURLException: no protocol: /proxyValidate?&redirectAfterValidation=false&ticket=ST-3-QTjcMKZxHie75YVkdxoobOxXDicyexkzb5j-20&service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin&casServerUrlPrefix=&serverName=localhost&casServerLoginUrl=https://localhost:8443/cas-web/login
46    at java.net.URL.<init>(URL.java:567)
47    at java.net.URL.<init>(URL.java:464)
48    at java.net.URL.<init>(URL.java:413)
49    at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:178)
50    ... 41 more
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 8, 2011 3:09 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Antonello Grimaldi,

It seems that your certificate is not correctly generated and that why proxy ticket validator is unable to validate the ticket... try giving absolute path...

One more thing, you must import the certificate in cacerts of the very same jre, which your project is using... check it out...

Please refer the image attached for certificate generation...


Hope this will help...

Thanks and Regards... emoticon
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 8, 2011 2:06 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Nothing happens..I tried to regenerate certificate but the problem is not resolved...seems an error in proxyValidate parameter of URL...have you customized your portal-ext.properties for cas?
thanks
Antonello
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 8, 2011 3:01 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Grimaldi,

Yea I've done by this approach too, but if you are making entries in Control Panel, then these properties are overridden...

portal-ext.properties
1cas.auth.enabled=true
2cas.login.url=https://localhost:8443/cas/login
3cas.logout.url=https://localhost:8443/cas/logout?url=http://localhost:8080/
4cas.service.url=http://localhost:8080/c/portal/login
5cas.server.name=localhost:8080
6cas.validate.url=https://localhost:8443/cas/proxyValidate


system-ext.properties
1com.liferay.filters.sso.cas.CASFilter=true


Hope this will help...

Thanks, regards and happy coding... emoticon
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 8, 2011 3:50 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Resolved!!
It was a certificate problem, I did not use jvm in tomcat bundle, but another jvm...
Now it works..and now, I'm starting to configure cas with LDAP...I hope without problems...
Thanks for all Apoorva...
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 8, 2011 4:35 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hi again Grimaldi,

So, my previous finding was right... Thats cool... emoticon

If you using ApacheDS, then this post and following can help you is this regard...

Add in cas-web\WEB-INF\deployerConfigContext.xml
 1<bean id="contextSource" class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
 2              <property name="pooled" value="true"/>
 3              <property name="urls">
 4                  <list>
 5                      <value>ldap://localhost:10389</value>
 6                  </list>
 7              </property>
 8              <property name="userName" value="uid=admin,ou=system"/>
 9              <property name="password" value="secret"/>
10              <property name="baseEnvironmentProperties">
11                  <map>
12                      <entry>
13                          <key>
14                              <value>java.naming.security.authentication</value>
15                          </key>
16                          <value>simple</value>
17                      </entry>
18                  </map>
19              </property>
20        </bean>


Add the corresponding AuthenticationHandler in deployerConfigContext.xml
1<bean  class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" >
2             <property name="filter" value="cn=%u,dc=example,dc=com" />
3             <property name="contextSource" ref="contextSource" />
4   </bean>


and don't forget to add cas-server-support-ldap-3.2.1.jar...

Hope this will help...

Thanks, regards and happy coading... emoticon
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 9, 2011 1:08 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Hello Apoorva,
Before trying to configure ldap with my CAS server, I'm trying to configure Alfresco with my CAS server...Alfresco is in listening on port 9090 of my localhost; I followed thi step:

1)Add the CAS Client Filter to Alfresco :

In web.xml (alfresco/tomcat/webapps/alfresco/WEB-INF/web.xml)
 1
 2 <!-- CAS client filter -->
 3 <filter>
 4     <filter-name>CAS Filter</filter-name>
 5     <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
 6     <init-param>
 7         <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
 8         <param-value>https://localhost:8443/cas-web/login</param-value>
 9     </init-param>
10     <init-param>
11         <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
12         <param-value>https://localhost:8443/cas-web/serviceValidate</param-value>
13     </init-param>
14     <init-param>
15         <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
16         <param-value>localhost:9090</param-value>
17     </init-param>
18 </filter>
19
20 <filter-mapping>
21     <filter-name>CAS Filter</filter-name>
22     <url-pattern>/faces/*</url-pattern>
23 </filter-mapping>
24 <!-- end of CAS client filter -->


Note that loginUrl and validateUrl are in the same CAS server of liferay (https://localhost:8443/cas-web)

2) I copy casclient-2.1.1.jar in alfresco/tomcat/webapps/alfresco/WEB-INF/lib

3) Configure Alfresco's Authentication Filter in web.xml

I comment original Authentication Filter and enter this
 1
 2<filter>
 3    <filter-name>Authentication Filter</filter-name>
 4    <filter-class>com.keembay.alfresco.web.app.servlet.CASAuthenticationFilter</filter-class>
 5    <init-param>
 6        <param-name>cas.user.label</param-name>
 7        <param-value>edu.yale.its.tp.cas.client.filter.user</param-value>
 8    </init-param>
 9</filter>


4) Add the CAS Authentication Filter jar file
I copy keembay-alfresco-cas.jar in alfresco/tomcat/webapps/alfresco/WEB-INF/lib


Then, when I go to http://localhost:9090/alfresco I am correctly redirect on cas login page; I enter default admin credentials (admin/admin) and in the next page there is following error
1
2javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
3caused by:
4sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
5caused by:
6sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


I think this is a certificate error...Which operations I have to do to create a certificate for Alfresco? The same operations of Liferay certificate, changing the JVM where I import certificate? but my Alfresco Community Edition hasn't a jvm installed on its tomcat bundle

Thanks a lot, I hope you can help me
Antonello
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 9, 2011 7:05 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Grimaldi,

I haven't faced this problem as we've integrated Liferay with Alfresco using web services, instead the way generally used, i.e. with two parallel running app servers...
Your problem seems like this one... Refer the link, and ask further if needed...

Hope this will help...

Thanks and Regards... emoticon
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 9, 2011 8:52 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Hi again Apoorva,
I followed all steps to configure CAS for LDAP:
1) edit cas-web\WEB-INF\deployerConfigContext.xml and /opt/liferay/liferay-portal-6.0.5/tomcat-6.0.26/webapps/cas-web/META-INF/maven/org.jasig.cas/cas-server-webapp/pom.xml files
2)add cas-server-support-ldap-3.4.5.jar

but when I start tomcat I have this error
  12011-02-09 16:45:55,959 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed>
  2org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' of type [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean property 'authenticationHandlers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
  3    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
  4    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
  5    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
  6    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
  7    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  8    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  9    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
 10    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 11    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
 12    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
 13    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
 14    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
 15    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
 16    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
 17    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
 18    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 19    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:62)
 20    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:44)
 21    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)
 22    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
 23    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
 24    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 25    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 26    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
 27    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
 28    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
 29    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
 30    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
 31    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
 32    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 33    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 34    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
 35    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 36    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 37    at org.apache.catalina.core.StandardService.start(StandardService.java:519)
 38    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 39    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 40    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 41    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 42    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 43    at java.lang.reflect.Method.invoke(Unknown Source)
 44    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
 45    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 46Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' of type [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean property 'authenticationHandlers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
 47    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
 48    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
 49    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
 50    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
 51    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
 52    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
 53    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
 54    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 55    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
 56    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 57    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
 58    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
 59    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 60    ... 42 more
 61Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
 62    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
 63    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
 64    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
 65    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 66    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
 67    ... 54 more
 68Caused by: java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
 69    at java.lang.Class.getDeclaredConstructors0(Native Method)
 70    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
 71    at java.lang.Class.getConstructor0(Unknown Source)
 72    at java.lang.Class.getDeclaredConstructor(Unknown Source)
 73    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
 74    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
 75    ... 58 more
 76Caused by: java.lang.ClassNotFoundException: org.springframework.ldap.core.SearchExecutor
 77    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
 78    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
 79    ... 64 more
 802011-02-09 16:45:55,964 ERROR [org.jasig.cas.web.init.SafeContextLoaderListener] - <SafeContextLoaderListener:
 81The Spring ContextLoaderListener we wrap threw on contextInitialized.
 82But for our having caught this error, the web application context would not have initialized.>
 83org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' of type [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean property 'authenticationHandlers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
 84    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 85    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 86    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
 87    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
 88    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
 89    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 90    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
 91    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 92    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
 93    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
 94    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
 95    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
 96    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
 97    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
 98    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
 99    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
100    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:62)
101    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:44)
102    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)
103    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
104    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
105    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
106    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
107    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
108    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
109    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
110    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
111    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
112    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
113    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
114    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
115    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
116    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
117    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
118    at org.apache.catalina.core.StandardService.start(StandardService.java:519)
119    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
120    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
121    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
122    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
123    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
124    at java.lang.reflect.Method.invoke(Unknown Source)
125    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
126    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
127Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' of type [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean property 'authenticationHandlers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
128    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
129    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
130    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
131    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
132    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
133    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
134    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
135    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
136    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
137    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
138    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
139    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
140    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
141    ... 42 more
142Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
143    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
144    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
145    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
146    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
147    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
148    ... 54 more
149Caused by: java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
150    at java.lang.Class.getDeclaredConstructors0(Native Method)
151    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
152    at java.lang.Class.getConstructor0(Unknown Source)
153    at java.lang.Class.getDeclaredConstructor(Unknown Source)
154    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
155    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
156    ... 58 more
157Caused by: java.lang.ClassNotFoundException: org.springframework.ldap.core.SearchExecutor
158    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
159    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
160    ... 64 more
161SafeContextLoaderListener:
162The Spring ContextLoaderListener we wrap threw on contextInitialized.
163But for our having caught this error, the web application context would not have initialized.
164org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in ServletContext resource [/WEB-INF/spring-configuration/applicationContext.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' of type [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean property 'authenticationHandlers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
165    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
166    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
167    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
168    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
169    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
170    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
171    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
172    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
173    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
174    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
175    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
176    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
177    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
178    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
179    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
180    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
181    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:62)
182    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:44)
183    at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1)
184    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
185    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
186    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
187    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
188    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
189    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
190    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
191    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
192    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
193    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
194    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
195    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
196    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
197    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
198    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
199    at org.apache.catalina.core.StandardService.start(StandardService.java:519)
200    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
201    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
202    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
203    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
204    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
205    at java.lang.reflect.Method.invoke(Unknown Source)
206    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
207    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
208Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' of type [org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] while setting bean property 'authenticationHandlers' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
209    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
210    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
211    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
212    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
213    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
214    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
215    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
216    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
217    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
218    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
219    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
220    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
221    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
222    ... 42 more
223Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#32d08faa' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
224    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
225    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
226    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
227    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
228    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
229    ... 54 more
230Caused by: java.lang.NoClassDefFoundError: org/springframework/ldap/core/SearchExecutor
231    at java.lang.Class.getDeclaredConstructors0(Native Method)
232    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
233    at java.lang.Class.getConstructor0(Unknown Source)
234    at java.lang.Class.getDeclaredConstructor(Unknown Source)
235    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
236    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
237    ... 58 more
238Caused by: java.lang.ClassNotFoundException: org.springframework.ldap.core.SearchExecutor
239    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
240    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
241    ... 64 more



Can you help me? Thanks a lot for your patience..
Antonello
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 9, 2011 10:08 PM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Grimaldi,

Add this bean just before the <bean> ends in EOF deployerConfigContext.xml(there are minor changes from the previous post)...

 1<bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
 2          <property name="pooled" value="false"/>
 3          <property name="urls">
 4              <list>
 5                  <value>ldap://localhost:10389</value>
 6              </list>
 7          </property>
 8          <property name="userDn" value="uid=admin,ou=system"/>
 9          <property name="password" value="secret"/>
10          <property name="baseEnvironmentProperties">
11              <map>
12                  <entry>
13                      <key>
14                          <value>java.naming.security.authentication</value>
15                      </key>
16                      <value>simple</value>
17                  </entry>
18              </map>
19          </property>
20</bean>


Comment the SimpleTestUsernamePasswordAuthenticationHandler bean entry, and add the following instead in the end of this bean <property name="authenticationHandlers">...
1<bean  class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" >
2    <property name="filter" value="cn=%u,dc=example,dc=com" />
3    <property name="contextSource" ref="contextSource" />
4</bean>


and entry that you've made in pom.xml is not that necessary, hope you know this file is used at the time of build...

Hope this will help...

Thanks, regards and happy coding... emoticon
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 10, 2011 6:16 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Hi again Apoorva,
now there is another problem...(in starting tomcat)

java.lang.NoClassDefFoundError: org/springframework/ldap/NamingException

can you help me? there is another jar I have to import in classpath?

Thanks a lot
Antonello
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 11, 2011 1:33 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Solved, I put spring-ldap-core-1.3.0.RELEASE.jar in classpath of cas-web...
Thanks...
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 11, 2011 1:45 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Hi again Apoorva, I have set all parameters in Control Panel of Liferay (CAS Enabled, Import from LDAP, LDAP Enabled and Required, same Password Policy ecc) but with LDAP users there isn't authentication...Settigs of LDAP are correct, in fact if I try to log-in without CAS with an user from LDAP, authentication has success...

In deployerConfigContext.xml looks at these lines

1
2<property name="userDn" value="uid=admin,ou=system"/>
3<property name="password" value="secret"/>


Credentials have to be necessary admin of AD credentials?
Thanks a lot
Antonello
vasv kumar
RE: liferay 6.0.5 and CAS
February 13, 2011 10:30 PM
Answer

vasv kumar

Rank: Junior Member

Posts: 46

Join Date: February 7, 2011

Recent Posts

Hi,

How you did it?please little bit elaborate on this.
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 13, 2011 10:43 PM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Welcome Grimaldi...
It feels good to help others...

Thanks, Ragards and Happy Coading... emoticon
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 14, 2011 3:21 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Resolved...
I'm using MS Active Directory, which doesn't work fine with FastBindLdapAuthenticationHandler...Now I use BindLdapAuthenticationHandler and all works fine...
Thanks for help...
Antonello
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 14, 2011 3:25 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Thanks for information Grimaldi...
I've never used MSAD for the purpose, so I'm not aware of this...
I've used Apache DS...

Thanks and Regards... emoticon
vasv kumar
RE: liferay 6.0.5 and CAS
February 15, 2011 1:00 AM
Answer

vasv kumar

Rank: Junior Member

Posts: 46

Join Date: February 7, 2011

Recent Posts

HI,

Here i am getting one more exception NoSuchUser Exception.Please see the screen shot.Do you have any idea?
Attachment

Attachments: exce.png (124.2k)
vasv kumar
RE: liferay 6.0.5 and CAS
February 15, 2011 1:16 AM
Answer

vasv kumar

Rank: Junior Member

Posts: 46

Join Date: February 7, 2011

Recent Posts

HI antonello,

can you tell me what you placed exactly in the place of FastBindLdapAuthenticationHandler?

Thanks
Vissu
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 15, 2011 2:01 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello,

See this link...
Use BindLdapAuthenticationHandler instead...

Hope this will help...

Thanks and Regards...
vasv kumar
RE: liferay 6.0.5 and CAS
February 15, 2011 2:06 AM
Answer

vasv kumar

Rank: Junior Member

Posts: 46

Join Date: February 7, 2011

Recent Posts

Hi,

Thanks for link.Please see the below log.I am getting the following exception.Do you have any idea?



16:19:35,104 ERROR [PortalLDAPImporterImpl:470] Unable to import user uid=op6,ou=People: null:null:{uid=uid: op6}
java.lang.NullPointerException
at com.liferay.portal.security.pwd.PasswordPolicyToolkit.generateDynamic(PasswordPolicyToolkit.java:162)
at com.liferay.portal.security.pwd.PasswordPolicyToolkit.generate(PasswordPolicyToolkit.java:75)
at com.liferay.portal.security.pwd.PwdToolkitUtil._generate(PwdToolkitUtil.java:56)
at com.liferay.portal.security.pwd.PwdToolkitUtil.generate(PwdToolkitUtil.java:32)
at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:354)
at sun.reflect.GeneratedMethodAccessor364.invoke(Unknown Source)
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 15, 2011 2:57 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

seems to be a LDAP configuration error...check your config parameters
Good luck!
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 15, 2011 2:58 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Kumar,

Compare your LDAP settings with this post...

Hope this will help...
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 16, 2011 7:06 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

Hi again Apoorva,
I configured Jasig CAS+LDAP in liferay and now I would get logged user informations...Can you tell something about JAVA LDAP API for CAS?
Thanks in advance...
Antonello
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 16, 2011 9:45 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Grimaldi,
I am helpless this time... I haven't done this so far...
Please do share, if you get something positive...

Thanks and Regards...
antonello grimaldi
RE: liferay 6.0.5 and CAS
February 17, 2011 6:21 AM
Answer

antonello grimaldi

Rank: New Member

Posts: 22

Join Date: January 21, 2011

Recent Posts

I used these API: http://download.oracle.com/javase/tutorial/jndi/ldap/

I'm query ldap server with a filter that contains as a sAMAccountName CAS logged user (request.getRemoteUser())...

Very simple...
Happy coding
Antonello
Apoorva Prakash
RE: liferay 6.0.5 and CAS
February 17, 2011 9:01 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Thanks Grimaldi...
ice sword
RE: liferay 6.0.5 and CAS
June 7, 2011 6:37 PM
Answer

ice sword

Rank: New Member

Posts: 7

Join Date: January 23, 2011

Recent Posts

antonello grimaldi:
Resolved!!
It was a certificate problem, I did not use jvm in tomcat bundle, but another jvm...
Now it works..and now, I'm starting to configure cas with LDAP...I hope without problems...
Thanks for all Apoorva...



hello,antonello grimaldi

i used liferay 6.0.6 now,when i click "sign in",it redirect to cas, and i input test for username and test for password , it redirect on a blanck page with url http://localhost:8080/c/portal/login?ticket=[ticket-number],and i get errors:

"ERROR [CASFilter:136] org.jasig.cas.client.validation.TicketValidationException: java.net.MalformedURLException: no protocol: /proxyValidate?&redirectAfterValidation=false&ticket=ST-3-QTjcMKZxHie75YVkdxoobOxXDicyexkzb5j-20&service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin&casServerUrlPrefix=&serverName=localhost&casServerLoginUrl=https://localhost:8443/cas-web/login
org.jasig.cas.client.validation.TicketValidationException: java.net.MalformedURLException: no protocol: /proxyValidate?&redirectAfterValidation=false&ticket=ST-3-QTjcMKZxHie75YVkdxoobOxXDicyexkzb5j-20&service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin&casServerUrlPrefix=&serverName=localhost&casServerLoginUrl=https://localhost:8443/cas-web/login"

just like you got,so could you help me? thanks very much
Apoorva Prakash
RE: liferay 6.0.5 and CAS
June 7, 2011 9:04 PM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Ice Sword...
This issue is relared with SSL certificate. Recheck it.
If opossible delete the .keystore file, generate from the very beginning.
Try giving absolute path for keystoreFile and trustFileStore attributes in server.xml.
Hope this will help.
Thanks, regards and Happycoding... emoticon
ice sword
RE: liferay 6.0.5 and CAS
June 7, 2011 10:51 PM
Answer

ice sword

Rank: New Member

Posts: 7

Join Date: January 23, 2011

Recent Posts

Apoorva Prakash:
Hello Ice Sword...
This issue is relared with SSL certificate. Recheck it.
If opossible delete the .keystore file, generate from the very beginning.
Try giving absolute path for keystoreFile and trustFileStore attributes in server.xml.
Hope this will help.
Thanks, regards and Happycoding... emoticon



hello,Apoorva Prakash

The problem is resovled,i write these properties in portal-ext.properties as you told instead of setting them by Control Panel , now it works well

portal-ext.properties

cas.auth.enabled=true
cas.login.url=https://localhost:8443/cas/login
cas.logout.url=https://localhost:8443/cas/logout
cas.service.url=http://localhost:8080/c/portal/login
cas.server.name=localhost:8080
cas.validate.url=https://localhost:8443/cas/proxyValidate


thanks very much!
Apoorva Prakash
RE: liferay 6.0.5 and CAS
June 7, 2011 11:34 PM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

hello mate,
welcome... cheers !!!
Aasif Bihari
RE: liferay 6.0.5 and CAS
June 11, 2013 5:26 AM
Answer

Aasif Bihari

Rank: New Member

Posts: 7

Join Date: January 10, 2012

Recent Posts

antonello grimaldi:
Resolved!!
It was a certificate problem, I did not use jvm in tomcat bundle, but another jvm...
Now it works..and now, I'm starting to configure cas with LDAP...I hope without problems...
Thanks for all Apoorva...



Hi Antonello,
I am getting the same error as you were getting

4:18:37,023 ERROR [CASFilter:136] org.jasig.cas.client.validation.TicketValidationException: java.net.MalformedURLException: no protocol: /proxyValidate?&redirectAfterValidation=false&ticket=ST-3-QTjcMKZxHie75YVkdxoobOxXDicyexkzb5j-20&service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin&casServerUrlPrefix=&serverName=localhost&casServerLoginUrl=https://localhost:8443/cas-web/login
2org.jasig.cas.client.validation.TicketValidationException: java.net.MalformedURLException: no protocol: /proxyValidate?&redirectAfterValidation=false&ticket=ST-3-QTjcMKZxHie75YVkdxoobOxXDicyexkzb5j-20&service=http%3A%2F%2Flocalhost%3A8080%2Fc%2Fportal%2Flogin&casServerUrlPrefix=&serverName=localhost&casServerLoginUrl=https://localhost:8443/cas-web/login
3 at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:190)
4 at com.liferay.portal.servlet.filters.sso.cas.CASFilter.processFilter(CASFilter.java:162)
5 at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)

This is my setting in server.xml of liferay
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts"
keystorePass="changeit" keyAlias="finalkey"
truststoreFile="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts"
clientAuth="false" sslProtocol="TLS" />

I am running CAS on Liferay iiself, please reply at earliest.