netic
netic

Reputation: 2954

How to deploy external webapp in tomcat?

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

Upvotes: 19

Views: 17169

Answers (1)

Kees de Kooter
Kees de Kooter

Reputation: 7195

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" />

Upvotes: 40

Related Questions