jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes database connection issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "database connection issue" Watch "database connection issue" New topic

database connection issue

Jeff Sunder
Ranch Hand

Joined: Jun 26, 2001
Posts: 47
I am trying to connect to a database through a servlet. I am getting the following error message:
Error: 500
Location: /servlet/ProjectRequestProcessingInternal Servlet Error:java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcConnection
at ConnectionPool.returnConnection(ConnectionPool.java:180)
at ProjectRequestProcessing.doPost(ProjectRequestProcessing.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
I am not sure what the problem is, primarily because I don't know where the error is occuring. I have a servlet called ProjectRequestProcessing and a helper class called ConnectionPool. But I am not quite sure what the where the problem is occuring. Can any shed some light on this?
Thanks in advance
[This message has been edited by Jeff Sunder (edited July 09, 2001).]
I agree. Here's the link: http://aspose.com/file-tools
subject: database connection issue
It's not a secret anymore!