And yes, I can confirm this with orchestra's example by introducing the below
config 

        <bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
                <property name="location" value="/WEB-INF/jdbc.properties"/>
        </bean>

        <bean id="dataSource" destroy-method="close"
class="org.apache.commons.dbcp.BasicDataSource">
                <property name="driverClassName" 
value="${jdbc.driverClassName}"/>
                <property name="url" value="${jdbc.url}"/>
                <property name="username" value="${jdbc.username}"/>
                <property name="password" value="${jdbc.password}"/>
        </bean>

The error is 

Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC
driver class '${jdbc.driverClassName}'


Dan Tran wrote:
> 
> Here is my configuration, any thoughts? or can some one confirm this?
> 
> <!-- Configurer that replaces ${...} placeholders with values from a
> properties file -->
> <!-- (in this case, JDBC-related settings for the dataSource definition
> below) -->
> <!-- THIS STOPS WORKING SINCE INTRODUCTION OF ORCHESTRA BEANS -->
>   
> <bean id="propertyConfigurer"
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
>   <property name="location" value="/WEB-INF/jdbc-hsqldb.properties"/>
> </bean>
> 
> <!-- EL expression is not translated -->
> <bean id="dataSource"
> class="org.springframework.jdbc.datasource.DriverManagerDataSource">
>   <property name="driverClassName" value="${jdbc.driverClassName}"/>
>   <property name="url" value="${jdbc.url}"/>
>   <property name="username" value="${jdbc.username}"/>
>   <property name="password" value="${jdbc.password}"/>
> </bean>
> 
> Thanks
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-orchestra--PropertyPlaceholderConfigurer-STOPS-working-after-the-introduction-of-orchestra-into-my-configuration-tf4126979.html#a11736575
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to