Tomcat startup check for database connectivity with graceful error messages


I sometimes have the situation that when the tomcat is starting up, it could not connect to the database. May it be because the db is down (e.g. in a test system) or something other does not work out the way it should.

Unfortunately the entries in app.log show errors that happens as a consequence of that problem but are much later in the process. I then find myself in the situation of endless scrolling through the log file (either in the test systems or in studio itself).
One example of such a log file is posted here:

So I would like to know if it is possible to do some kind of application start preparation checks for the db (by the platform) and log this exact problem and then stop the tomcat startup process (if this is possible). This way the error messages in the logs regarding the startup process become more clear.

What do you think about that?


Hi Mario,

Thank you for pointing out the problem. We’ll try to fix it.

1 Like

Hi Mario,

The issue is fixed in the platform version 6.5.0.

Now if the database is unavailable at the server start, user will see an informative message at the end of log .

great, thanks!

:ticket: See the following issue in our bug tracker: