Hi Akalanka,

Are you trying to put the war file in the webapps directory and set the
context path?
If so I think that will not work according to the Tomcat 8 documentations[1]

This attribute must only be used when statically defining a Context in
> server.xml. In all other circumstances, the path will be inferred from the
> filenames used for either the .xml context file or the docBase.


[1] -
https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Common_Attributes

Thanks
/Thusitha

On Sat, May 23, 2015 at 3:57 AM, Hasitha Hiranya <[email protected]> wrote:

> Hi Akalanka,
>
> Following might be useful.
>
>
> http://stackoverflow.com/questions/7276989/howto-set-the-context-path-of-a-web-application-in-tomcat-7-0
>
> Thanks
>
> On Fri, May 22, 2015 at 3:17 PM, Akalanka Pagoda Arachchi <
> [email protected]> wrote:
>
>> Hi Kasun,
>>
>> Thank you, but rather I wanted to do this in tomcat itself. Not in our AS.
>>
>> Thanks,
>> Akalanka.
>>
>> On Fri, May 22, 2015 at 3:39 PM, KasunG Gajasinghe <[email protected]>
>> wrote:
>>
>>>
>>> Currently, AS does not support that feature.
>>>
>>> On Fri, May 22, 2015 at 1:08 PM, Akalanka Pagoda Arachchi <
>>> [email protected]> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I am trying to deploy a web app in tomcat 8 where the context path
>>>> should be different from the war file name.
>>>>
>>>> We should be able to do this by adding a context.xml file in META-INF
>>>> folder in we app according to [1]. I created this file with the following
>>>> content, but this does not change the context path to EdwDataServices.
>>>>
>>>> Any idea on this?
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <Context path="/EdwDataServices"
>>>> docBase="webapps/EdwDataServiceWeb-1.0.0-SNAPSHOT.war" />
>>>>
>>>> Thanks,
>>>> Akalanka.
>>>>
>>>> [1] - https://tomcat.apache.org/tomcat-8.0-doc/config/context.html
>>>>
>>>> --
>>>> *Darshana Akalanka Pagoda Arachchi,*
>>>> *Software Engineer*
>>>> *078-4721791 <078-4721791>*
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Software Engineer*
>> *078-4721791*
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog      alokayasoya.blogspot.com
About    http://about.me/thusithathilina
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to