Reputation: 4809
I have a elastic beanstalk linux-tomcat ami instance with the sample application installed and working off the public dns. I'm able to ssh into the instance but cannot find where tomcat 7 lives (ie. the conf directory to edit server.xml). I've tried this with a 64 and 32 bit ami. Any ideas on where I might find this? I looked under:
/etc
/usr/share
I did find a elasticbeanstalk-tomcat7-deployment
file under tmp
(was empty).
I did a:
sudo yum install tomcat7
and the sample application is also being served up from :8080
and working on the public DNS. So I (think) have 2 tomcat servers running on the same beanstalk instance. In that case, I'm trying to find where the Tomcat 7 folders are (serving pages on port 80
).
Upvotes: 74
Views: 250828
Reputation: 11
My server is CentOS 7, and I install tomcat by:
sudo yum install tomcat
sudo yum install tomcat-webapps tomcat-admin-webapps
I found my webapps folders in:
/usr/share/tomcat/
and
/var/lib/tomcat/
Upvotes: 1
Reputation: 3430
In my case on Ubuntu 16.04 server, and default tomcat installation it's under:
/var/lib/tomcat8
Upvotes: 0
Reputation: 39
As of 6-6-15 the Web Root location is at /tmp/deployment/application/ROOT using Tomcat.
Upvotes: 2
Reputation: 475
Use "whereis" command.
$ whereis tomcat8
tomcat8: /usr/sbin/tomcat8 /etc/tomcat8 /usr/libexec/tomcat8 /usr/share/tomcat8
Upvotes: 11
Reputation: 15652
Following environment variables worked for me on Debian Wheezy 7 and Tomcat 7:
CATALINA_HOME=/usr/share/tomcat7
CATALINA_BASE=/var/lib/tomcat7
CATALINA_TMPDIR=/tmp/tomcat7
(I did create /tmp/tomcat7 manually)
Upvotes: 4
Reputation: 330
/var/lib/tomcat7/webapps/
find / -name 'tomcat_version' -type d
Upvotes: 23
Reputation: 2512
Not sure if this would be helpful. I am using a similar Amazon Linux AMI, which has tomcat7 living under /usr/share/tomcat7.
If tomcat is already running on your machine you can try:
ps -ef | grep tomcat
or
ps -ef | grep java
to check where it's running from.
Upvotes: 56
Reputation: 22451
Since late 2012, it is usually under /usr/share/tomcat7
.
Prior to that, it was usually found under /opt/tomcat7
.
Upvotes: 110
Reputation: 703
As of October 3, 2012, a new "Elastic Beanstalk for Java with Apache Tomcat 7" Linux x64 AMI deployed with the Sample Application has the install here:
/etc/tomcat7/
The /etc/tomcat7/tomcat7.conf file has the following settings:
# Where your java installation lives
JAVA_HOME="/usr/lib/jvm/jre"
# Where your tomcat installation lives
CATALINA_BASE="/usr/share/tomcat7"
CATALINA_HOME="/usr/share/tomcat7"
JASPER_HOME="/usr/share/tomcat7"
CATALINA_TMPDIR="/var/cache/tomcat7/temp"
Upvotes: 8