Eclipse下的Setting property 'source' to '...' did not find a matching property 错误

Eclipse下运行服务器时报警告:

[SetPropertiesRule]{Server/Service/Engine/Host/Context}Setting property 'source' to 'org.eclipse.jst.jee.server:工程名' did not find a matching property.


原因:默认情况下,server.xml的 Context元素不支持名称为source的属性,就出现该警告
解决:双击server窗口下的tomcat服务器,在出来的Tomcat server at localhost页面中找到
server options选项,选中其中的选项”Publish modual contexts to separat XML
files“,ctr+s,启动tomcat.

作者:有铭
链接:http://www.zhihu.com/question/22298367/answer/30704992
来源:知乎

猜你喜欢

转载自asjava.iteye.com/blog/2286419