Intellij and Apache Tomcat not updating

走远了吗. 提交于 2019-12-18 07:23:08

问题


I have a project going on for a couple of months now using a Spring MVC framework. For developing I am using an Apache Tomcat 8.0.17 with an exploded war file. Everything worked well since yesterday. Now when I change my Java Files the changes are no longer visible. I can even throw runtime exceptions and stuff like that (I always restart the tomcat server). The only way to "update" my code is to rebuild the whole project (Build --> Rebuild Project) which is quite time consuming and very annoying.

I did not change anything in the configuration nor updated Intellij IDEA or the Tomcat Server.


回答1:


I could fix this by manually deleting all the files in the following folder:

%userdir%/.IntelliJIdea14/system/tomcat

After a full rebuild the updateing process works perfectly again.




回答2:


Use this is VM Options:

-Dcatalina.home=%tomcat_folder% -Dwtp.deploy=%tomcat_folder%/webapps -Dcatalina.base=%tomcat_folder%


来源:https://stackoverflow.com/questions/28520601/intellij-and-apache-tomcat-not-updating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!