473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

problem while installing mysql/connector j dirver

i want to access mysql database server from jsp program

for this i downloaded mysql-connector-java-3.1.14.zip

mysql-connector-java-3.1.14 folder contains mysql-connector-java-3.1.14-bin.jar
file.

then the mysql-connector-java-3.1.14-bin.jar is placed in classpath

after that,i started tomcat server and executed the jsp program

but i am gettting the following error
rootcause: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

if any one know how to access mysql database server using
mysql-connector-java-3.1.14 driver,please explain me....
Jul 25 '08 #1
6 2823
Atli
5,058 Expert 4TB
Hi.

I've moved this over the Java forum, seeing how this is more of a Java problem.
Jul 25 '08 #2
sukatoa
539 512MB
Actually(for me), the jarred mysql essential was designed for ready-to-use stand-alone apps, but you can change the settings inside the manifest file....

Before doing this, please have a back-up copy of the mysql library(jar file)

Remove the INDEX.LIST

in the MANIFEST.MF
Change the Name: common into Name: com/mysql/jdbc/Driver.class

Add the following below the Name:

Java-Bean: true

Please put a new line after the last visible character on MANIFEST.MF
a must newline... ( I don't know why, maybe because their parser needs it)

and save it again, i prefer to use WinRAR for this.....

and put the modified jar file into WEB_INF


OR

extract the jar file, copy and save the com folder to WEB_INF/classes directory.

PLEASE don't forget to RESTART the tomcat server after doing this....

Hope that helps
Jul 27 '08 #3
JosAH
11,448 Expert 8TB
Actually(for me), the jarred mysql essential was designed for ready-to-use stand-alone apps, but you can change the settings inside the manifest file....

[ and there he goes: ripping out valuable organs from the manifest, amputating
essential information, destroying the precious jar; blood is all over the place ... ]

Hope that helps
No it does not; stay away from that .jar file; it is correct as it is. Please first
read that link I supplied on the classpath before you start operating on that
poor .jar file.

kind regards,

Jos ;-)
Jul 27 '08 #4
sukatoa
539 512MB
No it does not; stay away from that .jar file; it is correct as it is. Please first
read that link I supplied on the classpath before you start operating on that
poor .jar file.

kind regards,

Jos ;-)
My reply happens before i realized...... If i can only remove my 1st reply here, i will....
i feel guilt with what ive done here.... :(

But that is the only way i know before i got the real/proper and exact answer

regards,
sukatoa :)
Jul 27 '08 #5
JosAH
11,448 Expert 8TB
My reply happens before i realized...... If i can only remove my 1st reply here, i will....
i feel guilt with what ive done here.... :(

But that is the only way i know before i got the real/proper and exact answer

regards,
sukatoa :)
Ok, because you're so sorry I'll cancel the defenestration festivities ;-)

kind regards,

Jos
Jul 27 '08 #6
after placing the mysql-connector-java-3.1.14-bin.jar file in
tomcat/webapps/root/web-inf/classes

my problem is solved i.e.,the program written in jsp is executed

thanks
Jul 28 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Fatt Shin | last post by:
Hi, I'm running MySQL 4.0.13, connecting from PowerBuilder 9 using ODCB Connector 3.51. I'm facing a problem where whenever I issue a SELECT COUNT(*) statement from PowerBuilder, I always get SQL...
0
by: bunnytail | last post by:
Hi All, I am making a Java Applet connects to mysql database, it works well in application mode. When I run it in applet mode, obviously the client running the applet should have the mysql...
2
by: wink martindale | last post by:
Hello all, I am building a vb.net app, using mysql and corelabs connector. I am having a bit of difficulty with a dbnull error. Here is some sample code: Do While myReader3.Read()...
3
by: JJ | last post by:
I am a newbie to mySQL. I am developing an ASP .net Web site with mySQL as the database (of products), using vb .net 2003. Can anyone point me in the direction of a good book (or in fact ANY book)...
3
by: nark | last post by:
I just downloaded ODBC drivers from the mySQL web site but whenever I try to create a DSN I get a system 1157 error The driver does show up ok in the windows control panel I cant find any...
5
by: =?Utf-8?B?RGVubmlz?= | last post by:
I have installed MySql and am trying to use it in VB.Net 2003 using the MyOleDb driver. However, from all I can find, MyOleDb only works on VB.Net 2005. Does anyone know if this is correct or is...
10
by: sssk28 | last post by:
i have installed fedora core 6 and i am getting following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this...
5
by: Ananthu | last post by:
Hi I have done all the codings part for connecting mysql server with java application but when i try to compile,the compilation is successful and during execution i get the following message, ...
1
by: sethupnr | last post by:
when i'm using a simple JSP-mysql code it shows some HTTP status 500 error.But simple JSP program without databse is running , Please help how to solve this problem. I'm new to JSP. my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.