On 13/10/2021 14:19, Mohan T wrote:
Dear All,
We are using Tomcat 8.5 on Suse linix.
We are deploying one of our artifacts as below
hub#app#classic#admin.war
The components are also deployed and the context is also created
Successfully.
Is there any other alternative way to set the context other than using
*#*.
Please guide us.
Move the WAR file *outside* of the Host's appBase. i.e. You need to move
it out of the webapps directory.
You then have two options.
1. Recommended
Add a file named
$CATALINA_BASE/conf/Catalina/localhost/hub#app#classic#admin.xml
with the following content:
<Context docBase="/path/to/warfile" />
2. Not recommended
Nest the following inside the Host element in server.xml
<Context docBase="/path/to/warfile" path="/hub/app/classic/admin" />
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org