how to set org.apache.tomcat.util.digester.EnvironmentPropertySource in tomcat
org.apache.tomcat.util.digester.PROPERTY_SOURCE
is a Java system property so you can set it where system properties are accepted:
- you can add it to the command line options, e.g. by adding to
setenv.sh
:
CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.EnvironmentPropertySource
This will work only if you call catalina.sh/startup.sh
to start Tomcat (directly or indirecly). For example it will not work on Windows, when starting Tomcat as a service.
- add the system property to
catalina.properties
:
org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.EnvironmentPropertySource
This always works.