IntelliJ web application context path

deployment, intellij-idea, tomcat

Solution

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:

- How is Tomcat handled by IntelliJ IDEA 10.5

Problem

In my IntelliJ web app, I have set the application context to myapp as shown below When I set the Application context, it doesn't seem to have any effect. I was expecting the app to be deployed to myapp, or at least the generated context.xml file to set my app's context to myapp. Any thoughts on why this doesn't work (does it have something to do with the fact that this is an exploded war)?

Original source

Related problems