> On Dec 5, 2023, at 18:02, Mcalexander, Jon J. > <jonmcalexan...@wellsfargo.com.INVALID> wrote: > > I am trying to find decent examples for Proerty Replacements in > Catalina.properties. I have an instance that is giving me the following > Warning and it bugs me: > > Dec 05, 2023 5:48:51 PM org.apache.tomcat.util.digester.Digester > replaceSystemProperties > WARNING: System property [common.loader] failed to update and remains > ["${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar"]
I think you’re running into a bit of a chicken-and-egg situation here. Some of the items in catalina.properties, especially common.loader, cannot be handled by the standard property replacement mechanism since the files named by the common.loader property have to be used during the Tomcat bootstrap operation to locate the property replacement classes. The bootstrap logic does allow replacement of any values in catalina.properties that reference environment variables, which is how the default common.loader settings work. If you really want to change the locations pointed to by common.loader, you’ll need to edit catalina.properties directly. You can use the documented property replacement mechanism to adjust values in the various *.xml configuration files; if you have specific ones of those you want to change, we can probably provide examples. - Chuck > I've looked at the docs, and all I'm really finding is the following: > > Property replacements > Property > Description > org.apache.tomcat.util.digester. PROPERTY_SOURCE > > Set this to a comma separated list of fully qualified name of classes that > implement org.apache.tomcat.util.IntrospectionUtils.PropertySource. Required > to have a public constructor with no arguments. > > Use this to add a property source, that will be invoked when > ${parameter:-default-value} denoted parameters (with optional default values) > are found in the XML files that Tomcat parses. > > Property replacement from the specified property source on the JVM system > properties can also be done using the REPLACE_SYSTEM_PROPERTIES system > property. > > org.apache.tomcat.util.digester.ServiceBindingPropertySource can be used to > replace parameters from any Kubernetes service bindings that follows the > servicebinding.io<https://servicebinding.io/> spec > > org.apache.tomcat.util.digester.EnvironmentPropertySource can be used to > replace parameters from the process' environment variables, e.g. injected > ConfigMaps or Secret objects in container based systems like OpenShift or > Kubernetes. > > org.apache.tomcat.util.digester.SystemPropertySource does replacement with > system properties. It is always enabled, but can also be specified as part of > the property value. > org.apache.tomcat.util.digester. REPLACE_SYSTEM_PROPERTIES > > Set this boolean system property to true to cause property replacement from > the digester property source on the JVM system properties. > > Any good examples of how to use it properly would be great. > > Thank you for your time. > > Dream * Excel * Explore * Inspire > Jon McAlexander > Senior Infrastructure Engineer > Asst. Vice President > He/His > > Middleware Product Engineering > Enterprise CIO | EAS | Middleware | Infrastructure Solutions > > 8080 Cobblestone Rd | Urbandale, IA 50322 > MAC: F4469-010 > Tel 515-988-2508 | Cell 515-988-2508 > > jonmcalexan...@wellsfargo.com<mailto:jonmcalexan...@wellsfargo.com> > This message may contain confidential and/or privileged information. If you > are not the addressee or authorized to receive this for the addressee, you > must not use, copy, disclose, or take any action based on this message or any > information herein. If you have received this message in error, please advise > the sender immediately by reply e-mail and delete this message. Thank you for > your cooperation. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org