tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Monsorno <li...@exolution.de>
Subject Re: JNDI-lookup fails with GlobalResources
Date Fri, 14 Nov 2003 15:13:11 GMT
Christopher Schultz <christopher.d.schultz@comcast.net> 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?


-- 
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message