Eclipse: Apache Tomcat doesn’t update the project until I restarted Eclipse

apacheeclipsetomcat

I have tested my a simple form.html. I change something on here, and right click on project, run on server. My server (Apache Tomcat) will run my project.

But, I don't know why, it rarely update my project. (mean form.html no change !!!) until I restart eclipse and run project again.

Maybe the strange thing is : no message box appear asked me: "Do you want to restart server" like before. But I have config in Eclipse that "always restarted server when required" to "always". But, after I change something like some space in form.html, I just see that Eclipse save and run project. (not stop and start server again). Maybe the problem here !!!

(before that, I have clicked that not restart server, and remember this action), but I don't know how to config again for this

Thanks 🙂

Best Answer

Open the "Server" view and doubleclick on your server. Check the server location and deploy path. Open the publish tab and make sure "automatically publish when resource changes" is selected. Static resources will be hot deployed and there's no need to restart the server.

You can always republish resources by clicking your servers name in the Server view and then clicking the icon to the very right (in the header), Ctrl+Alt+P.

The "restart server" function can be modified here: window > prefereces > server > launching.