This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassCastException with Connection Pooling

 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ClassCastException with Connection Pooling
============================

This one may belong in Beginner's Java , however ...
I'm following Gregg Lagnese "How to Setup Global Mapping for Oracle JDBC Connection Pooling with Tomcat")
http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat1p.html

Thank you for any help.

Environment : Apache-Tomcat 6.0.18 , Oracle XE 10.2.0

The JSP :

The JSP output (neatly arranged) :

The program :







 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I observed the following.
* Why do you get a connection pool in JSP?!
* Lines 25 & 28 : Why do you get the resource twice?
* If an exception is thrown on-or-before line 30, NullPointerException will be thrown, when the finally block executes !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic