http://marc.info/?l=tomcat-user&m=126772163323329&w=2 This article claims you can set a startup option... but I haven't tried it. mas
Dhiren Bhatia wrote: > Hi, > > I'm trying to use the commons DBCP package with Tomcat 6.x. I know that the > tomcat_dbcp.jar has the commons files renamed, however I would prefer to use > the commons jar files so I can use the class > org.apache.commons.dbcp.BasicDataSource in my code. > > To do this, I deleted the tomcat_dbcp.jar file from CATALINA_HOME/lib and > replaced it with the commons jar file. I assumed that the class loader would > pick it up like it did in the earlier version of tomcat but that doesn't > seem to happen. I still get an ClassCastException since tomcat tries to cast > the org.apache.commons.dbcp.BasicDataSource to > org.apache.tomcat.dbcp.dbcp.BasicDataSource. > > Is there any way I can force Tomcat 6.x to load my commons dbcp jar instead > of the tomcat_dbcp.jar which comes with the distro? > > Thanks! > Dhiren > -- Mark Shifman MD. Ph.D. Yale Center for Medical Informatics Phone (203)737-5219 mark.shif...@yale.edu --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org