各位大虾好。我在eclipse中部署完项目后,可以完全运行,但就是每隔20s就在控制台重复报以下错误
信息: Reloading this Context has started
2011-7-14 10:02:09 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2011-7-14 10:02:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2011-7-14 10:02:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2011-7-14 10:02:20 org.apache.catalina.loader.WebappClassLoader modified
信息:     Additional JARs have been added : 'commons-digester-1.7.jar'
2011-7-14 10:02:20 org.apache.catalina.core.StandardContext reload
信息: Reloading this Context has started
2011-7-14 10:02:20 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2011-7-14 10:02:20 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2011-7-14 10:02:20 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
怎么解决。

解决方案 »

  1.   

    你的web服务器设置的是自动编辑吧。如果设置的是自动编译,那么当你改变源文件的时候,服务器会重新加载应用
      

  2.   

    你用的什么web服务器? tomcat?resin?还是其他的?
    你可以不要让eclips自动编译你java文件。将project菜单里的build automatically 勾掉。这样web服务器就检测不到类的变动了,这样也就不会自动重新建在了。不过不建议这样做,因为很可能会在修改类后忘记编辑另一种就是修改你的服务器的配置。
    tomcat 没记错的话应该是修改server.xml中的
    <Host name="localhost"  appBase="webapps"
                unpackWARs="true" autoDeploy="true"
                xmlValidation="false" xmlNamespaceAware="false">autoDeploy="false"
      

  3.   

    是tomcat,我按照你的方法改了,还是不行。
      

  4.   

    server.xml修改后重启tomcat,重启后web应用应该是不会自动加载的了