Hi.

I have recently begun using Tomcat and I am trying to gain a better
understanding of its configuration.  Currently, I am most confused with the
relationship between Resources, GlobalNamingResources, and resource-refs.

I have configured a JDBC datasource Resource within a context in the server.xml
and am able to retrieve and use the datasource without any problems.  However,
when I put the same Resource within the GlobalNamingResources section, I get the
apparently common "Cannot load JDBC driver class 'null'.  Now, I understand that
using a ResourceLink within the context solves this, but is this how it is
supposed to work or is it merely a workaround (albeit a good one)?  I just want
to be clear because I found this trick in the list archive and not in the
official Tomcat documentation (though I may have missed it).

Finally, I have yet to see a case in which the resource-ref within the
webapp.xml is necessary.  Can anyone explain to me what this is supposed to do?
 I thought that initially, it was necessary only if you had put your Resource
within the GlobalNamingResources but this does not appear to be true.

Any help would be appreciated.

Thanks.

-- Justin

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

Reply via email to