The default external location for cas.properties in this overlay is set to /etc/cas/cas.properties. So the easiest “fix” would be to take this file: https://github.com/UniconLabs/simple-cas4-overlay-template/blob/master/etc/cas.properties <https://github.com/UniconLabs/simple-cas4-overlay-template/blob/master/etc/cas.properties> and put it to /etc/cas (and of course create this directory as it does not exist by default).
Dmitriy. > On Feb 25, 2015, at 10:30 AM, chandrashekar singh > <[email protected]> wrote: > > Dear All, > > I am attempting to test CAS with an ldap server. > > We am currently testing the war overlay demo project available from this > website on Ubuntu 14.04 > > https://github.com/UniconLabs/simple-cas4-overlay-template > <https://github.com/UniconLabs/simple-cas4-overlay-template> > > Running mvn clean package generates the target without error. However when > attempting to deploy the resulting cas.war in tomcat we have the following in > the catlina.out log file. > > Please let us know if there are any binary ldap capable cas war that we can > try. Our aim is just to test cas on ldap as a proof of concept. > > > INFO: Deploying web application archive > /home/ubuntu/ldap/cas/tomcat/webapps/cas.war > log4j:WARN No appenders could be found for logger > (org.springframework.web.context.ContextLoader). > log4j:WARN Please initialize the log4j system properly. > 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.BeanInitializationException: Could not load > properties; nested exception is java.io.FileNotFoundException: > /etc/cas/cas.properties (No such file or directory) > at > org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:147) > at > org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681) > at > org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:656) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446) > at > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) > at > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) > at > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) > at > org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody0(SafeContextLoaderListener.java:75) > at > org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_aroundBody1$advice(SafeContextLoaderListener.java:57) > at > org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:1) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081) > at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.io.FileNotFoundException: /etc/cas/cas.properties (No such > file or directory) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.<init>(FileInputStream.java:146) > at java.io.FileInputStream.<init>(FileInputStream.java:101) > at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) > at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) > at > org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:125) > at > org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181) > at > org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161) > at > org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:138) > ... 22 more > Feb 25, 2015 11:17:13 AM org.apache.catalina.core.StandardContext > startInternal > SEVERE: Error filterStart > > > Thanks, > Chandrashekar Singh > > -- > 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
