Disabling logging of command line arguments in Tomcat start up
Issue
- Tomcat's VersionLoggerListener is logging all command line arguments at start up:
INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djavax.net.ssl.trustStorePassword=deleted
- But we have some sensitive values here we do not want written to the log. How can this be avoided?
Environment
- JBoss Web Server (JWS) 3.x
- Tomcat
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.