But I still don't know how to fix this issue.
So what did netstat tell you?
I figured it out.
I remembered that the port 8009 is taken by Tomcat usually, so I created a simple Java class and sent HTTP request to it.
I got HTTP response.
It seems that Tomcat installed by Synaptic is set to run automatically upoun Ubuntu boot.