This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class not found exception...

 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Rama Krishna Ghanta
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you set up the My Sql driver in your classpath?That is what is causing you this error.
 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic