tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Monsorno <>
Subject Re: JNDI-lookup fails with GlobalResources
Date Fri, 14 Nov 2003 15:13:11 GMT
Christopher Schultz <> writes:

> Martin,
>> I recently installed tomcat 4.1.29 and deployed a web application on
>> it via a war-file.  The provided server.xml contains the following
>> lines:
>> Have I forgotten to do some additional initialization or configuration
>> or something else?  Any ideas?
> I think you have. When you have a global resource, it doesn't actually mean that
> it's available for all contexts. It just means that it's available /to be
> available/ for all contexts :)
> In order to actually give it to a context, you need a resource link in
> server.xml:
> 	    <ResourceLink name="jdbc/myDataSource"
> 			global="jdbc/myDataSourceRef"
>                          type="javax.sql.DataSource" />

So, that means, that I have to add a Context-entry to my server.xml
for my web app.  I hoped I could do without this to make automatic
deployment possible, but it seems that this 2 things won't go
together, correct?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message