Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies released under the Apache License version 2. The Tomcat project started at Sun Microsystems and was donated by Sun to the Apache Software Foundation in 1999.

learn more… | top users | synonyms

3
votes
3answers
264 views

How to secure a vps based website?

If I have a vps hosting with linux, what should I do to be sure it has platform security ? I install a server (let's say tomcat), a database server (mysql) and then I deploy my application. Should I ...
3
votes
2answers
3k views

tomcat 6 start mode setting for production

Tomcat 6 (as a windows service) seems to have a 'Start Mode' with options of 'java, jvm or exe' which can be set via the Tomcat Monitor (system tray icon). if I set this to 'java', I can see a forked ...
3
votes
1answer
520 views

how to configure tomcat6 for ubuntu

i have installed apache tomcat6 for ubuntu 9.04 recenty.But it seems that some API's like servelet and http are not included althogh i have installed openJDK 1.6. somebody advised me to set JAVA_HOME ...
3
votes
1answer
779 views

obfuscating keystore password in JBoss 4.2.2 GA

I've setup my jboss app-server to use SSL. The relevant extract from my config is below. Everything is working ok, however some people have expressed concern over the keystorePass attribute being in ...
3
votes
1answer
760 views

Graceful Tomcat shutdown when Windows clustered service?

We're currently in a situation where a Tomcat service is being brought offline by a batch script each night (or at the presence of a war archive, at least) in a Windows clustered environment. The ...
3
votes
3answers
2k views

haproxy and tomcat intermittent hangs

I am trying to run haproxy in front of tomcat on a Solaris x86 box, but I am getting intermittent failures. At seemingly random intervals, the request just hangs until haproxy times out the ...
3
votes
2answers
1k views

Why a SIGHUP signal to httpd kills the tomcat process?

I have a server with a tomcat process binding to port 80 and a httpd processes binding to port 5000. For some reason every time any process send a SIGHUP signal to httpd process my tomcat process ...
3
votes
0answers
241 views

Compression of Tomcat mod_jk results in Apache httpd

I'm developing a web application locally on my system, serving it using Tomcat (tomcat-7.0.52). In production, I want to front the Tomcat with an Apache httpd (Apache/2.2.15). This works and I ...
3
votes
2answers
780 views

Configuring nginx as tomcat / uWSGI proxy

i'm in the process of configuring an amazon EC2 machine for java and django development. The stack we've chosen is nginx as the top level listener on :80 port, and passing the requests to the ...
3
votes
1answer
2k views

Tomcat url rewrite fails with 404, but browsing directly returns a 200

I have a web application deployed in webapps/appname and I'm trying to add in rewrite rules to example.org/appname-slow to rewrite to example.org/appname?delay=1. I have the following in ...
2
votes
3answers
3k views

How to configure my Elastic Load Balancer to balance SSL traffic?

I'm totally lost so I apologize if I'm not making sense. I need to create a load balancer in EC2 for our application servers. I'm trying make the ELB balance traffic over SSL (8443). However, it's ...
2
votes
3answers
648 views

How can I make Windows Server start my Apache service after the IIS service?

I have both Apache and IIS on a Windows Server 2k3. The Apache server is reached by tunneling through IIS using the Apache Tomcat Redirector Everything works just fine until I reboot. When I do ...
2
votes
2answers
8k views

AWS ec2 - open port 8080

I have an AWS ec2 instance. I have installed tomcat and now want to access it via the browser on port 8080. When I try to do so, the browser hangs. I HAVE ADDED 8080 TO THE DEFAULT SECURITY GROUP. I ...
2
votes
4answers
1k views

Tomcat denial of service

The last two days our Tomcat 5.5 Linux-based webserver has been broken down within minutes by starting thousands of downloads and stopping them. Some request paths in the access log end with a ...
2
votes
2answers
7k views

Why Tomcat doesn't stop?

When I run command: catalina.sh stop I receive error: org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at ...
2
votes
3answers
1k views

Upstart script vs. command-line: why this difference in behavior?

I'm trying to set up Tomcat to start with upstart. I find the following works: description "Tomcat Server" start on runlevel [2345] stop on runlevel [!2345] respawn respawn limit 10 5 ...
2
votes
2answers
3k views

How to force tomcat to shutdown after x number of seconds on windows?

On linux systems the stop command in catalina.sh accepts a timeout parameter which forcibly kills tomcat after the supplied number of seconds. The catalina.bat however doesn't seem to have a parameter ...
2
votes
2answers
3k views

How to Exclude an URL for Apache Mod_proxy?

We have two Apache server as front-end and 4 tomcat server as back-end configured using mod_proxy module as load balancer. Now, we want to exclude an single tomcat url from the mod_proxy load ...
2
votes
3answers
3k views

JMX connection to Tomcat running on Amazon EC2

My Tomcat 7 process, which I run on a server on Amazon EC2, has settings such as these in CATALINA_OPTS which should allow me to connect for JMX monitoring remotely: ...
2
votes
3answers
6k views

org.apache.solr.common.SolrException: Error loading class 'solr.VelocityResponseWriter'

I have setup an Apache Tomcat 6 server and installed Apache Solr 3.5.0 as per instructions found here http://pabloseminario.com/2011/02/22/installing-solr-on-debian-6-0/. Now, opening the solr ...
2
votes
2answers
4k views

Java: Tomcat slow serving static files?

I'm running an instance of Apache Tomcat (5.5) on a Windows 2008 platform. I think I'm seeing an issue related to concurrent file access / locking. When the number of concurrent HTTP threads is ...
2
votes
4answers
4k views

Absolute urls not working with Apache2 AJP proxy Tomcat

I don't seem to get how to configure ReverseProxy correctly. The URLs returned are all for the root directory "/", not "/tomcat" and only the main "default" tomcat page is displayed. I use Apache2 as ...
2
votes
2answers
4k views

Setup Tomcat with Puppet (noob question)

I have been learning Puppet (as in, the last 24 hours) and have come up with the following module to install Tomcat. It works great, but I can't help but feel like this is not the most optimal way to ...
2
votes
2answers
7k views

How to access a simple file or folder from Tomcat webapps folder

I want to be able to access a folder from my tomcat webapps folder so that I can give someone a URL like: http://localhost:8080/myFolder/myFile.f And in a web browser if they point to this they ...
2
votes
2answers
12k views

How to run tomcat6 on ubuntu as root?

I've got an existing software package that runs on Ubuntu that uses a chroot jail and so needs to be run as root. I want to exec this from a java web application running within Tomcat6 on Ubuntu, so ...
2
votes
4answers
1k views

running tomcat, what are my options?

If I am running the tomcat java container on a server, does it require me to use apache? What options do I have? If I need apache, what book would you recommend?
2
votes
3answers
223 views

tomcat8 from wheezy-backports fails with configtest.sh

I have installed tomcat8 package from wheezy-backports. I use the default / unmodified installation with the following expections: I use Oracle Java 8 JDK in /etc/default/tomcat8 is added: ...
2
votes
1answer
96 views

How to authenticate a user through certificate exchange?

I have an web application A where a user has to authenticate through a username/pass method (https://server.local/webappA). A secure connection is established (HTTPS) with the server A. Then, these ...
2
votes
2answers
7k views

Setup Apache Tomcat on Synology

I have an problem setting up an Apache Tomcat on my Synology DS1511+ server. The installing is no problem, but when i try http://"serverAdress":7070 i can't log into the the manage section. I have ...
2
votes
2answers
868 views

How to enable mod_info in Apache?

I gone through the apache guide to enable to mod_info. As per doc: To configure mod_info, add the following to your httpd.conf file. Location /server-info SetHandler server-info /Location ...
2
votes
1answer
6k views

How to redeploy host-manager webapp on Tomcat 7?

I have Tomcat 7 installed on Ubuntu 12.04, and I installed the package tomcat7-admin, which gave me two webapps: manager and host-manager. Then in the manager I accidentally undeployed the ...
2
votes
3answers
1k views

Apache as reverse-proxy for tomcat (running jenkins)

I have set up apache to work as a reverse proxy to tomcat that is running jenkins-CI. I can access the site from outside fine, except when I log in to jenkins, it redirects to my lan-hostname, and it ...
2
votes
1answer
243 views

What is the best approach for running two separate Tomcat (version 6) instances in one server (linux) ?

What is the best approach for running two separate Tomcat server ? The reason for doing so is that I want to separate two web applications and want them to run independently of each other. It will ...
2
votes
1answer
186 views

How to integrate monit into web app deployment process

I have: Tomcat with webapp deployed via mvn tomcat:redeploy. Monit, pinging the host and restarting server if ping failed. The thing is there in a moment during the redeployment when ping will ...
2
votes
1answer
3k views

Need Tomcat5 configured to listen on all interfaces

I have tomcat5 installed on CentOS. which is configured to listen only from 127.0.0.1. How do I configure Tomcat to listen from all interfaces. Connector port config is as under: <Connector ...
2
votes
2answers
197 views

Tomcat server getting restarted frequently

We have a script like below to monitor our server. During this code our server getting restarted. Can anyone please explain the meaning of below script? if [ -f $HOME/catalinamonitor ]; then echo ...
2
votes
2answers
2k views

How to configure both apache and tomcat on same url?

Say I have a registered URL mywebsite.com pointing to my server with a public IP address. I want to run both tomcat and apache to serve pages (i.e., some static pages on apache and some dynamic pages ...
2
votes
3answers
938 views

How to secure tomcat's manager with ssl

How can I secure tomcat's application manager with ssl ? I already have the certificates for the site. Thanks
2
votes
2answers
1k views

Which load balancer?

I am looking for a load balancer that: Is good stuff (free, open source, documented) Handles SSL Workers register in the load balancer, instead of listing workers (like jboss mod_cluster) works with ...
2
votes
2answers
6k views

Configuring nginx for use with Tomcat and SSL

I have Googled and looked at various sample SSL configurations and it seems like I've got things set up right, but there are two problems: When I load https://mysite.com, the lock that should appear ...
2
votes
1answer
1k views

Can you run a specific tomcat Web Application under another user?

We're developing a web-app running under tomcat which relies on Java User preferences to store all kind of settings. That works great, but we've run into problem where we needed to set up another ...
2
votes
2answers
614 views

tomcat (tcServer) on port 80 in linux …good idea?

Is it a good idea to run tomcat (tcServer from spring source) directly on port 80 (or 443) as root One could use mod_proxy or mod_jk from apache2 to work around it. I have also seen iptables based ...
2
votes
1answer
344 views

Tomcat7 hangs on deploying apps

I'm having some very strange behavior in Tomcat 7 on Ubuntu 14.04. I created a new VPS, installed default-jdk and other simple stuff. Downloaded and unpacked Tomcat 7. Checked that it runs on ...
2
votes
1answer
916 views

Reverse Proxy on Tomcat

I have a Tomcat application. I now want reverse proxy some of the pages to a different server listening on a different port. On a regular apache server, I would do the following. ProxyPass /dir1 ...
2
votes
1answer
3k views

Configuring Tomcat to not load web-app automatically at start up [duplicate]

I have a Java web app which I'm deploying using Tomcat but I'm having some trouble with this. The problem is that my web app has to talk to some native libraries (via JNI) and those libraries do not ...
2
votes
1answer
3k views

What to change in /etc/sudoers to allow restarting service?

I want an unprivileged user to be able to restart tomcat on my server. So I edited /etc/sudoers as follows username ALL=/etc/init.d/tomcat6 However, when the user runs /etc/init.d/tomcat6 restart ...
2
votes
2answers
156 views

Yum email notification when new tomcat update is available?

I have decided to exclude tomcat from yum auto updates. I would however like to know when new updates are available so I can review their worth. I see that you can set yum to send email notification ...
2
votes
2answers
3k views

How do you configure Apache/Tomcat to trust internal Certificate Authorities for server-to-server https requests

I need to perform web service calls from within my own web server running on Apache/Tomcat. Apache/Tomcat running on Linux needs to make calls out to a Microsoft server running IIS over HTTPS that ...
2
votes
2answers
8k views

how to add multiple Context elements to conf/context.xml in tomcat6

my existing conf/context.xml file has already a element; WEB-INF/web.xml I would like to add another to allow localhost access to the /manager/status location to my monitoring, however adding ...
2
votes
1answer
706 views

Tomcat virtual host configuration

Background: I have a host configured in my Tomcat's server.xml as: <Host name="mydomain.com" appBase="webapps/myapp" unpackWARs="true" autoDeploy="true" xmlValidation="false" ...