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.
2,231
questions
2
votes
1
answer
2k
views
Should the maximum number of request threads be similar to the maximum number of database connections?
I have a spring boot application with an embedded tomcat server. The max-threads setting of tomcat is currently set to 250. Next to that the spring boot application also uses a MySql database as the ...
0
votes
0
answers
84
views
302 redirect in nothing with Tomcat and Nginx
I am creating an https connection to my WAR app at tomcat (localhost:8080/myApp).
Inside we have an Angular and Java app. I create nginx config and after review some similar questions here and here ...
2
votes
2
answers
9k
views
how to add tomcat to tomcat.service for systemctl startup
I want to write a systemctl deamon for my tomcat installation so I can start tomcat using below command
systemctl start tomcat.
Right now I am using the startup.sh script to start the Tomcat server. ...
0
votes
1
answer
4k
views
How to install/update/upgrade SSL certificate in Tomcat
I am about to install/update/upgrade a SSL certificate in one of the servers which has the following configuration
Server information:
Sever version: Apache Tomcat/6.0.35
OS version: Linux 2.6.18-371....
0
votes
0
answers
13
views
Config nginx proxy for tomcat app on Ubuntu [duplicate]
I have that config for nginx:
server {
listen 80;
server_name myDomain;
access_log /var/log/nginx/tomcat-access.log;
error_log /var/log/nginx/tomcat-error.log;
underscores_in_headers on;
if ($...
0
votes
0
answers
25
views
LDAP/S signing with jbossweb / tomcat55
To start applying some hardening group policies in my domain controller, I've set the "LDAP server signing requirements" DC policy to "Require signing".
After this, I have a ...
0
votes
1
answer
14k
views
Redirect tomcat default page to directly open application
I want to redirect tomcat to directly open my application. Example: http://localhost:8080/myapp should directly open as http://localhost:8080/.
I read various articles and solutions from the web and ...
0
votes
0
answers
20
views
Opening war file with Tomcat 10 on Debian 12
It's in webapps-javaee but says The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Localhost default Tomcat opens fine.
0
votes
0
answers
20
views
Tomcat Isapi Redirect crashes different app pools
I installed the ISAPI redirect dll on an IIS to access my tomcat application via the IIS and use its SSO.
I have installed it, using the official documentation:
https://tomcat.apache.org/connectors-...
0
votes
1
answer
4k
views
Verify client certificate CN in Tomcat(APR)
I'm running a tomcat installation with the APR libraries installed (with the OpenSSL HTTPS stack that comes with it).
What I'm trying to do is to lock a specific HTTPS connector down to users of a ...
0
votes
1
answer
8k
views
Tomcat authentification failed - 401 Unauthorized
I have an error when trying to access to Tomcat management console (Apache Tomcat/8.0.50).
WARNING [http-apr-8080-exec-7]
org.apache.catalina.realm.LockOutRealm.filterLockedAccounts An attempt
was ...
17
votes
5
answers
26k
views
Can Tomcat reload its SSL certificate without being restarted?
I have a background process that can update the keystore Tomcat uses for its SSL credentials. I would like to be able to have Tomcat reload this automatically without needing a manual restart.
Is ...
1
vote
1
answer
309
views
Tomcat Trailing Slash With Proxy Forwarding
I am running Tomcat 9 behind an Apache 2 server on Ubuntu 18. I am using a reverse proxy to send traffic to Tomcat with the following in the apache conf file:
ProxyPreserveHost On
ProxyPass "/" "...
1
vote
2
answers
2k
views
haproxy/apache/tomcat - no trailing slash results in a 301 redirection
I have this configuration in place:
haproxy(80,443) --> httpd(8443) --> tomcat(8096)
Going to https://websrv1/test will result in a 301 redirect to the httpd port for which
haproxy should be ...
1
vote
1
answer
4k
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='...
1
vote
2
answers
9k
views
Error deploying large WAR file on tomcat 9, at startup
JRE Version:1.8.0_191-b12
Tomcat version: 9.0.13
Windows 10
I have a large WAR file (300MB) several hundred of files, classes, struts actions etc.
When I start Tomcat 9.0.13 from a Windows Service I ...
1
vote
1
answer
18k
views
The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /abcef/report
I am getting below error while trying to do some access website url.
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request ...
2
votes
3
answers
50k
views
War deployed in Tomcat not showing up at URL, getting 404 instead
I have a web app which Tomcat says it has deployed, but when I go to its URL, I get a 404.
The war file is called sonar.war, and is deployed in WebApps. I can see in the logs that it is deploying (...
3
votes
2
answers
10k
views
IIS 7 + Tomcat 7 - how to reach http://localhost:8080/my_app under e.g. http://my_app.local
In brief:
IIS 7 + Apache Tomcat 7 + isapi_redirect.dll:
I have a deployed and working Tomcat-application available under http://localhost:8080/my_app.
I would like to see the same content under http:...
0
votes
1
answer
108
views
Making Tomcat log in /var/log
I'm trying to make our Tomcat 9 server log its internal log in /var/log instead of ${catalina.base}/logs.
I tried to change the destinations in logging.properties, but the logs directory in ${catalina....
0
votes
1
answer
6k
views
Tomcat localhost page showing HTTP500 but I can access the 'sample' war / app but no others - Jenkins installed
I'm trying to set up my server properly so that I can run servlets on it with the help from Jenkins. Within the webapps folder are two war files. One for jenkins and one for the sample from apache....
1
vote
2
answers
9k
views
Web app running on tomcat not updating when modified
I'm modifiying a web app coded by another guy with AngularJS. This app is fed by csv data files and is running fine in the first place. However, when I'm trying to change some data in the csv files, ...
0
votes
1
answer
22
views
IP Filter for REST API does not work behind load balancer for Ant Media Server (Tomcat 10)
I'm using Ant Media Server and I have one load balancer and Ant Media Server instances running behind the load balancer. I want to access to the Ant Media Server REST API by whitelisting my IP address ...
0
votes
3
answers
4k
views
Tomcat logging and mod_proxy
I have Tomcat running on port 8080, and when I send a request directly to Tomcat it works fine:
curl -IL http://localhost:8080/myapp
HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
Location:...
0
votes
2
answers
958
views
Tomcat on Windows, starting/stopping service
The Tomcat Windows Service How-To guide lists some commands to run/stop/etc the service from the command line. For example:
Tomcat7 //ss// (with whatever parameters)
Is there any practical ...
1
vote
1
answer
6k
views
Unable to start Tomcat8 because of org.apache.catalina.core.JasperListener?
I cannot start Tomcat8 because of the Jasper Listener, When I start Tomcat8 I got this message:
org.apache.catalina.startup.Catalina.load Catalina.start using conf/server.xml: Error at (30, ...
0
votes
1
answer
13k
views
Why aren't connections released by the tomcat AJP connector
I have here a jboss with a web application. The tomcat is configured to use the ajp connector.
Incoming connections are tunneled via an apache reverse proxy to the connector.
Now I recognized that ...
2
votes
1
answer
7k
views
Tomcat 8.5.4 SSL configuration troubles
The version details :
Using CATALINA_BASE: /apps/TOMCAT/tomcat
Using CATALINA_HOME: /apps/TOMCAT/tomcat
Using CATALINA_TMPDIR: /apps/TOMCAT/tomcat/temp
Using JRE_HOME: /usr
Using CLASSPATH:...
1
vote
1
answer
6k
views
Set up 'tomcat' non-root user in Tomcat 8
I've installed Tomcat 8 in Debian 8 and I need to harden the web server.
I'm following the official Tomcat documentation guide and in the security considerations section recommends to create another ...
0
votes
1
answer
11k
views
Selinux is preventing to start Tomcat
I have a problem when I launch tomcat on RHEL 8:
[root@TEST ~]# systemctl restart tomcat.service
Job for tomcat.service failed because the control process exited with error code.
See "systemctl ...
0
votes
0
answers
81
views
Cannot Access Tomcat Server from external server
I have found several people with this problem, tried many solutions, but none have worked for me.
I have recently setup a new VPS at a hosting company, linux with Centos9.
I've installed and run ...
2
votes
2
answers
5k
views
TOMCAT Disable org.apache.http.wire logging
I need to shut up the org.apache.http.wire logging level because its logging every single HTTP request and it produces Gigabytes of logging, I'm using the default logging of tomcat6 which I think it ...
0
votes
1
answer
295
views
Tomcat9 used environments variables on server.xml
I try to insert environments var on conf/server.xml file
I follow the tomcat documentation : https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/tomcat/util/digester/EnvironmentPropertySource.html
...
33
votes
1
answer
51k
views
How to configure Tomcat to only listen to 127.0.0.1?
The environment is Ubuntu 10.04.1 LTS running Tomcat 6 and Apache 2.2 from the repos. Apache is configured to proxy requests to Tomcat, so I really want to turn off Tomcat listening to requests on ...
3
votes
3
answers
11k
views
Extremely slow startup of tomcat
I have a tomcat 7 installation on a Solaris 10 server. My problem is that starting the server (or deploying a new war) is extremely slow. It usually take 30 - 60 minutes. The war application is a ...
0
votes
2
answers
10k
views
how to configure nginx reverse proxy for tomcat servers?
Well, I have been given the task of "modernizing" an application of the Pleistocene and I can't make this work. Let me explain:
I have a series of tomcat servers, each with the following ...
0
votes
1
answer
47
views
Access to Jira via two domains on Apache
I am trying to set up our Jira so that it can be accessed from two domains.
While I know that this is not officially supported by Atlassian, I am sure that there is a server config that allows it.
So ...
1
vote
3
answers
4k
views
Tomcat Redirecting behind an F5 load balancer
I have 2 servers running 2 instanced of Tomcat each (one Tomcat instance for RC, one for Production). These servers, let's call them server1 and server2, are set behind an F5 load balancer to ...
0
votes
2
answers
110
views
websockets apache2 not working
I'm busy with implementing websockets on our reverse proxy (apache2) we redirect our traffic to tomcat with a proxypass but it's not working we get an 403 (forbidden in our logs)
apache vhost file:
&...
0
votes
0
answers
11
views
Cloned Subscription: Messages lost while consuming messages
We have two servers with cloned subscriptions. It is observed when both subscribers are started, messages get lost while consuming from topic.
For performance test, I pile up 5000 messages on QM and ...
0
votes
1
answer
77
views
Tomcat 9 - does gracefulStopAwaitMillis *properly* wait for requests to finish when using non-blocking IO connector?
How does Tomcat 9.0.80+ handle graceful shutdown when using the NIO connector?
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
...
0
votes
1
answer
5k
views
Window can not find catalina.bat, even catalina is exist
When I try start tomcat in IDEA it gives me the below error message:
Error running Tomcat 8.0.35: Cannot run program
"D:\Tomcat\apache-tomcat-8.0.35\bin\catalina.bat" (in directory
"D:\Tomcat\...
0
votes
0
answers
73
views
How to specify the URL to proxy in Apache2 httpd.conf
I have a Spring application deployed in Tomcat that I want to proxy its URLs through an Apache2 web server, for now I do it like follows:
<VirtualHost *:8080>
ProxyPass /app/login http://...
6
votes
1
answer
6k
views
Tomcat sessions not expiring
I'm having problems with sessions accumulating. I run an instance of Tomcat 6.0.18 on a Windows server. I have 3 apps.
I've been having memory issues (close to heap size, or OOM). When I look ...
-2
votes
1
answer
822
views
Tomcat Service failed
Hello I am trying to run the status of my Apache tomcat and I keep having it failed. this is what I am getting
tomcat.service - Tomcat 10 configuration file
Loaded: loaded (/etc/systemd/system/...
0
votes
1
answer
2k
views
Guacamole - RDP file transfer error
I would appreciate if somebody point me in a right direction with the following problem.
Task:
Configure RDP file transfer via Apache Guacamole.
Problem:
a) Within RDP session (logged in as ...
1
vote
1
answer
4k
views
Remove tomcat ROOT directory
Is it possible to remove the Tomcat ROOT directory? We have several applications running on a Tomcat instance. I was asked to clean the webapps directory up and remove any unused folders. I removed
...
2
votes
0
answers
90
views
Unable to connect to AWS EC2 instance public IPv4 using http tcp/80
Referring to an instructional book,
I am setting up an EC2 instance on AWS using an IAM role.
However, when I try to access the URL using the EC2 instance's public IP address, I am unable to establish ...
0
votes
0
answers
102
views
How to obtain a thread dump from Tomcat running as a Windows service
Installing Tomcat as a Windows service comes with a handy system tray tool to control it which provides this menu:
However, everything I've been able to find suggests the "Thread Dump" ...
2
votes
1
answer
4k
views
Tomcat has stopped generating stdout logs
We have tomcat server in our production environment. Suddenly tomcat has stopped generating stdout logs. Last generated log by tomcat is one month ago and the size of stdout log file is 5006 KB. What ...