0

Where can I find this parameter Dorg.apache.el.parser.COERCE_TO_ZERO in an Apache Tomcat 7 installation ?
I looked at apache-tomcat-7.0.33\conf\catalina.properties as suggested here on stackoverflow, but didn't find it.

Community
  • 1
  • 1
mounaim
  • 1,132
  • 7
  • 29
  • 56
  • 1
    The parameter is `org.apache.el.parser.COERCE_TO_ZERO`, the D comes from how you specify it on the command line as `-D`. Try adding it without the D to your property file. – wonderb0lt May 15 '15 at 08:53

1 Answers1

1

It is a system property. If you want it as apache configuration, drop the -D prefix which is for java command line.

If it is not in your configuration file, you may just as well add it as described here.

org.apache.el.parser. COERCE_TO_ZERO - If true, when coercing expressions to numbers "" and null will be coerced to zero as required by the specification.

If not specified, the default value of true will be used.

Laurentiu L.
  • 6,566
  • 1
  • 34
  • 60