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
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
1answer
819 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
5answers
8k 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
60 views

why is Tomcat ajp connection by default enabled

The Tomcat server configuration (server.xml) has AJP connector enabled by default. And so tomcat by default listens at port 8009. Why is this by default enabled ? I thought there will be only few ...
3
votes
1answer
3k views

Adding a docBase for Virtual Host using the Tomcat Virtual Host Manager

In the Tomcat Virtual Host Manager there is an option to add a virtual host with options for: Name Aliases App base AutoDeploy DeployOnStartup DeployXML UnpackWARs Manager App However there doesn't ...
3
votes
1answer
3k views

Port 80 redirects to CPanel's /cgi-sys/defaultwebpage.cgi even after forwarding

I recently took over the management of a website using a pure Tomcat 6 server (i.e. no combination Tomcat+Apache) with CPanel installed, which is only accessible on port 8088 (i.e. the main page URL ...
3
votes
1answer
138 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
477 views

How to fix access to the requested resource which has been denied for Tomcat webapp?

I have installed Tomcat in my machine and it is running fine. I am able to login to the administration manager. I have deployed a .war file which can be viewed on the Tomcat manager. The name of the ...
3
votes
1answer
952 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
1k 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
253 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
508 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
270 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
813 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
778 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
2k 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
61 views

Nginx: strip cookie from cached content

Trying to replace Apache by Nginx as a web proxy in front of some Tomcat servers, dealing with Set-Cookie JSESSIONID is proving to be challenging. Our Tomcat content is served with Cache-Control and ...
3
votes
1answer
538 views

Tomcat not getting data from TCP recv-Q, hanging

I have a program which is essentially a tomcat server with postgreSQL DB running on CentOS Linux 6.3. When a client submits a larger amount of data (~10MB) to the server, which should be received on ...
3
votes
2answers
845 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 ...
2
votes
3answers
764 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
4answers
2k 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
8k 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
1answer
2k views

How can I get apache to serve static content in a reverse-proxied setup?

I have a setup where my Tomcat instances are fronted with Apache servers with mod-proxy. I need to serve static content on the reverse-proxy side in case authentication closes my app session (heavy ...
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
2answers
3k views

How do I run strace or ltrace on Tomcat Catalina?

Running ltrace isn't trivial. This RHEL 5.3 system has based on a Tomcat Catalina (servlet container) which uses text scripts to tie everything together. When I tried to find an executable here's the ...
2
votes
2answers
5k 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
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
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
7k 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
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
10k 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
13k 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
582 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
3answers
8k 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
999 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
6k views

Sticky sessions based on a cookie using nginx

Currently, we are using apache2 as frontend, and tomcat as backend. We are using mod_proxy_balancer and AJP. Also we are using stickysession by JSESSIONID cookie: <Proxy balancer://backend> ...
2
votes
1answer
252 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
195 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
206 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
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 ...