Tomcat 7 启动时,日志中出现:“[SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:dishuiTest' did not find a matching property.”
解决方案:
"
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 adds a custom attribute source to the project related <Context> element in theserver.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/3566146/setting-property-source-to-org-eclipse-jst-jee-serverjsftut-did-not-find-a”
简而言之,可以忽略这个问题~!
本文解释了Tomcat7启动时出现的关于属性'source'的警告信息,并说明这是一个可以被忽略的问题。此警告源于Eclipse WTP为项目添加了一个自定义属性到server.xml文件中的<Context>元素里,而Tomcat本身并不识别该属性。
2858

被折叠的 条评论
为什么被折叠?



