Tomcat 7 hangs during startup with CentOS 7
I recently installed Tomcat 7 for CentOS 7 and had a weird problem. The server would hang at startup. No errors, but no progress either. Strange, Tomcat has always been very stable and simple to use in my experience. It turned out to be an issue with SecureRandom. If the entropy source used for initialization is low on entropy it can take a very long time to set things up. See this post for details.
The solution was simple, just add a system property to /etc/tomcat/tomcat.conf:
Problem solved, SecureRandom uses the specified file as entropy source and it works.