You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by MC Moisei <mc...@hotmail.com> on 2006/08/21 05:45:28 UTC

Context and web.xml

Hi,

I'm using tomcat for dev. My question is for a dev environment. I have 
context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there a 
way to specify what's the web.xml tomcat should use ? I use tomcat for dev 
but I target Weblogic for production and such feature would be quite  
useful.

Thanks in advance,
MC



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Context and web.xml

Posted by MC Moisei <mc...@hotmail.com>.
I'm looking to be able to tell context where is the web.xml.

I have two web.xmls one for tomcat and one for weblogic.

web_tc.xml
web_wls.xml

I want to tell tomcat to look into web_tc.xml




>From: "Martin Gainty" <mg...@hotmail.com>
>Reply-To: "Martin Gainty" <mg...@hotmail.com>
>To: "Tomcat Users List" <us...@tomcat.apache.org>
>Subject: Re: Context and web.xml
>Date: Mon, 21 Aug 2006 16:29:04 -0400
>
>so if you to start off in context.xml with a path specification
><Context path="/urlPath ...>
>
>later on  in web.xml you have defined the servlet-mapping as
>     <servlet-mapping>
>         <servlet-name>urlPath</servlet-name>
>         <url-pattern>/servlet/urlPath</url-pattern>
>     </servlet-mapping>
>
>you would access the servlet with
>http://MachineName:Port/WebApp/servlet/UrlPath
>
>HTH,
>M-
>*********************************************************************
>This email message and any files transmitted with it contain confidential
>information intended only for the person(s) to whom this email message is
>addressed.  If you have received this email message in error, please notify
>the sender immediately by telephone or email and destroy the original
>message without making a copy.  Thank you.
>
>
>
>----- Original Message -----
>From: "MC Moisei" <mc...@hotmail.com>
>To: <us...@tomcat.apache.org>
>Sent: Monday, August 21, 2006 4:03 PM
>Subject: Re: Context and web.xml
>
>
> > Any tips on the matter ?
> >
> >>>From: Mark Thomas <ma...@apache.org>
> >>>Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
> >>>To: Tomcat Users List <us...@tomcat.apache.org>
> >>>Subject: Re: Context and web.xml
> >>>Date: Mon, 21 Aug 2006 07:27:32 -0400
> >>>
> >>>MC Moisei wrote:
> >>> > Hi,
> >>> >
> >>> > I'm using tomcat for dev. My question is for a dev environment. I 
>have
> >>> > context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is 
>there
> >>> > a way to specify what's the web.xml tomcat should use ? I use tomcat
> >>>for
> >>> > dev but I target Weblogic for production and such feature would be
> >>> > quite  useful.
> >>> >
> >>> > Thanks in advance,
> >>> > MC
> >>>
> >>>When starting a new thread (ie sending a message to the list about a
> >>>new topic) please do not reply to an existing message and change the
> >>>subject line. To many of the list archiving services and mail clients
> >>>used by list subscribers this  makes your new message appear as part
> >>>of the old thread. This makes it harder for other users to find
> >>>relevant information when searching the lists.
> >>>
> >>>This is known as thread hijacking and is behaviour that is frowned
> >>>upon on this list. Frequent offenders will be removed from the list.
> >>>It should also be noted that many list subscribers automatically
> >>>ignore any messages that hijack another thread.
> >>>
> >>>The correct procedure is to create a new message with a new subject.
> >>>This will start a new thread.
> >>>
> >>>Mark
> >>>tomcat-user-owner
> >
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Context and web.xml

Posted by Martin Gainty <mg...@hotmail.com>.
so if you to start off in context.xml with a path specification
<Context path="/urlPath ...>

later on  in web.xml you have defined the servlet-mapping as
    <servlet-mapping>
        <servlet-name>urlPath</servlet-name>
        <url-pattern>/servlet/urlPath</url-pattern>
    </servlet-mapping>

you would access the servlet with
http://MachineName:Port/WebApp/servlet/UrlPath

HTH,
M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "MC Moisei" <mc...@hotmail.com>
To: <us...@tomcat.apache.org>
Sent: Monday, August 21, 2006 4:03 PM
Subject: Re: Context and web.xml


> Any tips on the matter ?
> 
>>>From: Mark Thomas <ma...@apache.org>
>>>Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>>>To: Tomcat Users List <us...@tomcat.apache.org>
>>>Subject: Re: Context and web.xml
>>>Date: Mon, 21 Aug 2006 07:27:32 -0400
>>>
>>>MC Moisei wrote:
>>> > Hi,
>>> >
>>> > I'm using tomcat for dev. My question is for a dev environment. I have
>>> > context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there
>>> > a way to specify what's the web.xml tomcat should use ? I use tomcat 
>>>for
>>> > dev but I target Weblogic for production and such feature would be
>>> > quite  useful.
>>> >
>>> > Thanks in advance,
>>> > MC
>>>
>>>When starting a new thread (ie sending a message to the list about a
>>>new topic) please do not reply to an existing message and change the
>>>subject line. To many of the list archiving services and mail clients
>>>used by list subscribers this  makes your new message appear as part
>>>of the old thread. This makes it harder for other users to find
>>>relevant information when searching the lists.
>>>
>>>This is known as thread hijacking and is behaviour that is frowned
>>>upon on this list. Frequent offenders will be removed from the list.
>>>It should also be noted that many list subscribers automatically
>>>ignore any messages that hijack another thread.
>>>
>>>The correct procedure is to create a new message with a new subject.
>>>This will start a new thread.
>>>
>>>Mark
>>>tomcat-user-owner
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
>

Re: Context and web.xml

Posted by MC Moisei <mc...@hotmail.com>.
Any tips on the matter ?

>>From: Mark Thomas <ma...@apache.org>
>>Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>>To: Tomcat Users List <us...@tomcat.apache.org>
>>Subject: Re: Context and web.xml
>>Date: Mon, 21 Aug 2006 07:27:32 -0400
>>
>>MC Moisei wrote:
>> > Hi,
>> >
>> > I'm using tomcat for dev. My question is for a dev environment. I have
>> > context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there
>> > a way to specify what's the web.xml tomcat should use ? I use tomcat 
>>for
>> > dev but I target Weblogic for production and such feature would be
>> > quite  useful.
>> >
>> > Thanks in advance,
>> > MC
>>
>>When starting a new thread (ie sending a message to the list about a
>>new topic) please do not reply to an existing message and change the
>>subject line. To many of the list archiving services and mail clients
>>used by list subscribers this  makes your new message appear as part
>>of the old thread. This makes it harder for other users to find
>>relevant information when searching the lists.
>>
>>This is known as thread hijacking and is behaviour that is frowned
>>upon on this list. Frequent offenders will be removed from the list.
>>It should also be noted that many list subscribers automatically
>>ignore any messages that hijack another thread.
>>
>>The correct procedure is to create a new message with a new subject.
>>This will start a new thread.
>>
>>Mark
>>tomcat-user-owner



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Context and web.xml

Posted by MC Moisei <mc...@hotmail.com>.
My bad. Indeed, I did what you said but changed the topic. I thought that's 
the right email address.

Thanks for info Mark!
MC




>From: Mark Thomas <ma...@apache.org>
>Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>To: Tomcat Users List <us...@tomcat.apache.org>
>Subject: Re: Context and web.xml
>Date: Mon, 21 Aug 2006 07:27:32 -0400
>
>MC Moisei wrote:
> > Hi,
> >
> > I'm using tomcat for dev. My question is for a dev environment. I have
> > context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there
> > a way to specify what's the web.xml tomcat should use ? I use tomcat for
> > dev but I target Weblogic for production and such feature would be
> > quite  useful.
> >
> > Thanks in advance,
> > MC
>
>When starting a new thread (ie sending a message to the list about a
>new topic) please do not reply to an existing message and change the
>subject line. To many of the list archiving services and mail clients
>used by list subscribers this  makes your new message appear as part
>of the old thread. This makes it harder for other users to find
>relevant information when searching the lists.
>
>This is known as thread hijacking and is behaviour that is frowned
>upon on this list. Frequent offenders will be removed from the list.
>It should also be noted that many list subscribers automatically
>ignore any messages that hijack another thread.
>
>The correct procedure is to create a new message with a new subject.
>This will start a new thread.
>
>Mark
>tomcat-user-owner
>
>---------------------------------------------------------------------
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Context and web.xml

Posted by Mark Thomas <ma...@apache.org>.
MC Moisei wrote:
> Hi,
> 
> I'm using tomcat for dev. My question is for a dev environment. I have
> context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there
> a way to specify what's the web.xml tomcat should use ? I use tomcat for
> dev but I target Weblogic for production and such feature would be
> quite  useful.
> 
> Thanks in advance,
> MC

When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org