I have just created a droplet, installed jre, jkd and maven. I uploaded a SPRING project that was running perfectly on my machine in Idea editor, but when I access <ip>:8080, it loads some long time and then browser returns “server not responding”. Why is that?
All that I did was just fetch from GitHub. Also, this is how I am starting the app:
mvn clean install java -Xverify:none -Djava.security.egd=file:/dev/./urandom -jar target/app-0.0.1-SNAPSHOT.jar
Also, to permanently deploy the app, all that I do is add an & at the end of the second command. Is it fine? Do you recommend that?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi there @TheJavaDevv2,
If you have a firewall like
ufw
make sure to open port8080
:Also I could suggest using
netstat
to check if the application is actually listening on0.0.0.0:8080
rather than127.0.0.1:8080
as if you want it to be accessible from the outside world, it has to be0.0.0.0:8080
:Regards, Bobby