In my IntelliJ web app, I have set the application context to myapp as shown below
Overriding CATALINA_BASE
in Tomcat startup script may break IDEA deployment as it works by supplying custom CATALINA_BASE
location where the modified configuration is placed so that Tomcat loads artifacts directly from the location specified as the artifact output directory.
See the related question: