|
|
|
|
Re: Specify crossContext=true for tomcat? [message #162432 is a reply to message #162424] |
Tue, 28 February 2006 13:47  |
Eclipse User |
|
|
|
Perfect. Thanks very much Larry!
Larry Isaacs wrote:
> The child elements of the <Context> in META-INF/context.xml will
> replace any found in the <Context> present in server.xml found under
> the Servers project. Attributes of <Context> from context.xml will be
> copied to the the <Context> that comes from server.xml, excluding
> "path" and "docBase". I think that's basically how its handled,
> though I might be forgetting some minor detail.
>
> Larry
>
> Barry Kaplan wrote:
>> So even though WTP will dynamically create a server.xml when tomcat
>> starts with a <Context> element, the META-INF/context.xml will get
>> merged in with that, or replaced?
>>
>> -barry
>>
>> Larry Isaacs wrote:
>>
>>> Barry,
>>>
>>> You can add it to the <Context> element in the server.xml of the
>>> Tomcat configuration under the Servers project of your workspace.
>>> Alternatively, you can include it in the <Context> element in a
>>> META-INF/context.xml in the WebContent folder of your project. The
>>> later approach has the advantage of not getting lost if you remove
>>> and re-add your project to a Tomcat server.
>>>
>>> Cheers,
>>> Larry
>>>
>>> Barry Kaplan wrote:
>>>
>>>> Is this possible using WTP?
>>>>
>>>> -barry
|
|
|
Powered by
FUDForum. Page generated in 0.02833 seconds