Stop Eclipse restarting my web app on file save

后端 未结 4 1218
眼角桃花
眼角桃花 2020-12-20 18:29

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

相关标签:
4条回答
  • 2020-12-20 18:33

    This can happen if you have a builder in Eclipse set to deploy on save. Right click on your project -> properties -> builders

    0 讨论(0)
  • 2020-12-20 18:43

    Turn off "Build Automatically"

    0 讨论(0)
  • 2020-12-20 18:50

    I have always used this and it works fine for me. The context is reloaded only when you change classes or the web descriptor.

    In your project structure where you keep .xhtml files which makes eclipse reload the context on changing?

    0 讨论(0)
  • 2020-12-20 18:58

    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:

    • Automatic Publishing, option "Override default settings" selected, 1 second for the publishing interval.
    • In server options, uncheck options "Server modules without publishing" and "publish module contexts to separate XML files".
    • In the modules tab, for each modules deployed, check that Auto Reload is enabled.

    Hope this will help you.

    0 讨论(0)
提交回复
热议问题