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
28 views

Multiple Tomcat Processes, due to NIO?

Because we are using WebSocket, we asked our Sysadmin to re-configure our Tomcat (tomcat7) instances to run with NIO (as per Apache's recommendation). Shortly thereafter, Sysadmin reported that ...
0
votes
0answers
14 views

Cannot expose Java Instrumentation for tomcat jvm

I am using a tomcat7 instance to run a Java application. My application needs the Java instrumentation exposed. This is done with a javaagent and I pass the agent at startup to the JVM in the setenv....
0
votes
0answers
31 views

How do I log the IP address a request was received on in Tomcat?

A bit of background I have a server with 3 IP addresses and 3 <Host> elements defined in the server.xml. I'm using IP-based virtual hosts. I have enabled the Access Log Valve on each Host, ...
1
vote
0answers
23 views

socket_keepalive configuration for mod_jk

I have Apache httpd with mod_jk. I have issue with killed connections after long idling period: Apache stops to respond and each HTTP request hangs for 15 minutes. I tried turn off mod_jk connection ...
2
votes
1answer
542 views

Artifactory behind Nginx without directory /artifactory in the url

On our old server (hosted), Artifactory was running behind an Apache proxy. The public url was http://repo.example.com/ Our hosting provider moved us to a new server. A new version of Artifactory ...
2
votes
1answer
45 views

How to reduce “Connecting” time incurred for a request

I am trying to optimize speed of website and during this process I have found that. A connecting time of around 620ms is incurred everytime I request a page. Please see screenshot below for detailed ...
0
votes
1answer
139 views

Nginx Reverse Proxy To Tomcat

I have setup an Ubuntu 15.10 x64 server on DigitalOcean to test several Java applications. I installed Nginx 1.9.3 and Tomcat8 and am using Nginx as a reverse proxy to forward all requests to Tomcat ...
1
vote
1answer
26 views

Tomcat SSL not available outside

I do have a Tomcat8 server running, currently in the development environment. It's been working for a while on the port we have picked (8085) and was available outside of our network (unblocked on the ...
0
votes
1answer
87 views

Apache Web-server, Tomcat : Changing load-balancing configuration so one Tomcat instance is in cold-standby

I have a load-balancing and fail-over setup configured on our Debian X64 based server. Right now, I have 2 Tomcat instances which are in load-balance and fail-over and running all the time. The ...
0
votes
1answer
16 views

Dns records, and tomcat on loadbalacing

I have 2 Dns servers (Debian) configured using bind9 and a loadbalancer managing 2 tomcat webservers, My question is Should i put dns entries of the 2 tomcat webservers, or i just have to put the ...
0
votes
0answers
34 views

Errors Running WebGoat 7 on Tomcat

I am trying to run WebGoat on a standalone Tomcat7 server. I placed the "webgoat-container-7.0.1.war" in the Tomcat directory and renamed the file "WebGoat.war". The initial landing page, "http://10.1....
0
votes
0answers
35 views

Deploying Java application on Tomcat 7 with Context Versioning

I am working on an API that is built on top of the Spark mini-framework (http://sparkjava.com/) Whenever I build a package through Maven, which is then uploaded to the webapps/ folder under Tomcat 7. ...
-2
votes
1answer
28 views

Installing self-signed certificate on tomcat

down vote favorite The question: I have an application running under tomcat which calls another application under the same tomcat via a gateways which has a self signed SSL certificate installed. When ...
0
votes
0answers
15 views

Tomcat 8 debug enable on EC2 instance

Im trying to debug my war application on EC2 instance of amazon. Amazon provides own tomcat where the structure inside folders is different. As before I tried creating the setenv.sh in the bin ...
6
votes
3answers
12k views

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 ...
0
votes
0answers
48 views

Tomcat access log - body of a request shows in the next request

I have a weird behavior in my tomcat (7). An external app sends a bunch of DELETE requests with a body to my TomCat WebApp. The body is being neglected in the webapp (I dont know why the app sends ...
3
votes
3answers
4k views

mod_jk produces Error smh errno=13

I am trying to use mod_jk for load balancing. Loadbalancer: 172.17.8.189 (HTTPD+mod_jk) Node1: 172.17.8.193 (apache tomcat instance 1) Node2: 172.17.8.196 (apache tomcat instance 2) I checked my ...
2
votes
0answers
36 views

ELB to tomcat https redirecting to http

So we have tomcat servers behind a AWS ELB. Everything is working fine with https except if we manually type in this address: https://example.com/web/ This works fine... https://example.com/web ...
0
votes
2answers
126 views

Name [ ] is not bound in this Context. Unable to find [jdbc] Tomcat Issues

I just created a fresh Oracle Linux 7 VM with Tomcat 7 and Java 8_40. I've created several servers with Apache and Tomcat before, but never connecting to databases before. SELinux and firewalld are ...
35
votes
4answers
43k views

What's the maximum URL length in Tomcat?

And is it configurable? Can I set up Tomcat so that a URL with, say, 200K of query params goes through successfully to the contained servlet? Yes, I know one should use POST when you have lots of ...
0
votes
2answers
3k views

Keytool ServerAlternateName

I'm trying to get the certificates just right for our Jira/Confluence deployments in house. People access them differently, either from the hostname or the FQDN. I'm using Java 7's keytool so I have ...
0
votes
1answer
13 views

How to point domain to an web aps inside a Tomcat instance?

I have a problem, many days I can't resolve. 1. I have 1 VPS CentOS x64, 768 MB RAM, host at vultr.com, IP 45.32.45.204. 2. I have 1 website active codingvn.com (I use script to point domain to web ...
-2
votes
1answer
39 views

Communication from Tomcat to Apache Web Server

I have deployed my application in Apache Tomcat, and I am using Tomcat as a standalone web server. Now from my application, I am sending request to a plugin which is in Apache Web Server for getting ...
0
votes
2answers
48 views

Prevent monit from checking while restarting

We have the following monit config which restarts tomcat if unable to connect to it: check host Tomcat-Foo with address localhost stop program = "/usr/bin/systemctl stop tomcat.service" start ...
1
vote
1answer
572 views

What's the redirect port for in Tomcat?

It's hard to make sense of tomcat documentation and looking at server.xml you will find a salad of ports that may be hard to understand because it's not really explained properly, or extensively, in ...
1
vote
0answers
41 views

AWS ELB is adding http absolute path

We have tomcats running a Spring Security webapp. The https is terminated at the ELB (443), then forwarded to tomcat on 8080. However, when we log in, a successful login redirects us to /welcome....
14
votes
8answers
32k views

Apache Tomcat chokes after 300 connections

We have an apache webserver in front of Tomcat hosted on EC2, instance type is extra large with 34GB memory. Our application deals with lot of external webservices and we have a very lousy external ...
0
votes
3answers
39 views

Cannot connect on open port

I just installed Jira with embedded Tomcat, which runs on port 8080. I gave iptables -I INPUT -p tcp --dport 8080 -j ACCEPT and netstat -tpln says: Active Internet connections (only servers) Proto ...
0
votes
0answers
65 views

How to disable cache of Apache Front of my Tomcat?

I put it at the end of httpd.conf and nothing changed: #Initialize mod_rewrite RewriteEngine On <FilesMatch "\.(html|htm|js|css)$"> FileETag None <ifModule mod_headers.c> Header unset ...
0
votes
1answer
25 views

Azure Virtual Machine Images Tomcat SSL

Here's the run by, yes I have done research on all of what I am about to say. I simply wish to summarize it and hope someone with knowledge on this can let me know if something is wrong with my plan ...
0
votes
1answer
80 views

HTTPS not working on Tomcat 7

I am trying to add ssl configuration in tomcat 7 in ubuntu 11.10 but it is not working and there are no errors in logs. I added in server.xml this: <Connector port="8443" protocol="HTTP/1.1" ...
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 ...
0
votes
0answers
63 views

opengrok: HTTP Status 404 - /source/s when trying to open .cpp file via an xref

Suppose I'm looking at the .cpp file's source code in the web browser. Now, I want to review the .h file included with #include in this cpp. I'm clicking on the header's file name and instead of ...
1
vote
2answers
23 views

Creating local self-signed Certificate for user 'tomcat'

When I installed Tomcat 8 on my Ubuntu 15.04 I used the following command to create the user "tomcat": sudo adduser \ --system \ --shell /bin/bash \ --gecos 'Tomcat Java Servlet and JSP engine' ...
1
vote
1answer
27 views

Small queries wait for large queries to resolve MYSQL PHP on Centos 6.5

I have a Centos 6.5, and I'm running Vaadin on Tomcat, This application has really heavy queries for reports and stuffs. My problem is, when I'm connect to MYSQL from PHP, when I made a small query, ...
4
votes
4answers
18k views

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 ...
0
votes
1answer
190 views

Apache forward JSP pages to Tomcat?

I have an Apache Server, in which my website running. But there are some JSP pages in my website. I have to forward my JSP pages and servlet to Tomcat. How can I make that possible?
0
votes
0answers
26 views

Deploying a SOS WAR file gives me a 404 Status Code on Tomcat?

I am trying to deploy a SOS WAR file from 52 north into the Tomcat, I put this WAR file in the webapps folder, but I got a 404 Status code, and I don't know how to solve this problem now. Is there ...
1
vote
1answer
2k views

Apache mod_proxy_balancer + Tomcat load balancing - Should not redirect until web applications are ready

I am using apache2 mod_proxy and mod_proxy_balancer to balance the load to 4 seperate tomcat8 instances on different servers. I am using different AJP ports for each tomcat instance and using jvmRoute ...
0
votes
1answer
336 views

How to deploy a Tomcat application with Manager URL API when using custom context XML

My application context is defined as an XML file located in my/path/to/Tomcat/conf/Catalina/localhost/my-app.xml. <Context docBase='/my/path/to/myApp/myAppWarFile.war'> <Environment name='...
0
votes
0answers
21 views

Tomcat requested resource not available error even though file present

I have a dashboard that is hosted on an apache tomcat server on a centos machine. I kept the files that needed to be downloaded onclick in the following path project_name/resources/filename So ...
0
votes
0answers
19 views

Tomcat 7 auth constraint role name active directory

I integrated waffle into my tomcat 7. I need to define the users in the active directory group that can visit the site, web.xml looks like: <security-constraint> <display-name>not ...
0
votes
0answers
101 views

http_process_state_prepend - Invalid action:0x109010 (Server side:

I am getting a blank page on my Web App which is running with F5 & apache + Tomcat backend. I am getting intermittent errors in the F5 logs like belw http_process_state_prepend - Invalid action:...
0
votes
2answers
96 views

Apache 2.2 reverse proxy connection to tomcat hangs then returns 502 Proxy Error

I am running: Apache/2.2.15 (Unix) on CentOS release 6.6 (Final) I am running a reverse proxy that forwards requests on to a tomcat server running on localhost:8080. My config looks like this: <...
0
votes
0answers
84 views

Tomcat 8 / Websockets mod_proxy_wstunnel / Bitnami

I guess this is more of a configuration question, I understand what I'm trying to do, but I am a bit unfamiliar with the way Bitnami Tomcat configuration is laid out. I see that the module I need is ...
1
vote
1answer
1k views

starting tomcat remotely fails to start

When I run my start command via ssh it tells me that its started but it is in fact not the case. Catalina logs does not seem to capture any events either. However stop and status works. ssh -t ...
0
votes
1answer
146 views

Locked Out of Tomcat Periodically

Every few days my tomcat application breaks down. I can make requests but anything requiring access to the mysql database returns an error. I checked catalina.out and am seeing a lot of these: Jan 26,...
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 ....
0
votes
0answers
49 views

Tomcat: Redirect 403 to 404

I am running Tomcat 8.0.30, and want to redirect all requests that result in a 403 (Forbidden) to 404 (Not Found). The idea is that if someone uses something like DirBuster, it will look like any ...
1
vote
0answers
163 views

ERR_SSL_VERSION_OR_CIPHER_MISMATCH

I have set up my SSL configuration in an Azure Ubuntu VM using Tomcat8. The service seems to be running on port 8443. I have created an endpoint on Azure from public port 443 to 8443. However, when ...