Search code examples
javatomcatjakarta-ee

Prevent tomcat from starting application on deploy


Is there any way to tell Tomcat not to automatically start application which I want to deploy? I'd like to this manually.


Solution

  • In CATALINA_HOME/conf/server.xml:

    <Host appBase="webapps" autoDeploy="false" name="localhost" unpackWARs="true" 
        xmlNamespaceAware="false" xmlValidation="false">
    

    Note the autoDeploy="false"