警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context}

)出现警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:MyTest' did not find a matching property.
出现SetPropertiesRule警告的原因是因为Tomcat在server.xml的Context节点中不支持source属性:<Context docBase="…" path="/…" source="org.eclipse.jst.j2ee.server:…"/>
解决方法是在Servers视图里双击创建的server,然后在其server的配置界面中选中"Publish module contexts to separate XML files"选项。
这里如果选中这个选项后却无法保存,就看看你的项目是不是没有停止,没有停止的话,是保存不了的。将其停止即可。

猜你喜欢

转载自liyx985.iteye.com/blog/1920170