解决警告: Setting property 'source' to 'org.eclipse.jst.jee.server_:' did not find a matching property.的方法

今天第一次搭建struts2框架,跟着网上的教程导入对应的jar包之后就开始写登录的jsp页面,但是运行时出现了问题,

浏览器显示“The requested resource is not available.”的提示。

于是我查看了Console那里,发现有这么一条警告

“Setting property 'source' to 'org.eclipse.jst.jee.server struts2(我的项目名):' did not find a matching property.”

于是乎百度了一下,找到了解决方案

1. server 右键——》选择properties

2.单击Switch Location,这时,路径变为如下图显示的,保存

 3.双击server,打开Tomcat v7.0 Server at localhost.server 这个文件,选中publis module context to separate xml file 并保存(保存前先要停止服务器)

最后重启服务器,运行登录页面成功!

猜你喜欢

转载自www.cnblogs.com/Lesleyhi/p/8955826.html