wood burning stoves 2.0*
The moose likes Tomcat and the fly likes HELP!  DBCP configuraiton for Tomcat 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "HELP!  DBCP configuraiton for Tomcat 5" Watch "HELP!  DBCP configuraiton for Tomcat 5" New topic

HELP! DBCP configuraiton for Tomcat 5

Ranch Hand

Joined: Mar 11, 2003
Posts: 33

I followed the DBCP configuration instruction on Tomcat documentation, and got the DataSource via JNDI; however, when I use the dataSource to getConnection, it throws a NullPointerException from DBCP code:

Here's my configuration:

in server.xml:

in web.xml:

Can anyone help me with this configuration issue? Thanks a lot!!!
Ari Schenck

Joined: Nov 12, 2004
Posts: 1
Have you resolved this issue? I am having the same problem here... and am not finding much on the topic. What is your version of tomcat, oracle, et cetera? Perhaps we can find something in common.


Consider Paul's rocket mass heater.
subject: HELP! DBCP configuraiton for Tomcat 5
Similar Threads
Exception while connectiing DB through Tomcat
Please Help! I Do Not See the Problem. Tomcat Connection Configuration Problem!
Have Been Struggling for More Than a Week. Tomcat Connection Pool Configuration Prob
Accessing DBCP in RequestProcessor class
Connection Pool problem in tomcat 5