This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Database Connection Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Database Connection Exception" Watch "Database Connection Exception" New topic
Author

Database Connection Exception

Md Quayum Sagri
Greenhorn

Joined: Aug 05, 2006
Posts: 2
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)

Has any one cleared it
please inform me.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

Welcome to JavaRanch!

It looks like the MySql jar isn't in your classpath. I'm going to move this to our Tomcat forum where people can help you with more details about how to set the classpath.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database Connection Exception
 
Similar Threads
counting algorithm
void return type in JSP expression
why JMX can not stop
WA #1.....word association
Java ranch rules roundup