Tomcat 7 maxSpareThreads,liveDeploy,调试
启动Tomcat 7时出现以下警告:
2011 年 1 月 20 日 8:27:50 PM org.apache.catalina.startup.SetAllPropertiesRule 开始 警告:[SetAllPropertiesRule]{Server/Service/Connector} 将属性“maxSpareThreads”设置为“75”时未找到匹配的属性。
2011 年 1 月 20 日 8:27:50 PM org.apache.tomcat.util.digester.SetPropertiesRule 开始 警告:[SetPropertiesRule]{Server/Service/Engine/Host} 将属性“liveDeploy”设置为“false”时未找到匹配的属性。
2011 年 1 月 20 日 8:27:50 PM org.apache.tomcat.util.digester.SetPropertiesRule 开始 警告:[SetPropertiesRule]{Server/Service/Engine/Host/Context} 将属性“debug”设置为“0”时未找到匹配的属性。
为什么会报告这些警告?提到的属性在为 Tomcat 5.5 创建的 server.xml
文件中指定。
我想知道 Tomcat 7 中有哪些替代方案。我应该从 server.xml 中删除这些参数还是有更好的解决方案?
The following warnings are reported when I start Tomcat 7:
Jan 20, 2011 8:27:50 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '75' did not find a matching property.Jan 20, 2011 8:27:50 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'liveDeploy' to 'false' did not find a matching property.Jan 20, 2011 8:27:50 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
Why are these warnings being reported? The properties mentioned are specified in the server.xml
file, which was created for Tomcat 5.5.
I want to know what are the alternatives in Tomcat 7. Should I just remove these parameters from server.xml or is there a better solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
maxSpareThreads 配置参数在 tomcat 6 中已被删除,因此它不再有效/适用。有关相关配置元素,请参阅 tomcat 5 文档页面: http:// tomcat.apache.org/tomcat-5.5-doc/config/http.html
(存在 maxSpareThreads),
并且在相应的 tomcat 6 文档页面中不存在。
the maxSpareThreads configuration parameter was removed in tomcat 6, so it's no longer valid/applicable. see the tomcat 5 documentation pages for the configuration element in question: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
(maxSpareThreads is present),
and absent in the corresponding tomcat 6 documentation page.