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 (1)

3
votes
3answers
641 views

Apache/Tomcat Parameters

I have a Medium server on EC2. I don't know that much about Apache or Tomcat - they are up and running, but other than that I don't have advanced knowledge of how to tinker. I know that I can set the ...
3
votes
3answers
599 views

Serving Tomcat under a sub-URI

I have a lot of services attached to a single domain, so I was hoping to serve Tomcat under, say, http://server_name/tomcat, with Nginx as a reverse proxy to Tomcat's HTTP connector. The Nginx ...
3
votes
2answers
902 views

What is consuming so much memory?

I am having a few problems with my server. It is throwing up intermittant errors and running quite slow. Here is the output from top: top - 07:33:33 up 18:57, 1 user, load average: 0.00, 0.00, 0.00 ...
3
votes
3answers
2k views

Tomcat 5.5 : How to redirect the logging output to one file per web application

How to configure tomcat 5.5 (or 6.0) that the output of stdout and stderr of each web application / context will go to one logfile? I only managed to get the stderr to a specific logfile - the stdout ...
3
votes
1answer
565 views

Apache HTTP server mapping to tomcat error

When I have Apache trying to map to tomcat I have the following worker.properties file: workers.java_home="C:/Program Files/Java/jdk1.6.0_13" workers.list=ajp13 workers.ajp13.port=8509 ...
3
votes
2answers
3k views

Apache Tomcat Windows service ignoring JAVA_HOME environment variable

I'm trying to get Apache Tomcat set up on a Windows Server 2003 machine. If I use the command line version (catalina.bat start) it all works fine, but if I try and use it as a Windows Service it seems ...
3
votes
1answer
431 views

Tomcat - Exporting Private Key?

So I've an appliance that uses SSL certs for different functions. I generated a CSE using keytool using these commands: keytool -genkey -alias tomcat -keyalg RSA -keystore /opt/msw/data/keystore ...
3
votes
3answers
1k views

Rolling deploys with Tomcats behind an HAProxy instance

I have three Tomcat instances running behind an HAProxy. When I roll out changes to my web applications, I'd like to do a rolling deploy (i.e. bounce one Tomcat at a time) so users don't see any ...
3
votes
1answer
1k views

SolrCore initialization failures

When I visit the dashboard it tells me: SolrCore initialization failures The only warning line in /var/log/tomcat6/catalina.out is: WARNING: New index directory detected: old=null ...
3
votes
3answers
274 views

Is it generally better to compress content on the proxy server or the app server?

We're using an F5 for load balancing and SSL proxying. Behind it we're serving up java applications with Tomcat instances. These are fairly small applications - hundreds of concurrent users. I'd ...
3
votes
2answers
1k views

How to setup tomcat 7 as a server on windows 2008 server

I setup the tomcat7 as a service as below: c:\Program Files (x86)\Tomcat7\apache-tomcat-7.0.32\bin>service.bat install Installing the service 'Tomcat7' ... Using CATALINA_HOME: "C:\Program ...
3
votes
1answer
576 views

Tomcat Solr Memory Usage

I am running solr on tomcat server on linux server, when I use the top command I see the "VIRT" very high PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4786 root 20 0 ...
3
votes
3answers
5k views

Apache2 reverse proxy seems to intermittently freeze?

Apache2 reverse proxy seems to intermittently freeze when proxying a tomcat web app. The problem is that every so often (once or twice a day usually after inactivity) when I try to log into this ...
3
votes
1answer
1k views

Apache2 + Solr: Tomcat or Jetty?

I have an (Ubuntu 10.4) server running Apache2 web server. So far so good, I have a few extensions setup just the way I hoped for, I'm happy. But now I'd like to try out Apache Solr because I'd ...
3
votes
2answers
2k views

How do I run my php script?

I'v installed Apache Tomcat and it's running. I have a php file which I want to run. Where do I have to put my php file so that going to http://localhost:8080/myPage.php (in my browser) will result in ...
3
votes
5answers
6k views

mod_jk problem: Tomcat is probably not started or is listening on the wrong port

I am running some application on Tomcat 6.0.26. There is Apache in front of web server talking to it over mod_jk. Every few hours when I try to access application browser simply spins, and no content ...
3
votes
1answer
64 views

How I can make Tomcat 7 to respond with static file slow?

For the testing purposes I need to make Tomcat to respond with late http responses. It is quite clear how to do it for the servlet responses. But it is not clear if I want Tomcat to answer, say with ...
3
votes
1answer
630 views

Load Balancing not working as expected in Apache in round-robin mode

We are facing some unexpected behavior with round-robin load balancing on Apache when one of the Tomcat servers goes down. Our Setup: we have 2 Apache web servers on the front end using mod_jk module ...
3
votes
1answer
826 views

Tell Tomcat to drop requests instead of dying “All threads (150) are currently busy”

My Tomcat 6.0.26 sometimes dies saying: SEVERE: All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status ... then Tomcat shuts down, and users can't ...
3
votes
1answer
556 views

adding a global URI prefix for Tomcat web apps

I am setting up a reverse proxy configuration where all requests whose path starts with '/apps/' should be proxied by Apache to Tomcat. This IMO has 2 benefits: it makes it possible to reserve ...
3
votes
1answer
222 views

Fedora 4, Apache 2.2.0, tomcat 5.5.7, openssl 0.9.7f, SSL certificates, domain names and IP addresses

I recently became the new admin of a old system that everybody approaches with the "don't touch it or it might break" mentality. Now I am being told to "touch it, and don't break it!" Task: What I ...
3
votes
1answer
6k views

How to configure tomcat to rollover catalina.log log files

I'm trying to configure my tomcat to rollover log files once a size limit is reached. I'm running tomcat as a windows service and am redirecting all my stdout to catalina.log. This is how I configured ...
3
votes
2answers
4k views

How get I the Tomcat AJP-Connectors working?

I want to access Tomcat through the Apache-webserver using connectors. I sticked to the documentation: http://tomcat.apache.org/connectors-doc/generic_howto/quick.html I only modified it a little to ...
3
votes
1answer
357 views

TeamCity use subdomain on Windows Machine

I have a TeamCity Install running on a Windows Machine which works on http://localhost:9999 I want to make my TeamCity web server available to external developers for a specific host entry. i.e. ...
3
votes
3answers
248 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
1answer
597 views

PHP and JSP running on same machine.. Tomcat on Apache

Sorry if this has been posted/answered already, but I cannot find the simple answer. I have two applications one JSP and one PHP both hosted on same machine running apache and tomcat. Apache is ...
3
votes
1answer
518 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
696 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
712 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
73 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
593 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
824 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
2k 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
509 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
6k 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
6k views

Tomcat ClassNotFoundException after switching from openjdk to sun java

We switched our java version from openjdk jre 1.7 to sun jre 1.7 and now starting tomcat gives the following errors: SEVERE: Begin event threw error java.lang.NoClassDefFoundError: ...
2
votes
2answers
5k 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
2answers
324 views

Difference between calling tomcat shutdown script and killing process

On our linux boxes, we have multiple users who run tomcat. Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh Are there any downsides of ...
2
votes
3answers
986 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
754 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
4answers
5k views

tomcat6 on CentOS 6: cannot stop/restart service

I have this problem with stopping and starting tomcat6 (package from the repos). I've seen with several CentOS 6 and RHEL 6 boxes. The symptoms are that when I want to restart or stop tomcat6 it just ...
2
votes
3answers
5k 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
584 views

Is there a Apache or Nginx equivalent to the IIS “drain stop”?

I come from a .NET background and there are many things I loved about it along side many things I hated. IIS was, in general, one of those things I hated. However, one really nice feature of IIS was ...
2
votes
2answers
3k 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
3k 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
1answer
1k views

Which is more secure: Tomcat standalone or Tomcat behind Apache?

This question is not about performance, nor about load-balancing, etc. Which would be more secure: running Tomcat in standalone mode or running Tomcat behind apache? The thing is, Tomcat is written ...