I'm running a webapp on Tomcat from within Eclipse, but I'm in the process of switching to use IntelliJ instead of Eclipse. For some reason, when using IntelliJ, my CATALINA_BASE is showing a different path compared to my CATALINA_HOME (as per the logs):
14-Feb-2019 16:14:31.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\schmoejoe\.IntelliJIdea2018.3\system\tomcat\Unnamed_myapp
14-Feb-2019 16:14:31.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\myapp\apache-tomcat-9.0.8
In my Run/Debug Configuration I specify the path to my local tomcat (i.e., CATALINA_HOME) on my C: drive. But as you see above, the logs show my CATALINA_BASE at a different path, C:\Users\...\.IntelliJIdea2018.3\system\tomcat\Unnamed_its.
Why did IntelliJ change my CATALINA_BASE to be different from CATALINA_HOME? And is there any way I can prevent that?
One reason I ask is my logs now go to that other path instead of where I expected them to go (my actual tomcat directory). Maybe that's just how IntelliJ's Tomcat integration works? But one drawback is it seems to now preclude me from running my app(s) from my Tomcat bin\startup.bat.