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
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
728 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
3answers
5k 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
219 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
1k 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
1k 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
36 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 ...
2
votes
1answer
364 views

Log warnings and errors only in Tomcat

I'm running an instance of Apache Solr with Tomcat 6. The scripts I used for installing configured Tomcat to log "everything" which means that it generates huge logfiles because every query etc. is ...
2
votes
2answers
137 views

http in the Location-header when the original request was made over https

I am currently implementing https on our production environment, but I am scratching my head over a little thing here. SSL is terminated in the load balancer and the flow in our stack is basically ...
2
votes
1answer
254 views

Will Tomcat 6 cache across Webapps?

I have a Tomcat 6 server on an Ubuntu 12.04 server with 4GB and the following JAVA_OPTS JAVA_OPTS="-Djava.awt.headless=true -Xms512M -Xmx512M -XX:PermSize=1024M -XX:MaxPermSize=1024M ...
2
votes
2answers
213 views

Archetypical user setup for capistrano to tomcat deployment on Linux box

I'm relatively new to the CD and DevOps topics and I am trying to setup automatic deployments with capistrano, which works well on my local add hoc test environment. I wonder however how one would ...
2
votes
2answers
2k views

Nagios check_http - checking tomcat application status with regex & linespan

I wan't to check with our Nagios if a webapplication is running on Tomca7. I decided to use the check_http plugin with regex. I'm parsing the status-page of tomcat and check if column "Running" is ...
2
votes
1answer
2k views

Create tomcat war file from static web dir

I created a simple web application that consists of a dir with html, css, js. No server code. For reasons complicated to explain, my administrator insists on turning it into a .war file, so that it ...
2
votes
1answer
82 views

Can a working Tomcat 6 webapp be turned into a usable .war file?

Problem: I have a working webapp on a FreeBSD 8.1 Tomcat 6 test server that I need to move to a production system. The developer who last touched it (and had root on that server) has moved on and ...
2
votes
1answer
641 views

Download deployed Apache Tomcat .war file

I am a Apache Tomcat newbie and about to deploy an upgraded version of a Spring MVC application (compiled to a .war file) on an Apache Tomcat/6.0.28 server, using Tomcat Web Application Manager. ...
2
votes
1answer
2k views

IIS 7.5 and Tomcat Setup: Error 500.19

I am setting up a 64-bit IIS 7.5 / Tomcat 7.0.26 server and I have received the following errors when I navigate to http://localhost - Error Summary HTTP Error 500.19 - Internal Server Error The ...
2
votes
1answer
287 views

Tomcat Solr times out

(Plesk 10.4 centos 5.8 linux apache2 server, with Tomcat5 on port 8080 and Apache Solr) I get "The connection has timed out" on requesting domain.com:8080 or www.domain.com:8080 or ip.ad.dr.ess:8080 ...
2
votes
1answer
2k views

Tomcat 7.0.22 Windows service breaks with JRE update

If JRE update is run without first manually stopping the Tomcat service, Tomcat will no longer start after the next time it is stopped. This most often happens after rebooting per the JRE installer's ...
2
votes
1answer
176 views

Tomcat server startup script fails in Linux

Getting below exception while executing startup.sh for Tomcat. Please help me to resolve Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object I'm using RedHat ...
2
votes
1answer
361 views

Benefits to defining multiple AJP connectors in tomcat?

Is there any reason to define multiple AJP connectors in tomcat? Is it wasted resources by doing so?
2
votes
1answer
8k views

Load Balancing and Clustering using mod_proxy_ajp on Apache HTTP Server 2.2.21 and Tomcat 7.0.23

I've been struggling to make load balancing and clustering working using these combination: Apache HTTP Server 2.2.21 (httpd-2.2.21-win32-x86-openssl-0.9.8r) using mod_proxy_ajp with sticky session ...
2
votes
1answer
4k views

Configure tomcat 7 with netbeans on ubuntu

How can i configure tomcat 7 to work with netbeans. Looking around various forums, it appears ubuntu has an unusual installation pattern, but i cant find a definitive answer as to how i can get it ...
2
votes
1answer
2k views

Service 'tomcat7' is missing the ImageFile

I am trying to run the Tomcat as a service on and Windows server. If I run tomcat7.exe in the bin directory, I get the error "Service 'tomcat7' is missing the ImageFile". If I run startup.bat, ...
2
votes
1answer
82 views

Will JSP Modification remain after Tomcat restart?

A war file is deployed in Tomcat 6 on Solaris 10. antiResourceLocking is not set to true. A change is to be made to a JSP in the application folder(exploded from the war file). No restart is made. If ...
2
votes
2answers
50 views

I want people over my network to be able to see my local Tomcat session

In my previous job, I remember that if I launched tomcat, if someone else went to myname.companyName.com it would be the equivalent of me going to http://localhost:tomcatport but only if we were ...
2
votes
4answers
14k 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
4k views

Tomcat dying silently on regular basis

My tomcat (6.0.32, Java Sun 1.6.0_22-b04 on Ubuntu 10.04) keeps crashing multiple times daily without any specific output in catalina.out. This usually happens on high load (see top output). Update: ...
2
votes
1answer
288 views

Best Practice for Managing Tomcat Instances

We are in the process of moving our Java app servers from Resin to Tomcat running on RHEL4 - this is has been forced on us by changes adopted by our third party vendor. I want to make sure we are ...
2
votes
3answers
11k views

Can't auto deploy war in tomcat

I've been giving this thing a try for the last 3 hours and nothing. I need to drop a new war and have tomcat autodeploy it. It is not happening. Here is my simplified configuration: server.xml ...
2
votes
2answers
298 views

SuExec for Tomcat?

We're running a (cPanel/WHM based) server which contains mainly PHP applications. They are executed with the permissions of their owner with the suExec component of Apache. We're looking into moving ...
2
votes
3answers
10k views

Problem with tomcat and getLocalHost exception

I'm running a Linux server named S1 in a "cloud" server, and when tomcat 6.0.24 starts, I get the exception: org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed ...
2
votes
2answers
3k views

Hudson fails to start in tomcat5

Hudson is a continuous integration engine that runs as a Java Servlet in tomcat. https://hudson.dev.java.net/ I have Tomcat 5.5 successfully installed on my CentOS 5.3 system. I can see and interact ...
2
votes
2answers
295 views

Connecting Tomcat and IIS

When running on Linux I know how to connect Tomcat to Apache. But how is it done when running Windows and IIS?
2
votes
1answer
63 views

What's correct catalina_base path for Tomcat installed from the package?

I've the following manifest to configure Tomcat to use 8983 port instead: include java class { 'tomcat': install_from_source => false } tomcat::instance {'default': package_name => 'tomcat7'} ...
2
votes
1answer
402 views

mkdir: “no space left on device” on specific folders after Apache Tomcat reached max-file ulimit

The question: I have a tomcat running a java application that occasionally accumulates socket handles and reaches the ulimit we configured (both soft and hard) for max-open-files, which is 100K. When ...
2
votes
1answer
33 views

Tomcat installation, where to set environmantal variables?

I am working my way through the RUNNING.txt file for installing Tomcat. It says: (3.1) Set CATALINA_HOME (required) and CATALINA_BASE (optional) The CATALINA_HOME environment variable should be ...
2
votes
1answer
303 views

Tomcat network access using windows login credential

I have the strange issue with tomcat. I am using alfresco 4.2 e which uses tomcat. My system is Windows 7 Enterprise 64 bit . Alfresco uses network location of our server filer to store the files. ...
2
votes
1answer
174 views

Why does mod_rewrite not reprocess rewritten paths?

I'm doing a path rewrite to set and environment variable that will cause mod_jk to use a specific JBoss server. Works perfectly with any of the application paths. When I try our monitoring servelet ...
2
votes
1answer
676 views

Backporting tomcat7 for Debian squeeze

I am creating .deb installation packages for our software, which has a dependency on tomcat7. Unfortunately, this package is not present in Debian squeeze, which ships only with the package tomcat6. ...
2
votes
1answer
223 views

multiple instances of tomcat versus virtual host

All servers in my project are running multiple instances of tomcat. I personally feel this setup would cause a JVM overhead. Is there any advantage of running multiple instances of tomcat over using ...
2
votes
2answers
593 views

Gerrit ssh key setup on windows server

I am attempting to configure google's 'Gerrit' code review web app on a Windows server 2008 virtual machine on our internal network. We are using Apache Tomcat (6.0.36) to host the web app and have ...
2
votes
1answer
4k views

Keytool import certificate fails “Public keys in reply and keystore don't match”

I'm importing a SSL certificate to use in Tomcat in my keystore using keytool and it fails with "Public keys in reply and keystore don't match" Problem might be declared by the fact that I created a ...
2
votes
2answers
1k views

Tomcat connection errors with too many users

I am load testing an app that runs on Tomcat (6.0.33). As I increase the number of users I start to get connection problems. Here is what jMeter returns. I am pretty new to Tomcat, can anyone give any ...
2
votes
1answer
133 views

Tomcat 7: Include virtual host definitions from a directory?

I'm setting up a new Tomcat 7.0.33 server, and I'm looking for a simple way to include a directory full of virtual host definition XML files for configuration. I've found that it's possible to do XML ...
2
votes
3answers
2k views

Reboot if tomcat7 service is not responding

I am running a web app on a Tomcat server. There is a hard-to-detect problem within the server code that causes it to crash once or twice everyday. I will dig in to correct it when I have time. But ...
2
votes
2answers
1k views

Manually reload Webbapplication without Tomcat Manager possible?

I want to reload (or restart) one specific web application on an Apache Tomcat (6 or 7) server without Tomcat Manager or the automatic Reloadable attribute. Using the manager would give again another ...
2
votes
1answer
1k views

Tomcat 7 on Ubuntu 12.04 startup issues

I am having trouble getting tomcat 7 to start up on my new VPS. I am really scratching my head since I have done this often. So I'm thinking it might be the VPS. I just got a new VPS from CINFU. ...
2
votes
1answer
1k views

how to disable mod_jk log completely?

My mod_jk.log gets 2MB bigger in an hour and all it has entries like : [Mon Aug 13 10:51:28 2012] ajp13 www.my_site.com 0.690152 [Mon Aug 13 10:51:28 2012] ajp13 www.my_site.com 0.002675 [Mon Aug 13 ...
2
votes
1answer
548 views

how to configure SSL for a Tomcat web application hosted on Azure?

i need to enable SSL on a tomcat web application which is hosted on Azure. i managed to enable SSL on the standalone tomcat web app using this info: tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html ...
2
votes
1answer
4k views

Tomcat directly serve static (css, js) files shared by multiple applications

I'm using the ExtJS framework which has a bulk of js and css files that are used for all apps. I intend to share these between a number of web applications (different war files). For this reason I ...