Re: [Dev] Define Tomcat Context Path

2015-05-24 Thread Akalanka Pagoda Arachchi
Thanks all. As Thusitha mentioned, this might not be possible in tomcat 8
although it is possible in tomcat 7 as Hasitha pointed out.

Thanks,
Akalanka.

On Fri, May 22, 2015 at 9:46 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 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 hasit...@wso2.com
 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 
 darsha...@wso2.com 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 kas...@wso2.com
 wrote:


 Currently, AS does not support that feature.

 On Fri, May 22, 2015 at 1:08 PM, Akalanka Pagoda Arachchi 
 darsha...@wso2.com 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
 Dev@wso2.org
 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
 Dev@wso2.org
 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
 Dev@wso2.org
 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
 Abouthttp://about.me/thusithathilina




-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Define Tomcat Context Path

2015-05-22 Thread Hasitha Hiranya
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 
darsha...@wso2.com 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 kas...@wso2.com
 wrote:


 Currently, AS does not support that feature.

 On Fri, May 22, 2015 at 1:08 PM, Akalanka Pagoda Arachchi 
 darsha...@wso2.com 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
 Dev@wso2.org
 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
 Dev@wso2.org
 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Define Tomcat Context Path

2015-05-22 Thread Akalanka Pagoda Arachchi
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 kas...@wso2.com wrote:


 Currently, AS does not support that feature.

 On Fri, May 22, 2015 at 1:08 PM, Akalanka Pagoda Arachchi 
 darsha...@wso2.com 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
 Dev@wso2.org
 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Define Tomcat Context Path

2015-05-22 Thread Thusitha Thilina Dayaratne
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 hasit...@wso2.com 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 
 darsha...@wso2.com 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 kas...@wso2.com
 wrote:


 Currently, AS does not support that feature.

 On Fri, May 22, 2015 at 1:08 PM, Akalanka Pagoda Arachchi 
 darsha...@wso2.com 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
 Dev@wso2.org
 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
 Dev@wso2.org
 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
 Dev@wso2.org
 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
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Define Tomcat Context Path

2015-05-22 Thread Akalanka Pagoda Arachchi
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*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Define Tomcat Context Path

2015-05-22 Thread KasunG Gajasinghe
Currently, AS does not support that feature.

On Fri, May 22, 2015 at 1:08 PM, Akalanka Pagoda Arachchi 
darsha...@wso2.com 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
 Dev@wso2.org
 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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev