title: Hosting Java Webservice on Amazon Linux AMI 2013.03
body: <p>I am given an Amazon Linux AMI 2013.03 instance with dns address like this: <code>ec2-22-11-111-105.compute-1.amazonaws.com</code> on which I have to host a java web service.
  I am connecting to it as ec2-user.
  I have installed tomcat6 server on it by this command: <code>sudo yum install tomcat6 tomcat6-webapps</code> and place my <code>WebService.war</code> file in the <code>\usr\share\tomcat6\webapps</code> folder. And then I have started the tomcat server as <code>sudo service tomcat6 start</code>.
  The tomcat is running on port 8080 and I have already got the port 8080 opened.
  So I am now trying to connect to this port from some other machine by this url: <code>http://ec2-22-11-111-105.compute-1.amazonaws.com:8080</code> but I am not able to connect to it although the tomcat server is running.
  What am I doing wrong? How can I make it work ?</p>