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

0
votes
1answer
4k views

Standalone tomcat 5.5 can't access other than on localhost

Clean install of Tomcat 5.5. I know it's older, but the webapp I am needing does not support newer versions. I can access it just fine using localhost, but I can't get to it from a remote computer. ...
0
votes
1answer
750 views

Change Tomcat port to 80 with Apache?

I have a VPS that had Apache. Later Tomcat was installed with the cPanel EasyApache thing. JSPs will work as Mysite.com/file.jsp or mysite.com:8080/file.jsp. However, JForum uses web.XML to map some ...
0
votes
2answers
1k views

How do I install and run Tomcat on port 80 as my only web server? (Rooted Ubuntu box)

tl;dr - I have a rooted linux box that I want to run tomcat on as a server (No Apache Web Server) how would you set this up avoiding common security pitfalls? I've written a Grails App that I want to ...
0
votes
1answer
970 views

How to use mod_proxy to let my index of Apache go to Tomcat ROOT and be able to browse my other Apache sites

I am trying to use my Tomcat application (deployed at ROOT) to be viewed from Apache port 80. To do this, I used mod_proxy, since mod_jk made me try harder. I used sth like this in httpd.conf: ...
0
votes
6answers
18k views

How do I remove the port number from Tomcat urls?

I have Groovy on Grails app deployed on Tomcat/Apache (CentOS). Currently, it is accessed via a URL like http://www.domain.com:8080/AppName. I would like to access it via http://www.domain.com. How ...
0
votes
1answer
8k views

Tomcat 6 on Centos 5 - only RPMs

I'm going through the exercise of setting up Tomcat 6 on CentOS 5 using RPM packages. Right now I'm stuck with old versions of tomcat5-jsp-2.0-api and tomcat5-servlet-2.4-api-5.5.27-7.jpp5, since they ...
11
votes
2answers
3k views

Disallowing HTTP methods on Tomcat is case sensitive?

I have put the following in the web.xml of my application to attempt to disallow PUT, DELETE, etc.: <security-constraint> <web-resource-collection> <web-resource-name>restricted ...
9
votes
6answers
14k views

How to block access to a file from being served by Tomcat?

We have a few tomcat servers and we just discovered that some files that we don't want public to have access to those files. To exemplify: Let say we have a folder /var/www/html/ that we are ...
3
votes
2answers
584 views

tomcat6 behind xinetd - real client ip

In server.xml, at the Connector I specify proxyPort as 80. Here's the xinetd service: service http { socket_type = stream protocol = tcp user = tomcat6 ...
3
votes
2answers
12k 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 ...
3
votes
4answers
2k 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 ...
3
votes
3answers
1k views

Directing DNS to different ports

Greetings all, I have a server with two tomcat services (one being run on port 80, the other 8080). What I'm wanting to achieve is to have two different DNS records for these two ports, so they'll ...
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
1answer
2k views

Allow traffic on one port from one IP address with iptables

I am using the following iptables rule to try allowing access to port 8080 from one IP address: iptables -A INPUT -s 12.34.56.78 -p tcp -m tcp --dport 8080 -j ACCEPT However, this rule isn't ...
2
votes
2answers
14k 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
3answers
3k views

Replace single file on tomcat-deployed war

I'd like to know how to configure tomcat 6 in order to be able to replace a file from a war - for instance an image or a jsp - so I don't need to restart the server to keep it updated. I assume I'll ...
2
votes
2answers
2k views

JSP / Tomcat / Apache setup overview on Fedora Core

For someone with so much Java experience, boy do I feel clueless - thanks in advance for your help in my grocking the present (Feb, 2010) JSP environment. Here's what I am hoping to learn: Do I ...
1
vote
1answer
41 views

Connect to a Tomcat Server from nginx as reverse proxy

I have a Tomcat server serving a web application and I have a Nginx server running in front of it as a reverse proxy. As an answer to my earlier question (Tomcat server behind nginx reverse proxy - ...
1
vote
1answer
295 views

Tomcat solution on https://weakdh.org has typos?

Do the non-GCM ciphers listed for the Tomcat fix on https://weakdh.org/sysadmin.html have typos? Under "Apache Tomcat" heading and below the text "In the server.xml file (for JSSE)" there is the ...
1
vote
3answers
1k views

HOWTO run Wordpress site along with Tomcat web aplication on the same server

I am building a solution where the CMS part of the site (i.e. About US, Contact etc) will be run on Wordpress & the private pages will be a Java-Servlet based stack run on Tomcat 7. Both of these ...
1
vote
1answer
1k views

gzip compression using mod_deflate apache with tomcat

I'm trying to enable gzip compression in my Apache server which is fronting a Tomcat instance using a connector. I tried several variants of the module configuration settings in my httpd.conf. Here is ...
1
vote
1answer
1k views

AWS: network ACL blocks outbound traffic

I am implementing a REST service in Amazon AWS. The internal servlets listen on numerous ports like 8080 and 9000, and an Apache configured as a reverse proxy serves them with proper URL schema using ...
1
vote
1answer
59 views

Hosting 2 versions of the same Java website in tomact

I have a website set up in a unix server. I work in a team with two more developers who also work on the website. The requirement is running two or more versions of the same site from two different ...
1
vote
1answer
404 views

Tomcat Workers - Connecting Tomcat and Apache

I'm trying to resolve an issue about connecting Apache-HTTPD and Tomcat with mod_proxy_ajp. From reading I found that the problem might be the number of workers in HTTPD and Tomcat. So I try to find ...
1
vote
2answers
934 views

How to read the scale of the munin monitoring system, tomcat accesses by day graph

The tomcat accesses by day graph in munin has a y axis that shows "accesses / second", and currently shows "66 m". It can't be 66 million accesses per second, a single server couldn't return that ...
1
vote
2answers
432 views

Application Server vs. Web Server?

I asked my teacher in class that Java Server Faces will work on Apache Tomcat. But he then corrected me saying that Tomcat is a Web Server not an Application Server, hence it will not run Java Server ...
1
vote
4answers
958 views

What's a good setup for running Java and PHP applications with SSL on the same server?

I have one Java- and one PHP-application which I both want to run on the same machine (using Tomcat). As far as I can see, I have two options: Option 1: Do the classic apache-tomcat setup with ...
1
vote
2answers
10k views

Custom error pages on Apache Tomcat

I'm running an Apache Tomcat server with 2 custom servlets. The tree structure looks like: $CATALINA_HOME/webapps/ ROOT/ WEB-INF/ servlet1/ META-INF/ ...
1
vote
2answers
1k views

Tomcat Custom MBean

Does anyone know how to deploy a custom MBean to Tomcat? So far I`ve found this http://www.junlu.com/list/3/8871.html. I copied my jar with my MBean to Tomcat lib directory so the Custom class loader ...
0
votes
1answer
47 views

Tomcat server behind nginx reverse proxy - how to block direct access to the server?

This may be a noob question but I'm still learning about web servers and reverse proxy setups. I have two servers running on the same network - one Tomcat and another one Nginx which I intend to use a ...
0
votes
1answer
142 views

Apache not proxying HTTPS requests to tomcat

Centos 7, Apache 2.4, TomCat 7.0.52, Java 1.7 I am trying to configure Apache to proxy a tomcat server (running Jira / Confluence) using HTTPS: (HTTPS:443) -> ApacheServer -> (HTTP:8090 or ...
0
votes
2answers
1k views

EC2 instance running apache tomcat not accessible from outside

I have a 64-bit amazon linux instance in aws. I am running apache tomcat6 running on that machine. sudo fuser -v -n tcp 8080 USER PID ACCESS COMMAND 8080/tcp: ...
0
votes
2answers
34 views

Hide/mask tomcat from open access

How to mask tomcat app adress from public access easily. Let's say we run it on default port 8080. So myapp.com:8080 is easy to scan, whatever port we use it's no problem. Lockoutrealm that tomcat ...
0
votes
2answers
821 views

Tomcat and IIS 7 both on different ip's and different ports

I have Tomcat and IIS 7 installed together on a Windows 2008 server. The machine has two IPs (134.133.1.1 and 134.133.2.2). I want Tomcat to handle 134.133.1.1, on port 80, and IIS to handle both ...
0
votes
1answer
187 views

tomcat webapp context alias

I want to make a webapp running in a tomcat available under multiple contexts. http://localhost:8080/foo should also be available under http://localhost:8080/bar but I do not want to have a ...
0
votes
2answers
307 views

Tomcat running but not opening any ports and don't log anything

I have installed tomcat6 on Debian and it was running properly after installation from apt-get, but not after restart. I launch by /etc/init.d/tomcat6 start (or restart), but netstat do not show ...
0
votes
1answer
929 views

solr core reload without an tomcat restart

I want to really often the synonyms_*.txt in the solr server. I have 2 cores. One for the production System and one the staging. I copy with incron and scp the new generated synonymes to the solr ...
0
votes
2answers
429 views

Railo-Tomcat on existing Apache PHP server

I need to run ColdFusion apps on my existing PHP server (Linux). I installed railo with tomcat on the server, but Railo is hogging all the traffic. I want it installed such that only requests to files ...
0
votes
1answer
628 views

Question about the syntax of the ProxyPass directive

All over the internet I see examples of people using ProxyPass, where the syntax looks something like this: <Location /> ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ...
0
votes
1answer
2k views

How to redirect traffic on port 80 to Tomcat port 8080 whilst still allowing the server to send/receive on port 80

I have a web application running on a Linux box using Tomcat6. I have setup port forwarding so that any requests on port 80 get redirected to port 8080 which works fine. The problem I have is that ...
0
votes
1answer
746 views

tomcat6 maxThreads property ignored

Hi in tomcat6 server.xml I have one connector for catalina service. And I set maxThreads=5: <Service name="Catalina"> <Connector port="8090" maxThreads="5" protocol="HTTP/1.1" ...
0
votes
1answer
2k views

Tomcat Apache not working on Win7

I have installed Tomcat Apache 6.0 onto my system after downloading it from http://tomcat.apache.org/download-55.cgi using the Windows installer I install the system. But after successful ...
0
votes
1answer
629 views

delay on tomcat writing to logs in windows server 2008

I recently moved a tomcat app from tomcat 5 on windows server 2003 to tomcat 6 under windows server 2008. Now there is a delay writing to the log files. This is for both stdout and acceess logs. For ...
0
votes
2answers
4k views

Tomcat behind Apache httpd with SSL and client-certificates

I try to evaluate a infrastructure for a customer on my local win32 machine. The infrastructure should be based on a j2ee webapp running on a tomcat (6.0.20+), behind a secur apache httpd ...
0
votes
3answers
3k views

Can not connect to tomcat server externally, [closed]

My Tomcat server is running on virtual server, this server is running on fedora machine. I have setted up everything on this machine to run tomcat, tomcat working well on local host. but i can not ...
0
votes
2answers
4k views

Increasing Java's heapspace in Tomcat startup script

I want to increase my heap size when using Tomcat. I was told to add this line export CATALINA_OPTS=-Xms16m -Xmx256m; In to the startup.sh script - I did so (at the beginning) but got the error ...
0
votes
2answers
2k views

Running two independent tomcats on one machine, instead of one tomcat with multiple instances

due to operational need following is the scenario. Two applications running on one machine, operating system is Windows 2003 standard server edition. Application A comes packaged with tomcat ...
0
votes
3answers
812 views

Filesystems for webserver with SATA and Solid State disk,

We have just ordered a new webserver with 120 Gb solid state disk and a SATA disk. I am trying to plan ahead what sort of filesystem to use. This system will be running Linux, Apache/Tomcat to host ...