Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

jdbc class not found exception with tomcat in linux

Thread view: 
vamp4l - 28 Nov 2005 23:00 GMT
Hey, I'm getting the

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

exception when i try to execute database queries
ive read a bit about it, but i cant figure out how to set my tomcat up
to work properly
i have the .jar file that is supposedly needed, ive tried to put it in
a bunch of different folders with no luck
any suggestions on how to set up the classpath and where the .jar file
needs to go?
thanks
VisionSet - 28 Nov 2005 23:14 GMT
> any suggestions on how to set up the classpath and where the .jar file
> needs to go?

\tomcat\common\lib\mysql-connector-java-3.1.10-bin.jar

--
Mike W
IchBin - 28 Nov 2005 23:29 GMT
> Hey, I'm getting the
>
[quoted text clipped - 8 lines]
> needs to go?
> thanks

As far as I now it goes into

TomcatBase\common\lib

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

vamp4l - 28 Nov 2005 23:58 GMT
hmm...i dont have a common folder but i put it in the lib folder in my
WEB-INF/lib  dir
i also tried making a common directory and putting it there
i also tried setting the classpath in the .bashrc file
any idea why this isnt working? or any other suggestions?

export
CLASSPATH=/home/blah/Tomcat/common/lib/mysql-connector-java-3.0.14-production-bin.jar:.
IchBin - 29 Nov 2005 03:03 GMT
> hmm...i dont have a common folder but i put it in the lib folder in my
> WEB-INF/lib  dir
[quoted text clipped - 4 lines]
> export
> CLASSPATH=/home/blah/Tomcat/common/lib/mysql-connector-java-3.0.14-production-bin.jar:.

Under Windows Tomcat has a Tomcat5.5\common\lib' subdirectory
where you would put it. Must be different Linux. I have been been a few
years away
from Linux to remember their setup.

You can Google for it like, Tomcat and Database  or MySQL and Tomcat.  I
found one out there at
http://www.yolinux.com/TUTORIALS/LinuxTutorialTomcat.html#MYSQL

Here is another good link. They are saying the same thing I said about
where the connector goes..
http://alanning.freeshell.org/text/jpetstore/jpetstore_win32_install_walkthrough
.html#Tomcat


You may want to search MYSQL website for more info.

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.