• Post Reply Bookmark Topic Watch Topic
  • New Topic

database connection issue  RSS feed

Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!