Setting property 'source' to 'org.eclipse.jst.jee.server:test' d

来源:互联网 时间:2017-01-22

Eclipse启动Tomcat报警告


[SetContextPropertiesRule]{Context} Setting property ‘source’ to
‘org.eclipse.jst.jee.server:test’ did not find a matching property.

解决方法: 0、Tomcat8上测试无效,很可能只适用于Tomcat6或以前版本 1、在server控制台内,在服务器上点右键–属性 2、general选项卡中点switch location 这时,location变为:/servers/tomcat6.0 server at localhost.server 3、在project explore中找到tomcat项目–Tomcat v6.0 Server at localhost.server 这个文件 ,双击打开 4、在最下面的server option里选中publis module context to separate xml file.保存。(保存时要先停止服务器) http://www.cnblogs.com/tonyzzp/archive/2010/04/11/eclipse_tomcat_setting_property_source_solution.html


另外,stackoverflow上有人提出这不是一个问题,可以不用理会 http://stackoverflow.com/questions/3566146/setting-property-source-to-org-eclipse-jst-jee-serverjsftut-did-not-find-a



This is not an error. This is a warning. The difference is pretty huge. This particular warning basically means that the element in Tomcat’s server.xml contains an unknown attribute source and that Tomcat doesn’t know what to do with this attribute and therefore will ignore it. Eclipse WTP adds a custom attribute source to the project related element in the server.xml of Tomcat which identifies the source of the context (the actual project in the workspace which is deployed to the particular server). This way Eclipse can correlate the deployed webapplication with an project in the workspace. Since Tomcat version 6.0.16, any unspecified XML tags and attributes in the server.xml will produce a warning during Tomcat’s startup, even though there is no DTD nor XSD for server.xml.



http://stackoverflow.com/questions/104854/setpropertiesrule-warning-message-when-starting-tomcat-from-eclipse https://www.eclipse.org/forums/index.php/m/210618/



The warning about the source property is new with Tomcat 6.0.16 and may be ignored. WTP adds a source attribute to identify which project in the workspace is associated with the context. The fact that the Context object in Tomcat has no corresponding source property doesn’t cause any problems.


相关阅读:
Top