I'm creating a JSF/Facelets web app in Eclipse. I've configured my project to use a Tomcat (6.0) server that is started/stopped by Eclipse.
Whenever I save a file (eg .xhtml) Eclipse restarts the app, trashing my HTTP session. This is annoying, because I'm frequently updating my .xhtml files, and the app doesn't need restarting to detect the changes.
Is there a way to stop Eclipse restarting the app? Specifically, can I configure Eclipse to only restart the app when I save files of a certain type?
The restart option allows users to restart eclipse. To restart eclipse, click on the File menu and select the Restart menu item. After a plug-in is installed, users will be prompted to restart eclipse. If they choose not to restart at that point they can restart eclipse later by using the restart option.
Under preferences General->Workspace, there's an "Save automatically before build" option.
You can restart running application by right clicking it in debug window and selecting "Terminate and relaunch". If you really want you can also add custom shortcut for terminating and relaunching by Window -> Preferences -> General -> Keys -> Find "Terminate and Relaunch" and choose your favorite key combination!
In the server View, double click on your Tomcat instance. This will open the properties of your Tomcat server. As I am not sure of which parameter will help you to solve your problem, check the following options in the latter view:
Hope this will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With