14

In my IntelliJ web app, I have set the application context to myapp as shown below

enter image description here

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)?

Jeff Storey
  • 54,892
  • 71
  • 228
  • 402

1 Answers1

11

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:

Community
  • 1
  • 1
CrazyCoder
  • 371,688
  • 155
  • 943
  • 850
  • This should be printed in GIANT BLINKING LETTERS in IDEA's 'edit configuration' dialog box. Total misery can lead from what seems like a rational decision to pass along `CATALINA_BASE` as environment variable. – Hal50000 Aug 19 '14 at 17:48