How to Find the Tomcat 7 Installation Folder on Linux Ami in Elastic Beanstalk

Where can I find the Tomcat 7 installation folder on Linux AMI in Elastic Beanstalk?

Since late 2012, it is usually under /usr/share/tomcat7.

Prior to that, it was usually found under /opt/tomcat7.

Where are Tomcat application log files stored in Elastic Beanstalk?

Something seems to have changed a bit on this, as I have a new Elastic Beanstalk application where the logs are located in:

/var/log/tomcat7/

Note that the easiest way to view stuff in here is to sudo su first, as this directory is owned by root. Whereas, I have an older instance where the logs are in:

/opt/tomcat7/logs/

I'm not sure why there is a disparity in this, as both applications use the tomcat7 container, but this seems to be the state of things to date.

Access Tomcat root application under different path (on AWS/Elastic Beanstalk)

Although we can now access our app under the desired path, the application is still deployed twice by Tomcat. While this is a minor nuisance for us, I can imagine this being a problem on more resource-tight machines. On the plus side, we can now start migrating our apps to no longer use the resource path when accessing the API, which leads to cleaner and shorter API URLs.

Customizing an Elastic Beanstalk AMI

That answer just means "Don't start a beanstalk application and cut an AMI directly from one of those instances. Instead, launch an instance based on the beanstalk AMIs (which are available in the public AMI listing)." I.e., use one of these; note there are 84 of them:

Beanstalk AMIs

Cut your own private AMI when you're done configuring that instance, and specify it in your beanstalk environment.



Related Topics



Leave a reply



Submit