How to deploy external webapp in tomcat?
16,138
You should create a myapp.xml
file for this app and place it in %TOMCAT_HOME%\conf\Catalina\localhost
.
The file looks something like this:
<Context displayName="myapp"
docBase="C:/app/myapp"
path="/myapp"
reloadable="true" />
Related videos on Youtube
Author by
netic
Updated on April 19, 2022Comments
-
netic about 2 years
Could anyone answer my question, please?
I'd like to deploy a web application folder
C:\app\myapp
to Tomcat6.x instead of having a copy under
%TOMCAT_HOME%\webapps
Which configuration is required on tomcat server?
Thanks
-
netic about 15 yearsThat works. Thanks. Just to be more precise. context.xml should be myappname.xml, then you will be able to use localhost/myappname instead of localhost/context
-
Varun over 5 yearsCaused by: java.lang.IllegalArgumentException: The main resource set specified [C:\app\myApp] is not valid What could be the reason for this error
-
user2649601 over 5 yearsEither use forward slashes or double `\\` backslashes for paths in Windows.