You can see the command that occupies port 8080 by issuing e.g. lsof -i :8080 or netstat -tulpn | grep :8080.
lsof -i :8080
netstat -tulpn | grep :8080