In our tomcat application, we find a CommunicationException message. There are various configuration parameters that can lead to this, including incorrect database configuration, but also tomcat configuration have TOMCAT5_SECURITY = yes
When we catch the exception, we want to give the user a useful error message. Therefore, we want to ask tomcat if TOMCAT5_SECURITY is installed, but we cannot decide where this is available in the API.
So what tomcat API call will tell us if TOMCAT5_SECURITY is enabled?
(The complete exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: communication failure).
aptivate
source
share