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

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
1answer
4k 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
3answers
939 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
12k 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 java.net....
2
votes
2answers
682 views

Tomcat crashing after a few hours

I'm running a CentOS 6.5 64 bit OS with Tomcat and one web application. I use Apache (httpd) as a reverse proxy (ProxyPass) to the application. Until recently, it (Tomcat) has been running fine ...
2
votes
2answers
5k 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
4k 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: -Dcom.sun.management.jmxremote....
2
votes
2answers
5k 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
4k 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
3answers
10k 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
1answer
559 views

Cannot use relative links in my tomcat development environment

I'm developing a web-application with tomcat. In the dev env, the application's root address is localhost:8080/myapp/. In production, the root address is www.myapp.com/. When I use a relative link in ...
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
2answers
4k 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
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
15k 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
4answers
1k views

Can a naughty database app crash tomcat?

We've got a number of web services running through Tomcat which use hibernate/mysql. I suspect that some of them have incorrectly configured connection pools, as after several hours some of the ...
2
votes
1answer
98 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
4answers
3k views

Make Tomcat use X-Real-IP

I'm configuring nginx as a reverse proxy in front of Tomcat 7. I added the following lines to nginx configuration: set_real_ip_from 127.0.0.1; ... location / { proxy_pass http://tomcat; ...
2
votes
2answers
2k views

Apache / Tomcat port information

I have few questions regarding the Apache HTTPD server and the Tomcat web server port configurations. Through netstat and TOMCAT/conf/server.xml I understand that: 80 and 443 ports are used by ...
2
votes
2answers
1k 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
9k 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 host-...
2
votes
2answers
238 views

Different memory consumption with similar configurations

I have two different tomcat 7 instances on two different servers (oracle jdk7) with nearly equal hardware configuration (both > 24 GB RAM). Both tomcat servers have the same configuration and the same ...
2
votes
1answer
7k 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
268 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
204 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
2answers
7k views

Tomcat: deleting content of “logs” and “tmp” directories

I have noticed that "logs" and "tmp" content take 36GB and 21GB respectively. I need to free up some disk space and currently wondering is it vise to clean them. Thanks!
2
votes
2answers
210 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
1k 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
7k 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
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
3answers
7k views

Passing IP address with mod_proxy

I have Apache with mod_proxy passing requests to Tomcat. The trouble is, when I get client IP address associated with a request in web app hosted on Tomcat, it always returns 127.0.0.1. Is it ...
2
votes
2answers
664 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
2answers
2k views

How much memory would Tomcat need?

I have currently a Linux Server with Java 1.6 and Apache Tomcat/6.0.18 with 512 Mb memory. I am currently hosting one webapp but I plan to move three more applications to this Tomcat instance. My ...
2
votes
1answer
347 views

Connections Timed Out - Tomcat

I'm having a problem with Tomcat: On a clean install, connecting to [ip-address]:8080 times out. I have seen many similar questions and tried basically everything there, with no success. But here is ...
2
votes
1answer
3k views

Tomcat 8 hangs on startup while deploying webapp. Possibly related to entropy generation

I'm trying to get a tomcat webapp started and while just testing out the server (vanilla tomcat8 download) it seems to be hanging on startup. My guess is that it is hung up on something dealing with ...
2
votes
1answer
8k views

mod_proxy_ajp (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header

I am using mod_proxy_ajp with Tomcat and I receive the following error: (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header How do I fix this?
2
votes
1answer
5k 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
4answers
23k views

How to redirect tomcat console log to files? Tomcat started via windows bat

When tomcat started as service it put his output log in \logs\stderr.log \logs\stdout.log How to write this log files when tomcat started as bat in windows? PS. tried to start tomcat with call ...
2
votes
2answers
171 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
11k 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
809 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" ...
2
votes
2answers
224 views

Which version of Windows Server 2008? [duplicate]

Possible Duplicate: Can you help me with my software licensing question? One of the projects I'm working on is looking like we're going to need to migrate from CentOS 5.4 over to something ...
2
votes
1answer
2k views

Where does Tomcat cache my taglib .jar files?

I'm deploying a .jar file to a tomcat instance (we're running 6.0.18 on Redhat linux) and according to the log output the old .jar is still being used. I've restarted everthing I can think of, have ...
2
votes
2answers
2k views

Is it possible to restart Tomcat via web interface

Is it possible to restart tomcat via some kind of administration tools. I would like to restart tomcat remotely via an administration tool that is accessible via web? If yes could you point me to some ...
2
votes
1answer
103 views

Tomcat Parallel Deployment, automatically undeploy old applications

I've been using Tomcat 8's Parallel Deployment as part of a zero-downtime continuous deployment setup for a while now. When the test gauntlet has been run, the CI server automatically renames the ....
2
votes
1answer
3k views

WARNING: None of the ciphers specified are supported by the SSL engine

I have a working web service running through Apache Tomcat 7 with the following connector element in server.xml: <Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol" ...
2
votes
1answer
195 views

How to find the JVM version that ran Apache Tomcat from its logs?

I have a Tomcat log directory with very many log files in it. I want to determine which JVM was running this Tomcat. I could not find anything in the logs I lessed and I do not even know if it's ...