cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment issue on EC2 instance

eddiem
Champ in-the-making
Champ in-the-making
Hi,
I'm using ami-36456e42 - the Alfresco Amazon EC2 instance. This all works well.

However, I want to deploy a simple test jsp but I get a 404 when I call the url of the jsp (/amazontest/test.jsp).

Here's my steps.

1) create a simple test.jsp (outputs hello, etc)
2) Create a war file amazontest.jar (done using eclipse)
3) copy the war file to /var/lib/tomcat6/webapps
4) The war file is unpacked automatically (altho later I've also restarted tomcat too)
5) Call the test.jsp with the following url http://public-dns/amazontest/test.jsp -> 404 (have also tried adding port # to the public-dns, etc)
6) Looked at tomcat logs - shows that the war file is being deployed
7) Looked at apache error log - says that file /var/www/amazontest/test.jsp cannot be found.

#7 This seems to imply I'm missing out a step somewhere - that apache or tomcat is not aware of the new app.

Do I need to add the new app to server.xml or similar?

Thanks,
Eddie
1 REPLY 1

eddiem
Champ in-the-making
Champ in-the-making
Hmm,
Now solved - we hadn't opened port 8080 on our EC2 instance! I thought that because Alf was visible it was already open but it appears not.

Thanks anyway,
Eddie