Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Specify crossContext=true for tomcat?
Specify crossContext=true for tomcat? [message #162220] Mon, 27 February 2006 16:46 Go to next message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
Is this possible using WTP?

-barry
Re: Specify crossContext=true for tomcat? [message #162303 is a reply to message #162220] Mon, 27 February 2006 20:49 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
Re: Specify crossContext=true for tomcat? [message #162403 is a reply to message #162303] Tue, 28 February 2006 15:46 Go to previous messageGo to next message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
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
Re: Specify crossContext=true for tomcat? [message #162424 is a reply to message #162403] Tue, 28 February 2006 16:21 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
Re: Specify crossContext=true for tomcat? [message #162432 is a reply to message #162424] Tue, 28 February 2006 18:47 Go to previous message
Barry Kaplan is currently offline Barry KaplanFriend
Messages: 230
Registered: July 2009
Senior Member
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
Previous Topic:init() method for a deployed webservice?
Next Topic:Contributing tabs and sections to the WSDL Editor
Goto Forum:
  


Current Time: Sat Apr 27 00:15:16 GMT 2024

Powered by FUDForum. Page generated in 0.02253 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top