a Java application server maintained by the Apache Software Foundation

learn more… | top users | synonyms (1)

99
votes
4answers
112k views

Disable autostart for a service without uninstalling? [duplicate]

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.
42
votes
9answers
171k views

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 ...
32
votes
5answers
55k views

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 ...
24
votes
3answers
43k views

Determine destination location of apt-get install <package>?

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 ...
20
votes
3answers
60k views

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 ...
18
votes
1answer
33k views

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) ...
13
votes
4answers
56k views

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 ...
13
votes
5answers
28k views

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 ...
11
votes
4answers
33k views

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... ...
9
votes
3answers
22k views

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 ...
9
votes
5answers
33k views

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 ...
7
votes
3answers
11k views

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 ...
7
votes
3answers
8k views

Install a different version of a package

I'm running lucid server and have installed tomcat. The version it installed is 6.0.24-2ubuntu1.6. Is this the version I'm tied to? Is it possible to install a more recent version? The one available ...
7
votes
1answer
13k views

Permission issues with tomcat

I installed Tomcat 7 following the Ubuntu guide. The server is working and gives me the "It works!" page on http://localhost:8080/. Now I want to setup my own webapp using Netbeans. I generated a new ...
7
votes
3answers
11k views

Installing Tomcat 7 using apt-get fails [closed]

I get the following error when installing Tomcat7: Setting up tomcat7 (7.0.26-1ubuntu1.1) ... chmod: cannot access `/etc/tomcat7/tomcat-users.xml': No such file or directory dpkg: error ...
6
votes
2answers
22k views

installing apache httpd server on ubuntu 12.04

I have 5 systems running apache tomcat server, for load balancing i need to install apache httpd server, how should i do this, please provide me some useful links and your opinions on this, thanks
6
votes
1answer
5k views

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?
6
votes
1answer
711 views

How do I secure a Tomcat installation?

I have installed tomcat on my Ubuntu Home 11.10 system and can successfully access the test page online after port forwarding on 8080 within my router. I have not made any other changes to the ...
5
votes
2answers
16k views

Tomcat Installation startup.sh not working

So I've followed the list of steps on : https://www.digitalocean.com/community/articles/how-to-install-apache-tomcat-on-ubuntu-12-04. When I try to run the startup script, I get this message: ...
4
votes
1answer
11k views

Installed Tomcat 7 but cannot run apps

Installed Tomcat7 via repository via Synaptic package manager & pasted my app(Beerv1) folder to /var/lib/tomcat7/webapps/ & also to /usr/share/tomcat7-root/ Still gets HTTP Status 404 ...
4
votes
4answers
12k views

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 ...
4
votes
6answers
18k views

Tomcat Manager Application and HTTP 404 Error

I am trying to set up the admin application for a Tomcat 6.0.24 instance. None of the searches I've done turn up anything I can use. I am using this configuration for Apache 2.2.14: Alias /manager ...
4
votes
2answers
6k views

Running Apache and Tomcat together on different subdomains?

Posted this on ServerFault but didn't get a response. Hoping I will have better luck on the Ubuntu site. I have been trying to get this working the whole of today. I have a server which resolves to ...
4
votes
3answers
3k views

Multiple tomcat instance

Is there a proper way to run more than one tomcat instance on an Ubuntu server? I've done some searching and found two options: Download a zipped tomcat and manually deploy it. The obvious con is ...
4
votes
1answer
1k views

Permission denied while doplying Tomcat 8 webapp on Amaon EC2

I can't find how I can get write and read permission into the tomcat folder. I followed DigitalOcean's tutorial on setting up Tomcat. The only thing I did different is that I used Java 8 instead of ...
3
votes
2answers
2k views

How to change tomcat 8 port

I am trying to change the Tomcat's port to 80 in Ubuntu 14.04 through this configuration [conf/server.xml]: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" ...
3
votes
2answers
3k views

Meaning of “Processing triggers for ureadahead”

I am trying to uninstall Tomcat 7 from Ubuntu 12.04 by issuing the command sudo apt-get remove tomcat7 as a result I am getting the following response My Questions Has the package tomcat7 been ...
3
votes
1answer
5k views

Installing tomcat from repo with Java from Oracle

Since Java 6 from Oracle is not supported with Ubuntu repositories anymore, I installed it by downloading the package from java.oracle.com, unpacking it in /opt and adding symlinks in /usr/bin. Now I ...
3
votes
1answer
353 views

Why Tomcat process uses so many ports?

~$ sudo netstat -utlpn | grep 2155 tcp6 0 0 :::42851 :::* LISTEN 2155/java tcp6 0 0 :::58212 :::* LISTEN 2155/java tcp6 ...
3
votes
1answer
13k views

Can not start tomcat6 server in ubuntu

I first downloaded open-jdk with: sudo apt-get install openjdk-6-jdk When I write java -version I get: java version "1.7.0_09" OpenJDK Runtime Environment (IcedTea7 2.3.4) ...
3
votes
1answer
951 views

how to remove tomcat8 from kubuntu 14.04

I have installed tomcat8 to using instructions from this website https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-14-04 But now I can't set up server in ...
3
votes
2answers
245 views

How to get backports for tomcat?

I installed tomcat 7 using apt-get utility on my ubuntu server 13.04. So do I need to manually configure, after this to start receiving backports/fixes for tomcat ? If yes, then how do I confgure? ...
3
votes
4answers
3k views

How do I remove OpenJDK?

I had removed OpenJDK installed by default from Ubuntu Software Center. Eclipse had been showing that Installed JRE is OpenJDK. I wanted eclipse should be configured to jdk I already installed and ...
3
votes
1answer
889 views

How to get Red5 working?

I installed Red5 from the Ubuntu universe repository. After installation, I visited http://localhost:5080. The page looked like this: As you can see, there's a broken image on the page. As well, ...
2
votes
2answers
10k views

Permissions problem when copying files to /usr/share/tomcat6

I am running springsource framework in ubuntu 10.01. In my home folder, I have installed springsource IDE. I have my tomcat6 appserver in the /usr/share/tomcat6. While executing a sample project ...
2
votes
3answers
2k views

Upgrade to latest tomcat/ JRE or stick with what's provided by LTS?

Running a production web server with Ubuntu 12.04 which ships Tomcat 7.0.26. Should I care about updating the tomcat installation to latest 7.0.42 version or should I stick with what's provided? If I ...
2
votes
2answers
15k views

how to run tomcat as service and not use root user

I copy catalina.sh to /etc/init.d/tomcat and sudo chkconfig --add tomcat it started as root user,I want use another user,how?
2
votes
2answers
29k views

Deploying war files in tomcat6

I am using tomcat5.5 for a long on Ubuntu servers 8.10 and 9.10 and /usr/share/tomcat/webapps/ is the path where I place my .war files and access them on the browser over network. On a sytem I've ...
2
votes
1answer
9k views

How to start tomcat7 when catalina.sh does not work?

I installed tomcat7 via the command sudo apt-get install tomcat7, now I went to /usr/share/tomcat7/bin and inputted catalina.sh but the following error occured Cannot find ...
2
votes
1answer
378 views

Tomcat 8.0.9 Shutting Down (no messages)

I'm honestly not sure, what is going on. I have tomcat 8.0.9 package installed (tomcat8) and it works fine once I start the service. However, at some point, it shuts down and I'm not sure why. The ...
2
votes
2answers
726 views

java development on linux [duplicate]

Possible Duplicate: How do I install Oracle Java JDK 7? I need help on how can I install java oracle 7, netbeans and tomcat on ubuntu platform. I 'm new to ubuntu, totally zero knowledge on ...
2
votes
1answer
2k views

Java using too much CPU

Trying to use either Eclipse or Apache Tomcat pushes all 4 CPU cores to around 60% cpu usage, and trying to run both at the same time maxes them all out. Tried deleting all the webapps I'd deployed ...
2
votes
1answer
976 views

How could i install JSF in ubuntu?

How could I add JSF to my system having JEE, tomcat, jboss, glassfish, and apache working?
2
votes
2answers
463 views

tomcat6 manager

I've just installed Ubuntu 10.04 LTS Server with LAMP support. Tomcat6 seems to run ok. But, I am unable to get into the manager-webapp... I've updated the tomcat-users.xml file: <?xml ...
2
votes
1answer
763 views

apache2 tomcat6 virtual hosting

I've apache2 and tomcat6 running on port 80 on ubuntu server 9.10. I've a registered domain name and I'll access the jsp index page navigating to http://abc.mydomain.com. The page is under ...
2
votes
1answer
181 views

Path given in Environment variable shows empty after reboot

I am trying to set environment variable CATALINA_HOME for tomcat server. I used the command CATALINA_HOME=/usr/local/apache-tomcat-8.0.22 JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386 and export ...
2
votes
2answers
419 views

What exactly should I set as JAVA_HOME?

I am trying to make Tomcat 7 working with Eclipse, and I am not sure if my JAVA_HOME is correct. ~$ echo $JAVA_HOME /usr/lib/jvm/default-java And there is no such catalog! I only have: ~$ ls ...
2
votes
1answer
339 views

How can I put tomcat under apparmor?

For security reasons, I want to put Tomcat under apparmor. The Ubuntu server(12.04 LTS) guide has a good explanation about apparmor, but I am not sure what is the correct way of creating a profile for ...
2
votes
0answers
181 views

Tomcat 7 and Eclipse integration getting error

I had installed Tomcat7 from Ubuntu's repository but when I added Tomcat7 into Eclipse, this dialog indicates something wrong with Tomcat Server Configuration at /usr/share/tomcat7/conf. How should I ...
1
vote
2answers
624 views

Why I can't use the CATALINA_HOME environment variable?

I am not yet a Linux guy and I have the following problem with environment variable. So I want to add a permanent environment variable and I do in this way: I open the /etc/profile file and I add ...