启动tomcat报这个错误

lmzpp 2010-08-12 05:46:18
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/freemarker-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'.
...全文
90 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
满意 2010-08-13
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 lmzpp 的回复:]
gszyt:我还有个问题想请教一下
我的eclipse中的项目,运行老是报java.lang.NullPointerException
这个异常,这个项目是没有问题的,就会报这个错误,不知道怎么回事
[/Quote]
如果你的项目没有问题的话,eclipse应该不会平白无故报这个错误,查看一下,你要显示的数据的那个属性是不是为null了。
qweone 2010-08-13
  • 打赏
  • 举报
回复
学习了.之前也碰到.最后重装系统了.
niu90 2010-08-13
  • 打赏
  • 举报
回复
蹭分的...没异常信息....
lmzpp 2010-08-12
  • 打赏
  • 举报
回复
gszyt:我还有个问题想请教一下
我的eclipse中的项目,运行老是报java.lang.NullPointerException
这个异常,这个项目是没有问题的,就会报这个错误,不知道怎么回事
lmzpp 2010-08-12
  • 打赏
  • 举报
回复
太谢谢你了
白菜炒萝卜 2010-08-12
  • 打赏
  • 举报
回复
这是文件系统不同步的问题,是因为在eclipse之外对工程中的resource进行修改引起的;但是,有时没有在eclipse之外进行修改,也会报类似的错误。


解决办法:需要手动刷新一下资源管理器。
(1)在eclipse中,工程目录右键,选择F5(refresh)
(2)设置eclipse自动刷新。
通过Window->Preferences->General->Workspace,选中Refresh automatically。

67,515

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧