aspose file tools*
The moose likes JDBC and the fly likes Class not found exception... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Class not found exception... " Watch "Class not found exception... " New topic
Author

Class not found exception...

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
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
ver
10:23:47,390 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.
loadClass(WebappClassLoader.java:1352)
10:23:47,390 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.
loadClass(WebappClassLoader.java:1198)
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
s.java:14)

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.


Ram...
Jigar Naik
Ranch Hand

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

my mysql-connector-java-3.1.13-bin.jar was not in
jboss-4.0.4.GA\server\default\lib
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class not found exception...
 
Similar Threads
java.net.ConnectException when connecting when lookup EJB
Soap & attachments: encoded or literal??
java.lang.IllegalStateException
JNDI error message
ClassNotFoundException for org.jnp.interfaces.NamingContextFactory