Hi Kees, Yes. Since, I'm using the JNDO datasource the JDBC driver need to be in $CATALINA_HOME, becase 'common' class loader looks for the JDBC driver (it may be invoked by tomcat-dbcp.jar).
Ramesh Kees de Kooter wrote: > > Hi Ramesh, > > Did you configure a JNDI datasource in tomcat? In that case the > datasource exists "outside" your app. > > Cheers, > Kees de Kooter > http://www.boplicity.net > > > > On Mon, Feb 2, 2009 at 13:06, peterramesh <ramesh.ramas...@gmail.com> > wrote: >> >> Hi, >> >> On reading Tomcat help doc >> http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html, it >> recommends to place the MySQL JDBC driver in both places >> (CATALINA_HOME/lib >> and WEB-INF/lib folder of the app). >> >> If I haven't placed in CATALINA_HOME/lib folder, my app is failing with >> driver not found error. I'm puzzled with.. >> >> 1. Why Tomcat look for the JDBC jar to be in CATALINA_HOME/lib folder? >> 2. If I copied more than one JDBC jars (with different version) in >> CATALINA_HOME/lib folder for couple of my applications, how each of them >> looks for the respective versions of JDBC driver? >> >> Thanks, >> Ramesh >> -- >> View this message in context: >> http://www.nabble.com/Why-tomcat-6.0.18-looks-for-MySQL-JDBC-driver-to-be-placed-in-CATALINA_HOME-lib-folder--tp21788529p21788529.html >> Sent from the Tomcat - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Why-tomcat-6.0.18-looks-for-MySQL-JDBC-driver-to-be-placed-in-CATALINA_HOME-lib-folder--tp21788529p21830890.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org