Here is a find showing the files that I have changed under the cas-server-webapp directory where I run the build from:
# find . -newer src -type f -print ./src/main/webapp/images/logo_IDC.jpg ./src/main/webapp/css/cas.css ./src/main/webapp/WEB-INF/classes/log4j.properties ./src/main/webapp/WEB-INF/deployerConfigContext.xml ./src/main/webapp/WEB-INF/view/jsp/default/ui/includes/bottom.jsp ./pom.xmlI have hacked in a logo into the default scheme rather than properly skinning it. Other than that, I have changed the pom.xml and deployerConfixContext.xml files to use our LDAP server for authentication and put the correct value into log4j.properties so that cas.log appears in the same place as catalina.out (thus fixing the file create errors)
Version information: # mvn --version Maven version: 2.0.9 Java version: 1.6.0_06 OS name: "linux" version: "2.6.24-19-generic" arch: "amd64" Family: "unix" Now here is the build # mvn package [INFO] Scanning for projects...[INFO] ------------------------------------------------------------------------
[INFO] Building JA-SIG CAS Web Application [INFO] task-segment: [package][INFO] ------------------------------------------------------------------------
[INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources.Downloading: http://developer.ja-sig.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom Downloading: http://repo1.maven.org/maven2/org/apache/santuario/xmlsec/1.4.0/xmlsec-1.4.0.pom Downloading: http://developer.ja-sig.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom Downloading: http://repo1.maven.org/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [war:war] [INFO] Packaging webapp[INFO] Assembling webapp[cas-server-webapp] in [/home/dj/workspace/cas-server-3.3/cas-server-webapp/target/cas-server-webapp-3.3]
[INFO] Processing war project [INFO] Webapp assembled in[1132 msecs][INFO] Building war: /home/dj/workspace/cas-server-3.3/cas-server-webapp/target/cas.war
[INFO] Preparing source:jar[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar:
/home/dj/workspace/cas-server-3.3/cas-server-webapp/target/cas-server-webapp-3.3-sources.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 seconds [INFO] Finished at: Fri Oct 10 11:17:25 BST 2008 [INFO] Final Memory: 19M/47M[INFO] ------------------------------------------------------------------------
I then deploy the created file target/cas.war onto the server using the Tomcat Web Application Manager on the server (running CentOS 5.2, Tomcat 5.5.23 and Sun Java JVM 1.6.0_06-b02). Prior to doing this I have un-deployed any old versions of CAS that were running, stopped Tomcat and truncated the log files. I then start Tomcat again and check that it is running correctly. No errors in catalina.out and nothing in cas.log.
The message displayed in the Tomcat Web Application Manager is 'OK' and the cas application appears at /cas but is not running.
Here is the contents of catalina.out from the start until the first error, I then remove the traceback information. The resulting errors are repeated too.
Using CATALINA_BASE: /usr/share/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JRE_HOME:Oct 7, 2008 5:08:23 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_06/jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Oct 7, 2008 5:08:23 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Oct 7, 2008 5:08:24 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 Oct 7, 2008 5:08:24 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2969 ms Oct 7, 2008 5:08:24 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 7, 2008 5:08:24 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 Oct 7, 2008 5:08:24 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Oct 7, 2008 5:08:26 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Oct 7, 2008 5:08:26 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Oct 7, 2008 5:08:27 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Oct 7, 2008 5:08:27 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Oct 7, 2008 5:08:27 PM org.apache.catalina.core.ApplicationContext logINFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Oct 7, 2008 5:08:27 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Oct 7, 2008 5:08:27 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Oct 7, 2008 5:08:27 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Oct 7, 2008 5:08:27 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/93 config=null Oct 7, 2008 5:08:27 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Oct 7, 2008 5:08:28 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3514 ms Oct 7, 2008 5:25:05 PM org.apache.catalina.core.ApplicationContext logINFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
Oct 7, 2008 5:25:05 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: init: Global resources are available Oct 7, 2008 5:25:05 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: list: Listing contexts for virtual host 'localhost' Oct 7, 2008 5:25:45 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive cas.war2008-10-07 17:25:52,210 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed> org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot resolve reference to bean 'casAuthenticationProvider' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casAuthenticationProvider' defined in ServletContext resource [/WEB-INF/spring-configuration/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception is java.lang.ClassNotFoundException: org.acegisecurity.userdetails.memory.InMemoryDaoImpl
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casAuthenticationProvider' defined in ServletContext resource [/WEB-INF/spring-configuration/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception is java.lang.ClassNotFoundException: org.acegisecurity.userdetails.memory.InMemoryDaoImpl
2008-10-07 17:25:52,220 FATAL [org.jasig.cas.web.init.SafeContextLoaderListener] - <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.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot resolve reference to bean 'casAuthenticationProvider' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casAuthenticationProvider' defined in ServletContext resource [/WEB-INF/spring-configuration/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception is java.lang.ClassNotFoundException: org.acegisecurity.userdetails.memory.InMemoryDaoImpl
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casAuthenticationProvider' defined in ServletContext resource [/WEB-INF/spring-configuration/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception is java.lang.ClassNotFoundException: org.acegisecurity.userdetails.memory.InMemoryDaoImpl
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception is java.lang.ClassNotFoundException:
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.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot resolve reference to bean 'casAuthenticationProvider' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casAuthenticationProvider' defined in ServletContext resource [/WEB-INF/spring-configuration/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception is java.lang.ClassNotFoundException:
SEVERE: Error filterStart Oct 7, 2008 5:25:52 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/cas] startup failed due to previous errors Oct 7, 2008 5:25:52 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'cas.log seems to have pretty much the same information in it starting with the following:
2008-10-07 17:25:52,210 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_authenticationManager': Cannot resolve reference to bean 'casAuthenticationProvider' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casAuthenticationProvider' defined in ServletContext resource [/WEB-INF/spring-configuration/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception is [/WEB-INF/spring-configuration/securityContext.xml]: Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.acegisecurity.userdetails.memory.InMemoryDaoImpl] for bean with name 'userDetailsService' defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]; nested exception is java.lang.ClassNotFoundException: --
All help gratefully received. Thanks -- Matthew Jones Interactive Data Managed Solutions Ltd ----------------------------------------------------------------------- Registered in England Company Number 3691868 Registered Office: Fitzroy House, 13-17 Epworth Street, London, EC2A 4DL Tel: +44 (0)1242 694133 | Fax: +44 (0)1242 694109 [EMAIL PROTECTED] http://www.interactivedata-ms.com/694133This message (including any files transmitted with it) may contain confidential and/or proprietary information, is the property of Interactive Data Corporation and/or its subsidiaries, and is directed only to the addressee(s). If you are not the designated recipient or have reason to believe you received this message in error, please delete this message from your system and notify the sender immediately. An unintended recipient's disclosure, copying, distribution, or use of this message or any attachments is prohibited and may be unlawful. Interactive Data (Europe) Ltd Registered No. 949387 England Registered Office: Fitzroy House 13-17 Epworth Street. London. EC2A 4DL
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
