Hi,
thanks for replying.
What I want is an alias for the context so that more than one url can be
used for the same application and that the url used is reflected in
HttpServletRequest.getContextPath().
Currently I get two deployments, then getContextPath() returns those two
values as expected. I want to get rid of the double deployment but still get
the proper context path.
-Jan
Pid * wrote:
>
> On 12/05/2011 11:28, JanAa wrote:
>>
>> Hi,
>>
>> I want to have more than one context path for a single deployment in
>> Tomcat
>> 5.5.28. Whatever I do I seem to get multiple deployments.
>> In server.xml I have:
>> <Host name="localhost" appBase="webapps"
>> unpackWARs="true" autoDeploy="false" deployIgnore="alternative"
>> xmlValidation="false" xmlNamespaceAware="false">
>>
>> In conf/Catalina/localhost I have two .xml files ("primary.xml" and
>> "alternative.xml") both containing:
>> <Context docBase="/opt/tomcat/multiapps/primary">
>> </Context>
>>
>> In /opt/tomcat/multiapps/primary the web app resides.
>
> By defining multiple contexts, you are getting exactly that.
>
>
>> In the web app I want to be able to use getContextPath() and get response
>> based on what URL used to access (either "www.mydomain.com/primary" or
>> "www.mydomain.com/alternative")
>
> What are you getting now?
>
>
> p
>
>> Can anyone help?
>
>
>
>
>
--
View this message in context:
http://old.nabble.com/Multiple-context-paths-for-single-deployment-tp31601866p31610033.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]