Skip to content
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

Closed
afrozl opened this issue May 4, 2014 · 4 comments
Closed

configuring for JDBC #272

afrozl opened this issue May 4, 2014 · 4 comments

Comments

@afrozl
Copy link

afrozl commented May 4, 2014

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:

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'atomHopperDataSource' defined in URL [file:/etc/atomhopper/application-context.xml];

Am I missing a step?

@shintasmith
Copy link
Contributor

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.

@afrozl
Copy link
Author

afrozl commented May 5, 2014

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

@shintasmith
Copy link
Contributor

@afrozl, looks like there's a typo in the wiki (I fixed it already)
timeBetweenEvitctionRunsMillis instead of
timeBetweenEvictionRunsMillis

@afrozl
Copy link
Author

afrozl commented May 5, 2014

Thanks a bunch. Works perfectly now.

@afrozl afrozl closed this as completed May 5, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants