Reputation: 69
I am trying to deploy an war file on tomcat using ant, having config option on the deploy task for context path *.xml file. However, the value have not been taken into consideration while the deploy task being executed.
Below is my code and context config file:
<deploy url="http://localhost/manager/text" username="${user}" password="${password}" war="${warfile}" update="true" path="/rmd" config="${contextConfig}"/>
context.xml
<Context path="/rmd/app" docBase="rmd"/>
The application is accessible using the url - http://localhost/rmd
but I am expecting it to be accessible as http://localhost/app/rmd
.
What am I missing ?
Upvotes: 1
Views: 125
Reputation: 16559
Change path attribute from /rmd
to /app/rmd
.
Updated <deploy>
tag :
<deploy url="http://localhost/manager/text" username="${user}" password="${password}" war="${warfile}" update="true" path="/app/rmd" config="${contextConfig}"/>
Upvotes: 1