How does my program request tomcat if the TOMCAT5_SECURITY function is enabled?

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).

+3
source share
2

TOMCAT5_SECURITY, , , Ubuntu/etc/default/tomcat5(.5). Ubuntu-specific, , Tomcat API. , , , , , .

+1

, SecurityException, ? , .

+1

Source: https://habr.com/ru/post/1707695/


All Articles