将属性'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
中的< Context>
元素包含一个未知的属性 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添加了一个自定义属性源
到 server.xml 中的项目相关的
< Context>
code> Tomcat标识上下文的来源(部署到特定服务器的工作空间中的实际项目)。这样Eclipse可以将部署的web应用程序与工作空间中的项目相关联。自Tomcat 6.0.16版本起,任何未指定的XML标签和 server.xml
中的属性将在Tomcat启动过程中产生警告,即使有 no DTD或XSD server.xml
。
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屋!