The moose likes JDBC and Relational Databases and the fly likes servelet and jdbc eclips Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "servelet and jdbc eclips" Watch "servelet and jdbc eclips" New topic

servelet and jdbc eclips

neo wee

Joined: Oct 17, 2008
Posts: 1
try to make connection to a mysql DB through a contex listener but the connection object won't get created (com.mysql.jdbc) error occurred i believe it have something to do with mysql jdbc driver libraries. i'm using tomcat,eclips & mysql 5.1

connections & statements are working fine in normal java application i use the same class then the error is occurred i'm new to serverlet please help me with this
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Can you show us the error? HAve you added the required driver jar files to the classpath?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Paul Clapham

Joined: Oct 14, 2005
Posts: 19760

"neo wee", please check your private messages regarding an important administrative issue.
I agree. Here's the link:
subject: servelet and jdbc eclips
It's not a secret anymore!