警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclips

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:code003’ did not find a matching property.

在Ecilpse中,运行项目时,出现红色提示警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:code003’ did not find a matching property.

  • 具体如下:
  • 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclips

从网上查阅之后可能出现这个问题的原因是:

Java 和 XML 都是区分大小写的。
估计是这个配置文件被人手工改过,比如 中应该是 docBase 而不是 docbase, crossContext 而不是 crosscontext.

给出的建议是:
从 Eclipse 中创建一个全新的 tomcat server,然后也把你的项目”添加/删除“ 部署到这个服务器上,然后从 eclipse workspace 中的 Servers 项目中找这个服务器的配置 文件中的 server.xml 的内容拿来比较两个服务器的配置有什么不同。

所以,先关闭Tomcat服务器,双击eclipse下tomcat服务器
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclips

找到Server Options
勾选Publish modual contexts to separat XML files
保存
运行Tomcat,不再出现红色提示。

至此,问题解决。