Tomcat 8 hangs on startup while deploying webapp. Possibly related to entropy generation
Looks like it definitely was a problem with entropy generation with the SecureRandom class.
I added this flag to the JAVA_OPTS: -Djava.security.egd=file:/dev/./urandom and it starts up perfectly fine.
I know this isn't the perfect way to fix the problem so I'm going to see if upgrading to Java8 may solve it.
I got my information from this link.
That problem happens when you use virtual machines. Set Djava.security.egd=file:/dev/./urandomns in the file setenv.sh