This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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.


It is sorta covered in the JavaRanch Style Guide.
subject: HELP! DBCP configuraiton for Tomcat 5