That is correct. ResourceLink is for linking in Global resources (DataSources, Environment Entries, etc) that are defined in the Server.xml file.
-----Original Message----- From: Mark Slater [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 1:40 PM To: Tomcat Users List Subject: Re: PostgreSQL access via JNDI My mis-capitalization of DataSource was the main problem. Also, I was trying to use Resource and ResourceLink in META-INF/context.xml; ResourceLink is apparently not needed if the Resource is local to the webapp. Thank you both for your help! Mark On Apr 5, 2006, at 5:11 AM, Hadraba Petr wrote: > Hi, > > I'm successfuly using PostgreSQL 8.1.3 with Tomcat 5.5.15 with JDBC > drivers 405 (build)... > > I have the <Resource ... /> definition in the META-INF/context.xml and > in the WEB-INF/web.xml I have the <resource-ref/> element. The > <resource-env-ref/> I'm using for the ActiveMQ client connection. > > Also the JDBC drivers are placed in the common/lib directory. > > If you search the list, you will find my previous posts containing all > the configuration files. > > Have a lot of fun! > > PETR > > > On 4/5/06, Amila Suriarachchi <[EMAIL PROTECTED]> wrote: >> On 4/5/06, Mark Slater <[EMAIL PROTECTED]> wrote: >>>> >>>> I've been trying to get PostgreSQL set up to be accessed through >>>> JNDI >>>> in Tomcat 5.5.x. I found the docs page describing it, "jndi- >>>> datasource-examples-howto.html", and followed the example there, >>>> but >>>> it still doesn't work. I'm trying to provide access to >>>> PostgreSQL for >>>> use by both JDO and JCR in my web-apps. >>>> >>>> Here's the Resource definition I'm using: >>>> >>>> <Resource name="jdbc/whisper_db" >>>> auth="Container" >>>> type="javax.sql.Datasource " >>> >>> >> S should be capital as well DataSource >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]