Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-24-2011, 10:21 PM   #1
Registered: Oct 2004
Distribution: Slackware, CentOS
Posts: 135

Rep: Reputation: 15
CentOS 5:Tomcat and MySQL JDBC driver

I should be simple, but its driving me crazy.

I setup sun java jdk 1.6.0 update 27(the latest before version 7), installed tomcat via yum, and downloaded the latest version of the mysql jdbc driver and placed the jar file in /usr/share/tomcat5/common/lib. Everything I've read says this should work, yet the user's site thats using this isn't working and reports that it cannot find the driver.

javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found

They are using JSTL and checking the code, looks good. I made a simple one that prints out the classpath, it shows the mysql jar.

So just for kicks I try out tomcat+jdk+mysql jdbc driver on my windows computer. Again the same problem. Any ideas? I've tried putting the mysql jar in different locations, the same result.
Old 09-25-2011, 05:18 PM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,461

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472

I think that the correct location is /var/lib/tomcat5/common/lib

Old 09-26-2011, 03:29 PM   #3
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 691

Rep: Reputation: 71
Maybe package unixodbc you need!?!?! Im sure you need that


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
com.mysql.jdbc.Driver not found Kakarot_Rathish Programming 2 03-11-2010 12:47 PM
JSP and MySQL - unable to load JDBC driver jun_tuko Programming 2 09-05-2006 11:02 AM
JDBC and MySQL Driver White R4bbit Debian 2 08-13-2004 04:55 PM
JDBC mysql url parameter for tomcat's server.xml gschrade Linux - Software 1 03-01-2004 05:07 PM
JDBC mysql url parameter for tomcat's server.xml gschrade Linux - Software 4 02-29-2004 12:23 PM

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration