Hi,
on the catalina.out
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#3c37f4' defined in
ServletContext resource [/WEB-INF/deployerConfigContext.xml]: Cannot resolve
reference to bean 'contextSource' while setting bean property 'contextSource';
nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
class [org.jasig.cas.adpators.ldap.util.AuthenticatedLdapContextSource] for
bean with name 'contextSource' defined in ServletContext resource
[/WEB-INF/deployerConfigContext.xml]; nested exception is
java.lang.ClassNotFoundException:
org.jasig.cas.adpators.ldap.util.AuthenticatedLdapContextSource
it seems that ldap is not available.
here the log of mvn, they probably test errors.
[r...@cas trunk]# mvn package install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] JA-SIG Central Authentication Service
[INFO] JA-SIG CAS Core
[INFO] JA-SIG CAS Generic Support
[INFO] JA-SIG CAS JDBC Support
[INFO] JA-SIG CAS LDAP Support
[INFO] JA-SIG CAS Legacy Support
[INFO] JA-SIG CAS OpenId Support
[INFO] JA-SIG CAS RADIUS Support
[INFO] JA-SIG CAS SPNEGO/NTLM Support
[INFO] JA-SIG CAS Trusted User Support
[INFO] JA-SIG CAS X.509 Client Certificate Support
[INFO] JA-SIG CAS JBoss Cache Integration
[INFO] JA-SIG CAS BerkeleyDB Integration
[INFO] JA-SIG CAS Memcached Integration
[INFO] JA-SIG CAS Restlet Integration
[INFO] JA-SIG CAS Web Application
[INFO] ------------------------------------------------------------------------
[INFO] Building JA-SIG Central Authentication Service
[INFO] task-segment: [package, install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-versions}]
[INFO] [site:attach-descriptor]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [enforcer:enforce {execution: enforce-versions}]
[INFO] [source:jar {execution: attach-sources}]
[INFO] [enforcer:enforce {execution: enforce-versions}]
[INFO] [site:attach-descriptor]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [enforcer:enforce {execution: enforce-versions}]
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing /usr/local/src/cas/cas332/trunk/target/pom-transformed.xml to
/root/.m2/repository/org/jasig/cas/cas-server/3.3.3-SNAPSHOT/cas-server-3.3.3-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building JA-SIG CAS Core
[INFO] task-segment: [package, install]
[INFO] ------------------------------------------------------------------------
Downloading:
http://developer.ja-sig.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in
repository jasig-repository (http://developer.ja-sig.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom
[INFO] Unable to find resource 'org.apache.santuario:xmlsec:pom:1.4.0' in
repository central (http://repo1.maven.org/maven2)
Downloading:
http://developer.ja-sig.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in repository
jasig-repository (http://developer.ja-sig.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] Unable to find resource 'org.opensaml:opensaml:pom:1.1b' in repository
central (http://repo1.maven.org/maven2)
[INFO] [enforcer:enforce {execution: enforce-versions}]
[INFO] [resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 7 resources
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/usr/local/src/cas/cas332/trunk/cas-server-core/target/surefire-reports
Failed tests:
testResponse(org.jasig.cas.web.view.Saml10SuccessResponseViewTests)
testResponseWithNoAttributes(org.jasig.cas.web.view.Saml10SuccessResponseViewTests)
testFailuresThenSuccess(org.jasig.cas.web.support.ThrottledSubmissionByIpAddressHandlerInterceptorAdapterTests)
Tests run: 355, Failures: 3, Errors: 0, Skipped: 0
SafeContextLoaderListener:
The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would not
have initialized.
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource
[/WEB-INF/applicationContext.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/applicationContext.xml]
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:62)
at
org.jasig.cas.web.init.SafeContextLoaderListenerTests.testContextInitialized(SafeContextLoaderListenerTests.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.io.FileNotFoundException: Could not open ServletContext
resource [/WEB-INF/applicationContext.xml]
at
org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:117)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
... 39 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to
/usr/local/src/cas/cas332/trunk/cas-server-core/target/surefire-reports for the
individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 45 seconds
[INFO] Finished at: Mon May 25 12:45:54 CEST 2009
[INFO] Final Memory: 21M/39M
[INFO] ------------------------------------------------------------------------
bye enrico
----- Original Message -----
From: "Giovanni Cocco" <[email protected]>
To: [email protected]
Sent: Monday, May 25, 2009 11:18:28 AM GMT +01:00 Amsterdam / Berlin / Bern /
Rome / Stockholm / Vienna
Subject: Re: [cas-user] Update 3.1 to 3.3.2 and ldap support
Hi
[...]
>
> 7. start with serveral errors.
>
Can you post the errors?
[....]
GC
______________________
http://www.japsportal.org/
--
You are currently subscribed to [email protected] as: [email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user