catalina.properties gets overridden on Tomcat rest

2020-02-11 06:26发布

问题:

I added a property to common.loader in Catalina.properties (eg. added C:/apps/conf) and it is getting reset when I restart Tomcat 7. Though this is not the case on every restart.

Wonder why it's getting overridden sometimes when the server is bounced, any ideas?

回答1:

If you're using Eclipse, make sure you update catalina.properties in the "Servers" project in your workspace before you restart. This is the master version of this file and will overwrite anything you may have changed in your tomcat directory.