将属性 'source' 设置为 'org.eclipse.jst.jee.server:JSFTut' 没有找到匹配的属性 [英] Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTut' did not find a matching property
问题描述
当我在控制台上运行演示 JSF 应用程序时出现以下错误
I am getting following error, when I run the demo JSF application on the console
[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTut' did not find a matching property.
推荐答案
这不是错误.这是一个警告.差异相当大.这个特别的警告基本上意味着 Tomcat 的 server.xml
中的
元素包含一个未知的属性 source
并且 Tomcat 不知道如何处理此属性,因此将忽略它.
This is not an error. This is a warning. The difference is pretty huge. This particular warning basically means that the <Context>
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 在 Tomcat 的 server.xml
中与项目相关的 <Context>
元素添加了一个自定义属性 source
来标识上下文的源(部署到特定服务器的工作区中的实际项目).通过这种方式,Eclipse 可以将部署的 Web 应用程序与工作区中的项目相关联.从 Tomcat 6.0.16 版本开始,server.xml
中任何未指定的 XML 标记和属性都会在 Tomcat 启动期间产生警告,即使存在 server.xml
没有 DTD 或 XSD.
Eclipse WTP adds a custom attribute source
to the project related <Context>
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
.
忽略它.你的网络项目很好.它应该运行良好.这个问题与JSF完全无关.
Just ignore it. Your web project is fine. It should run fine. This issue is completely unrelated to JSF.
这篇关于将属性 'source' 设置为 'org.eclipse.jst.jee.server:JSFTut' 没有找到匹配的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!