Forum Moderators: phranque

Message Too Old, No Replies

Database Connect Pools in Tomcat

Dbcp Jndi

         

gbergeron

11:51 pm on Jun 15, 2003 (gmt 0)

10+ Year Member



After carefully downloading the following into common/lib

* Jakarta-Commons DBCP
* Jakarta-Commons Collections
* Jakarta-Commons Pool

and using j2sdk1.4.1, I figured I was ready to connect using DBCP. I had previously got my Oracle Database working by hardcoding the relevant info inside the java program so I knew the basics were working just fine.

I get the following error from my java program when it comes across this line: dataSource = (DataSource) ctx.lookup("jdbc/conversion"); //I defined jdbc/conversion in my server.xml file.

javax.naming.NamingException:Could not create resource factory, ClassNotFoundException: org.apache.commons.dbcp.BasicDataSourceFactory

When I look in the common-dbcp.jar file I notice the pathnames all look something like

commons-dbcp\classes\org\apache\common\dbcp

Could this be why I'm getting this error (i.e. the pathnames are mixed up)? Or I am out in left field on this one? Thanks.