Questions tagged [tomcat]

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.

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed under the Java Community Process. Apache Tomcat is developed in an open and participatory environment and released under the Apache License version 2.

The Tomcat projects started at Sun Microsystems as the reference implementation of the Java Servlet and Java Server Pages Specifications. The Java Community Process (JCP) site contains all the details of those specifications.

The Tomcat code base was donated by Sun to the Apache Software Foundation in 1999, and the first Apache release was version 3.0. Since then, multiple volunteers from Sun and numerous other organizations have contributed to the product. There have been multiple major releases and the product has enjoyed considerable industry adoption as well as a healthy and active community. Each major release is aligned to a version of the Servlet Specification.

In 2005, Tomcat became its own top-level Apache project, leaving the Jakarta umbrella and oversight structure to manage itself.

2232 questions
10
votes
5 answers

What steps should I take to secure Tomcat 6.x?

I am in the process of setting up an new Tomcat deployment, and want it to be as secure as possible. I have created a 'jakarta' user and have jsvc running Tomcat as a daemon. Any tips on directory permissions and such to limit access to Tomcat's…
Peter Sankauskas
  • 698
  • 6
  • 11
  • 21
10
votes
7 answers

Tomcat won't start - how to check that port 8080 is not in use

Tomcat won't start, and it has worked perfectly before. I suspect something else is running on port 8080. I am running Windows Vista. How do I check that nothing else is using port 8080? I have recently downloaded several versions of Jetty. Could…
Ankur
  • 2,379
  • 7
  • 22
  • 24
10
votes
3 answers

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 match directory-structure used on my…
Mnementh
  • 1,125
  • 2
  • 11
  • 18
10
votes
6 answers

How to compress and clean logs with logrotate but not rotate them

I have a Tomcat server which create access logs via a valve (org.apache.catalina.valves.FastCommonAccessLogValve). This valve takes care of rotating the access log file, but not of compressing them or deleting them after some time. For the moment,…
Guillaume
  • 1,063
  • 5
  • 12
  • 24
9
votes
1 answer

Disable stacktraces in Tomcat's error pages to make it ready for production

I am running a Tomcat on AWS. The problem is that when a request crashes with an exception, Tomcat not only sends the 503, but also sends the exception's stack trace in HTML. This exposes my source code to a viewer who doesn't need to see it. How do…
f.khantsis
  • 331
  • 3
  • 6
  • 13
9
votes
1 answer

SSL setup with apache in front of tomcat

i m trying to setup Apache with SSl and proxy SSL requests to my tomcat instance. I think i made the SSL work but theres still a error that shows up: Bad Gateway The proxy server received an invalid response from an upstream server. * SSL…
SaifDeen
  • 193
  • 1
  • 1
  • 5
9
votes
1 answer

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 proxying to only the '/apps/' part of the URI space, and…
rvdb
  • 319
  • 1
  • 5
  • 14
9
votes
2 answers

Can't connect to Tomcat even though it's running

I've tried to install Apache Tomcat 5.5 and 6 in 2 different ways (from source and with apt-get) on Debian 5 and Debian 6 -- no success. The server is running but I can't connect to it. netstat -a: Active Internet connections (servers and…
ᴍᴇʜᴏᴠ
  • 577
  • 1
  • 6
  • 20
9
votes
3 answers

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 to pick up the wrong value for JAVA_HOME - it…
andygeers
  • 373
  • 2
  • 4
  • 10
9
votes
2 answers

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 uses an internal Certificate Authority (CA) for…
Kirk Liemohn
  • 593
  • 3
  • 8
  • 18
9
votes
2 answers

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 should start downloading the file. But in reality I get…
Ankur
  • 2,379
  • 7
  • 22
  • 24
9
votes
5 answers

Tomcat 6.0 service does not start: java/lang/NoClassDefFoundError

I installed Tomcat on my Windows server but I can't get it to start. I start the service and I see the progress bar, but it fails. I installed the Java Runtime Environment Version 6 and created JRE_HOME Environment variable. (C:\Program…
James Lawruk
  • 617
  • 2
  • 10
  • 18
9
votes
4 answers

JVM Memory Consumption

I am trying to run tomcat on a low memory system (150-256Mb). Even though I start the JVM with -Xmx64m (which should be the default anyway), the process immediately takes up 200Mb+. I wonder why the JVM needs so much memory itself, or if there is a…
Draemon
  • 527
  • 1
  • 5
  • 15
9
votes
1 answer

selinux is preventing from execute access on the file centos

I want to launch the Tomcat service on CentOS with the cmdlet : systemctl start tomcat.service but i get the error Failed to start Apache ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=203/EXEC). and the log through the command …
welwelwel
  • 99
  • 1
  • 1
  • 7
8
votes
2 answers

systemctl complains about no installation config, but it exists

While following this tutorial on installing tomcat on CentOS I came across a problem executing the line sudo systemctl enable tomcat - it complains with the following error message: The unit files have no installation config (WantedBy, RequiredBy,…
corsiKa
  • 383
  • 1
  • 8
  • 19