Questions tagged [tomcat]

a Java application server maintained by the Apache Software Foundation

Tomcat is an open source Java application server. Further information can be found on the Apache Tomcat project page.

For questions relating to specific versions of Tomcat, see and .

210 questions
154
votes
4 answers

Disable autostart for a service without uninstalling?

How can I disable autostart for a service without uninstalling? For example, I'd like to leave tomcat installed, but I don't want it turning on every time I restart.
C. Ross
  • 3,067
106
votes
10 answers

What is the Tomcat installation directory?

Based here I'm trying to setup Tomcat Server, I have successfully installed it and tested it. Then I stopped it as recommended in the tutorial. I'm setting up "New Server Runtime Environment" as you can see under Tomcat Installation Directory is a…
106
votes
4 answers

Determine destination location of apt-get install ?

For some applications its fairly easy enough to locate where the application was installed to using the "which" command. However, some applications such as Tomcat are a little out of my league to locate. I'm asking for particular methodology that…
Sn3akyP3t3
  • 1,636
42
votes
5 answers

Specify JDK for tomcat7

I have installed tomcat7 (using apt-get install) and whenever I want to start tomcat7 it says : * no JDK found - please set JAVA_HOME I have set JAVA_HOME in my bash.bashrc and also in ~/.bashrc and when I issue echo $JAVA_HOME I clearly see that…
Hossein
  • 1,777
31
votes
3 answers

Where is catalina_base and catalina_home located for tomcat6?

I recently installed tomcat6 with apt-get and have got it up and running. Ubuntu doesnt set the $CATALINA_BASE and $CATALINA_HOME environment variables during the install. How can I locate these directories, so I can manually set them?
bneil
  • 413
30
votes
7 answers

tail: inotify cannot be used, reverting to polling: Too many open files

When I try to tail -f catalina.out, I get the error: tail: inotify cannot be used, reverting to polling: Too many open files I tried the answer in this post: Too many open files - how to find the culprit lsof | awk '{ print $2; }' | sort -rn |…
gbag
  • 301
26
votes
6 answers

How to automatically restart Tomcat7 on system reboots?

I have installed Tomcat 7 on Ubuntu 12.04 LTS which runs on an Amzon EC2 instance. Now I wish tomcat should restart automatically on system reboot. I read this blog which suggest adding below script to /etc/init.d/tomcat7: # Tomcat auto-start # #…
20
votes
5 answers

Tomcat does not recognize JAVA_HOME

I've installed Ubuntu 14.04 Server, extracted JDK1.8u5 and Tomcat7, and added the following to .profile (I also tried adding it to .bashrc with similar [non-] results): export JAVA_HOME=/opt/java/jdk1.8.0_05 export PATH=$PATH:$JAVA_HOME/bin when I…
isapir
  • 591
19
votes
1 answer

How to install Tomcat 7.0.42 on Ubuntu 12.04.3 LTS?

The sysadmin gave me a virtual machine which I access through terminal. I have root access and it got Ubuntu 12.04.3 LTS. The command apt-cache policy tomcat7 informs: tomcat7: Installed: (none) Candidate: 7.0.26-1ubuntu1.2 Version table: …
15
votes
5 answers

How should I install Apache Tomcat 7 for use with Eclipse?

Which way should I install Apache Tomcat 7 on my Ubuntu: Using sudo apt-get install tomcat7 From the zip file downloaded from Apache website. I don't want the server to start on each boot. As most of the time I will be using it in my Eclipse to…
12
votes
3 answers

CATALINA_HOME vs. CATALINA_BASE

I can't find a definitive answer to why Ubuntu would set the CATALINA_BASE environment variable, making it different from CATALINA_HOME. I found this document which suggests that not setting CATALINA_BASE would make it equivalent to CATALINA_HOME.…
Mei
  • 1,676
11
votes
1 answer

How to set a permanent environment variable?

I am not yet a Linux guy and I have some problem trying to add a new permanent environment variable. So I have to set a new environment variable named CATALINA_HOME with this value: /opt/apache-tomcat-8.0.23 What can I do to set it permanently? Tnx
AndreaNobili
  • 4,839
11
votes
5 answers

How do I install Apache Tomcat 7?

Troubleshooting with apache Tomcat 7 steps should be followed .... after downloading apache-Tomcat 7 // open terminal go to that downloading file folder in which tar.gz file is still. Untar the tar file tar -xzvf filename.tar.gz move a extracted…
Anupesh
  • 111
11
votes
4 answers

Installing tomcat 7 on Ubuntu Server 12.04

I'm trying to install tomcat 7 on Ubuntu Server 12.04 with: sudo apt-get install tomcat7 which most sites and guides tell to do, but immediately I receive this answer: Reading package lists... Done Building dependency tree Reading state…
Anibaru
  • 111
10
votes
2 answers

Which user is running tomcat?

I have a Tomcat 7 server running on Amazon EC2 (OS - Ubuntu 12 LTS). How can I find out which user is running Tomcat on Amazon EC2?
1
2 3
13 14