File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Customer Requirements for Developers this week in the Jobs Discussion 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.


subject: HELP! DBCP configuraiton for Tomcat 5
It's not a secret anymore!