java - How does my program ask tomcat if TOMCAT5_SECURITY is enabled? -


In our Tomcat application, we capture a communication expansion. There are various configurable parameters that can set the database configuration incorrectly, but in the case of Tomcat 5_SECURITY = yes

while capturing the exception, we want to provide a helpful error message. So we would like to ask if Tomcat 5_SECURITY is set, but where we can not make it available in the API.

So will the Tomcat API call tell us whether TomCAT 5_SCUITETE is enabled?

(Full exception com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communication link is failure)

I know that only the TOMCAT5_SECURITY flag in the Ubuntu package file /etc/default/tomcat5(.5) Has been given. This is Ubuntu-specific, so I do not expect it to be part of the Tomcat API. Note that the flag sets whether safety managers have been used or not, so you should consider it.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -