I originally did it through the admin panel, but I made sure that I drilled down to 
the context of my webapp before I defined the data source.

The resource tags in my server.xml are within my webapps context.


thanks!

~ Troy Campano ~

-----Original Message-----
From: Dan Tran [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 07, 2002 11:56 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1, DBCP and Oracle


Did you configure Oracle DataSource thru the web interface of Admin app in Tomcat 4.1? 
If you did, you will need to link the Global datasource to your webapp in server.xml. 
Please look up ResourceLink tag

-D
----- Original Message -----
From: "Campano, Troy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 07, 2002 7:43 PM
Subject: RE: Tomcat 4.1, DBCP and Oracle


Oh sorry, i meant i have the problem with 4.1.16-beta as well.

thank you!

-----Original Message-----
From: Campano, Troy
To: Jacob Kjome; [EMAIL PROTECTED]
Sent: 12/7/02 10:38 PM
Subject: RE: Tomcat 4.1, DBCP and Oracle


Hi,
I've done this.
I renamed zip to jar. put it in /common/lib.
When I bounce tomcat...it doesn't automatically recognize the file in its classpath, 
so I hard code it in /bin/setclasspath.sh, then it sees it.

I've set this up before. I have no problems setting this up with tomcat 4.0.X. It 
works like a charm. I've had the problem with 4.1.12 and not 4.1.16-beta.

I was working with someone on the Apache Bug database (is that the tomcat-dev mailing 
list?). We didn't get anywhere.

So that's why I was wondering if there has been anyone who has successfully able to 
hook up tomcat 4.1.12, DBCP and Oracle. Were you able to do it?

thank you for your help...it's greatly appreciated.

~ Troy Campano ~

-----Original Message-----
From: Jacob Kjome
To: Tomcat Users List
Sent: 12/7/02 2:57 PM
Subject: RE: Tomcat 4.1, DBCP and Oracle


1.  Rename classes12.zip to classes12.jar.  You don't have to repackage the classes, 
simply rename the file. 2.  Put classes12.jar in CATALINA_HOME/common/lib.  That is 
the *only* place it can go because both the server and the application require access 
to it.  Libraries under the common (jars in /lib or /endorsed and class files in 
/classes) directory are seen by both the appserver and webapps unlike stuff under 
/shared or stuff under /server.

Then follow the docs for configuration: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html

Jake

At 12:45 PM 12/7/2002 -0500, you wrote:
>Oh yeah...the error I get is:
>java.sql.SQLException: Cannot load JDBC driver class 'null'
>
>
>~ t r o y ~
>
>
> >  -----Original Message-----
> > From:         Campano, Troy
> > Sent: Saturday, December 07, 2002 12:44 PM
> > To:   '[EMAIL PROTECTED]'
> > Subject:      Tomcat 4.1, DBCP and Oracle
> >
> > Has anyone been able to get Tomcat 4.1.12 or Tomcat 4.1.16 working
with
> DBCP and Oracle (classes12.zip)?
> > I've tried a billion combinations of configurations and nothing
works.
> >
> > I've see other people on the web have also had this problem. I've 
> > tried for months to figure this out and I've opened bug cases,
but
> nothing seems to work.
> >
> > Anyone able to do it?
> >
> > thank you!
> >
> > ~ Troy Campano ~

--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to