Tomcat warning: "Setting the" showServerInfo "property to" false "did not find a suitable property"

I am trying to change my webapp so that it does not provide any information about the type or version of the server when an error occurs, as described in this page . So, in the META-INF / context.xml file of my webapp, I added ErrorReportValve as follows:

  <Host name="localhost"  appBase="webapps"
        unpackWARs="true" autoDeploy="true"> 

   ...

    <Valve className="org.apache.catalina.valves.ErrorReportValve" 
        showReport="false" 
        showServerInfo="false" />

   ...

  </Host>

But when I start tomcat, I get this error message:

February 27, 2015 11:48:26 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule] {Context / Valve} The 'showReport' setting property for 'false' did not find a suitable property.

27 2015 . 11:48:26 org.apache.tomcat.util.digester.SetPropertiesRule begin : [SetPropertiesRule] {/Valve} 'showServerInfo' 'false' .

( tomcat 7.0.52 Ubuntu 14.04.2 LTS)

- , ErrorReportValve, , ?

+4

All Articles