-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configuring for JDBC #272
Comments
Hi, @afrozl, please replace all occurrences of "org.apache.commons.dbcp.BasicDataSource" in the application-context.xml file to "org.apache.tomcat.jdbc.pool.DataSource". I am assuming you are deploying atomhopper in Tomcat? We are now using Tomcat's JDBC pool. I will correct the wiki page shortly. If you are using containers other than Tomcat, you can use org.apache.commons.dbcp.BasicDataSource, you just need to add commons-dbcp-version.jar to the atomhopper app WEB-INF/lib. |
Thanks for the quick response - new issue. Now getting this: SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'atomHopperDataSource' defined in URL [file:/etc/atomhopper/application-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'timeBetweenEvitctionRunsMillis' of bean class org.apache.tomcat.jdbc.pool.DataSource]: Bean property 'timeBetweenEvitctionRunsMillis' is not writable or has an invalid setter method. Did you mean 'timeBetweenEvictionRunsMillis'? |
@afrozl, looks like there's a typo in the wiki (I fixed it already) |
Thanks a bunch. Works perfectly now. |
newbie question - I have followed the instructions as described in the setup guide ( https://github.com/rackerlabs/atom-hopper/wiki/Using-the-JDBC-Data-Adapter )
however I get an error when starting up:
Am I missing a step?
The text was updated successfully, but these errors were encountered: