learn java
The moose likes JDBC and Relational Databases and the fly likes Class not found exception... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Class not found exception... " Watch "Class not found exception... " New topic

Class not found exception...

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 760
I'm getting class not found exception while storing data in database..

10:23:47,390 INFO [STDOUT] Hi
10:23:47,390 ERROR [STDERR] java.lang.ClassNotFoundException: com.mysql.jdbc.Dri
10:23:47,390 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.
10:23:47,390 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.
10:23:47,406 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(Unkno
wn Source)
10:23:47,406 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
10:23:47,406 ERROR [STDERR] at java.lang.Class.forName(Unknown Source)
10:23:47,406 ERROR [STDERR] at com.tg.contact.Contacts.save_contacts(Contact

where should i put that sql..... war file...

Jigar Naik

Rama Krishna Ghanta
Ranch Hand

Joined: Nov 20, 2006
Posts: 59
Did you set up the My Sql driver in your classpath?That is what is causing you this error.

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 760
ya problem solved

my mysql-connector-java-3.1.13-bin.jar was not in
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: Class not found exception...