By junaidabidi
I am noticing that deploying a new applicaiton on tomcat7 takes a while to deploy. In the logs i can see all is clear but i cannot connect to http://host:8080 . Browser just hangs…
[localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 12833 ms
Any ideas why i cannot connect ? If i wait half an hour, perhaps i will be able to connect…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I ran into the same thing and it took forever to figure out.
Problem
The random number generator collects various bits of information from the operation of the system as an “entropy source” to provide more randomness. This process blocks the start of the Tomcat server.
Solution
Use a different source of random numbers.
In /etc/default/tomcat7, add the following line below the existing JAVA_OPTS variable.
JAVA_OPTS="${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom"
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.