CAS version: 3.3.5

I'm trying to set the value of the host.name parameter, which is normally in WEB-INF/cas.properties, from an external file. I created a file /etc/cas/dev.properties which contains:

host.name=login1

Then I added the following to the bottom of WEB-INF/deployerConfigContext.xml:

<!-- pull in some properties from an external file -->
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
                <list>
                        <value>file:/etc/cas/dev.properties</value>
                </list>
        </property>
</bean>

However, when I deploy the WAR, I get the following error:

2011-06-24 16:38:03,830 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.BeanDefinitionStoreException: Invalid bean definition with name 'ticketGrantingTicketUniqueIdGenerator' defined in ServletContext resource [/WEB-INF/spring-configuration/uniqueIdGenerators.xml]: Could not resolve placeholder 'host.name' at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:268) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:553) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:527) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:362) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)

...


I have searched for a while, but I can't figure out why this doesn't work. Any suggestions?

Thanks,
        Andy

--
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

Reply via email to