LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-24-2011, 10:21 PM   #1
Neruocomp
Member
 
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
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

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

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

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


Reply


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 10:19 PM.

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