Marco
Marco

Reputation: 602

What triggers tomcat auto deployment

I have web app defined as follows:

<Context path="/myApp" reloadable="true" docBase="/myapps/myApp1">

From Tomcat doc only changes to web.xml or Context xml should trigger redeployment However I found out that even when I change a simple text file under WEB-INF/classes app still gets redeployed:

touch /myapps/myApp1/WEB-INF/classes/app.properties 

So how exactly does Tomcat auto-deployment feature works?

Upvotes: 0

Views: 396

Answers (1)

Nishant Chauhan
Nishant Chauhan

Reputation: 73

When you put the "reloadable" attribute to "true" then it also monitors classes in "/WEB-INF/classes/" and reload the web application if a change is detected.

you may refer the documentation here and search for attribute "reloadable".

What you are searching is the attribute autoDeploy in the documentation.

I hope this is helpful for you and please let me know if you have any doubt.

Thanks, Nishant

Upvotes: 2

Related Questions