当前位置: 代码迷 >> J2EE >> tomcat 启动警告有关问题,麻烦看看
  详细解决方案

tomcat 启动警告有关问题,麻烦看看

热度:94   发布时间:2016-04-17 23:37:03.0
tomcat 启动警告问题,麻烦看看
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '75' did not find a matching property.
Oct 17, 2014 8:53:03 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlValidation' to 'false' did not find a matching property.
Oct 17, 2014 8:53:03 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property.
Oct 17, 2014 8:53:03 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'docbase' to '/' did not find a matching property.
Oct 17, 2014 8:53:03 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'crosscontext' to 'true' did not find a matching property.
Oct 17, 2014 8:53:03 AM org.apache.catalina.core.AprLifecycleListener initializeSSL




上面是启动的警告

<Connector port="8080" maxHttpHeaderSize="8192"   maxThreads="500" protocol="org.apache.coyote.http11.Http11Protocol" minSpareThreads="50" 
 maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="utf-8" compression="on"  compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata"  
compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"  />


上面是我配置的。  麻烦看看有什么需要改动的。
------解决思路----------------------
Java 和  XML 都是区分大小写的。

估计是这个配置文件被人手工改过,比如 <Context /> 中应该是 docBase 而不是 docbase, crossContext 而不是 crosscontext.

建议你从 Eclipse 中创建一个全新的 tomcat server,然后也把你的项目”添加/删除“ 部署到这个服务器上,然后从 eclipse workspace 中的 Servers 项目中找这个服务器的配置 文件中的 server.xml 的内容拿来比较两个服务器的配置有什么不同。
------解决思路----------------------
你这个文件应该是被人改过了,而且改错了。
java 和 xml  都是区分大小写的,你这个文件中的 xml 标签的属性 docBase 的大小写形式不正确。因此建议你重新创建一个空白的 tomcat 配置。然后再在把你的 war 放到它的 webapp 目录下。
  相关解决方案