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" />
Share:
16,138

Related videos on Youtube

netic
Author by

netic

Updated on April 19, 2022

Comments

  • netic
    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
    netic about 15 years
    That 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
    Varun over 5 years
    Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:\app\myApp] is not valid What could be the reason for this error
  • user2649601
    user2649601 over 5 years
    Either use forward slashes or double `\\` backslashes for paths in Windows.