Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: [TC5] Problems with context.xml

alu, artifex

2004-06-09



mhhhm... actually i don't think its possible to define a server-wide
resource inside the context configuration.
the <globalnamingresources> tag is nested within the <server> tag, the
context.xml file is based on the
<context> element which doesn't allow the <globalnamingresources>
element within. (actually since there
is no dtd for the server.xml it will allow but almost certain ignore the
tag).
i'm afraid you have to bind the resource manually in your java code.

mfg
art

Mark Woon wrote:

> alu, artifex wrote:
>
>> another try: =)
>>
>> how does the xml structure look like in your context.xml file? i think
>> you have to omit the
>> <globalnamingresources> tag if you haven't already done so.
>>
>
>
> Sorry, but no. I specifically want to use a server-wide JNDI resource
> instead of redefining the same resource within my context.
>
> Next? ;)
>
>
> -Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.