警告:将属性 'source' 设置为 'org.eclipse.jst.jee.server:appname' 没有找到匹配的属性
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4278009/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
WARNING: Setting property 'source' to 'org.eclipse.jst.jee.server:appname' did not find a matching property
提问by Mahmoud Saleh
When trying to run my app with eclipse/linux on apache tomcat on my local host the application runs fine but, I got the following warning:
当尝试在本地主机上的 apache tomcat 上使用 eclipse/linux 运行我的应用程序时,应用程序运行良好,但是,我收到以下警告:
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:appname' did not find a matching property.
警告:[SetPropertiesRule]{Server/Service/Engine/Host/Context} 将属性 'source' 设置为 'org.eclipse.jst.jee.server:appname' 未找到匹配的属性。
any ideas what does this warning means, how to resolve it?
任何想法这个警告意味着什么,如何解决它?
回答by Chris
Despite this question being rather old, I had to deal with a similar warning and wanted to share what I found out.
尽管这个问题已经很老了,但我不得不处理一个类似的警告,并想分享我的发现。
First of all this is a warningand not an error. So there is no need to worry too much about it. Basically it means, that Tomcat does not know what to do with the source
attribute from context.
首先,这是警告而不是错误。所以没有必要太担心它。基本上这意味着 Tomcat 不知道如何处理source
上下文中的属性。
This source
attribute is set by Eclipse (or to be more specific the Eclipse Web Tools Platform) to the server.xml
file of Tomcat to match the running application to a project in workspace.
该source
属性由 Eclipse(或者更具体地说是 Eclipse Web 工具平台)设置到server.xml
Tomcat的文件中,以将正在运行的应用程序与工作区中的项目相匹配。
Tomcat generates a warning for every unknown markup in the server.xml
(i.e. the source
attribute) and this is the source of the warning. You can safely ignore it.
Tomcat 为server.xml
(即source
属性)中的每个未知标记生成警告,这就是警告的来源。您可以放心地忽略它。
回答by Duff
You can change the eclipse tomcat server configuration. Open the server view, double click on you server to open server configuration. Then click to activate "Publish module contents to separate XML files". Finally, restart your server, the message must disappear.
您可以更改 eclipse tomcat 服务器配置。打开服务器视图,双击您的服务器打开服务器配置。然后单击以激活“将模块内容发布到单独的 XML 文件”。最后,重新启动您的服务器,该消息必须消失。
来源:http: //www.albeesonline.com/blog/2008/11/29/warning-setpropertiesruleserverserviceenginehostcontext-setting-property/