Publishing failed with multiple errors
  Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar'.
  Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/commons-io-1.3.2.jar'.
  Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/freeer-2.3.15.jar'.
  Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/ognl-2.7.3.jar'.
  Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/struts2-core-2.1.8.1.jar'.
  Resource is out of sync with the file system: '/StrutsFileUpload/WebContent/WEB-INF/lib/xwork-core-2.1.6.jar'.

解决方案 »

  1.   

    这是文件系统不同步的问题,是因为在eclipse之外对工程中的resource进行修改引起的;但是,有时没有在eclipse之外进行修改,也会报类似的错误。 
    解决办法:需要手动刷新一下资源管理器。 
    (1)在eclipse中,工程目录右键,选择F5(refresh) 
    (2)设置eclipse自动刷新。 
               通过Window->Preferences->General->Workspace,选中Refresh automatically。
      

  2.   

    gszyt:我还有个问题想请教一下
    我的eclipse中的项目,运行老是报java.lang.NullPointerException
    这个异常,这个项目是没有问题的,就会报这个错误,不知道怎么回事
      

  3.   

    如果你的项目没有问题的话,eclipse应该不会平白无故报这个错误,查看一下,你要显示的数据的那个属性是不是为null了。