Nope...
I didn't quite get it anyway.
I get this exception when using ComboPooledDataSource. Seems it is not compatible in som way, I guess a Setter is missing.
Code:
15:08:29,625 ERROR DispatcherServlet:208 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in resource
[/WEB-INF/applicationContext-jdbc.xml] of ServletContext: Error setting property values; nested exception is org.springf
ramework.beans.NotWritablePropertyException: Invalid property 'driverClassName' of bean class [com.mchange.v2.c3p0.Combo
PooledDataSource]: Property 'driverClassName' is not writable
org.springframework.beans.NotWritablePropertyException: Invalid property 'driverClassName' of bean class [com.mchange.v2
.c3p0.ComboPooledDataSource]: Property 'driverClassName' is not writable
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:666)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:588)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:720)
I want to use the JDBC API from Spring. This is an excerpt from file
applicationContext-jdbc.xml:
Code:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClassName"><value>${jdbc.driverClassName}</value></property>
<property name="url"><value>${jdbc.url}</value></property>
<property name="username"><value>${jdbc.username}</value></property>
<property name="password"><value>${jdbc.password}</value></property>
</bean>
whick I suspect cause this exception. What am I missing here?