I have a EC2 instance running in Singapore region with AMI: ElasticBeanstalk-Tomcat7-64bit-201208231200 (ami-0cdc9d5e) and I am trying to deploy a war file in it. Steps I have followed are:
- copied the war file in /opt/tomcat7/webapps folder
- changed the owner of war file to be tomcat7
- changed the permissions of war file to be 777
- started the tomcat7 server
I have configured the security groups and ensured that the tomcat7 process is running.
However, when I try to browse: http://ec2-54-251-167-184.ap-southeast-1.compute.amazonaws.com/EmailService, I get a clear page. Ideally I was expecting a simple message from the index.jsp file. I have tested this war file in my local environment running tomcat7 and it works perfectly. Please let me know if I am doing something wrong.
Beanstalk service loads a war file from beanstalk application's bucket of S3. You can upload a war file to the beanstalk application's bucket using beanstalk console or AWS Toolkit for Eclipse. I think beanstalk console is the easiest way.
If you have not yet created a Beanstalk application environment, please read http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Java.sdlc.html .
I have a EC2 instance running in Singapore region with AMI: ElasticBeanstalk-Tomcat7-64bit-201208231200 (ami-0cdc9d5e) and I am trying to deploy a war file in it. Steps I have followed are:
- copied the war file in /opt/tomcat7/webapps folder
- changed the owner of war file to be tomcat7
- changed the permissions of war file to be 777
- started the tomcat7 server
I have configured the security groups and ensured that the tomcat7 process is running.
However, when I try to browse: http://ec2-54-251-167-184.ap-southeast-1.compute.amazonaws.com/EmailService, I get a clear page. Ideally I was expecting a simple message from the index.jsp file. I have tested this war file in my local environment running tomcat7 and it works perfectly. Please let me know if I am doing something wrong.
Beanstalk service loads a war file from beanstalk application's bucket of S3. You can upload a war file to the beanstalk application's bucket using beanstalk console or AWS Toolkit for Eclipse. I think beanstalk console is the easiest way.
If you have not yet created a Beanstalk application environment, please read http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Java.sdlc.html .
0 commentaires:
Enregistrer un commentaire