This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Pooling w/Tomcat 5 - Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Pooling w/Tomcat 5 - Oracle" Watch "Pooling w/Tomcat 5 - Oracle" New topic

Pooling w/Tomcat 5 - Oracle

JuanCa SP

Joined: Feb 05, 2004
Posts: 10
Hi everybody,

I'm trying to configure a connection pooling in tomcat5/oracle 9i.

I have read the example in apache's web page and similar topics in this section. But it seems I can't configure it in the right way.

What I have done is the following:

1. Put the file classes12.jar in common/lib
2. Add in server.xml:

3. Add in web.xml:

4. In the code:

But everything what I got is:

What is wrong?

Thanks for your help!

JuanCa SP
sudeep philip

Joined: Nov 28, 2002
Posts: 5
A new "feature" in tomcat 5+, when a web application is deployed, a resource reference is created and the reference holds an empty URL value as well as a driver name.
You can use the Tomcat admin interface to apply the resource description to the context at -- Tomcat Server >> Host(local host) >> Context (context name) >> Resources >> Data sources.
[ July 21, 2004: Message edited by: sudeep philip ]
JuanCa SP

Joined: Feb 05, 2004
Posts: 10
I'll try your recomendation.

Thanks you!

JuanCa SP
I agree. Here's the link:
subject: Pooling w/Tomcat 5 - Oracle
It's not a secret anymore!