PDA

View Full Version : Tomcat5 + mysql5 at FC5


martinnitram
27th June 2006, 12:34 AM
Dear all,
used yum to install tomcat5 at FC5 (tomcat5 + tomcat5-webapp) and mysql5, work fine. But i wanna to ask how to add mysql connection/J to tomcat? i tried to put connection/J jar to path /var/share/tomcat5/lib, /var/share/tomcat5/lib-ext (can't sure, but should based on $CAT HOME variable) but no help.
I would like to ask that where should the connection/J jar file placed? thx

ggenglish
29th June 2006, 04:48 AM
hi there, not sure if this will help but i use the build from apache itself....there is no $TOMCAT_HOME/lib directory....there is to worry about:
$TOMCAT_HOME/common/lib and $TOMCAT_HOME/shared/lib .... shared/lib is meant to be for the user to have shared jars and any jar in there will be picked up by the web apps. mysql drivers can be put here....however what i found was that if you wanted to use connection pooling configured by tomcat itself in the server.xml file... you need to have the driver jar in the common/lib as this is where jars are but that are needed by the TOMCAT program itself....look for the directory that has the servlet-api.jar and you can't go wrong. :-)

hope that helps somewhat.