Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tomcat8]

The Apache Tomcat software is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies.

1
vote
0answers
22 views

Apache buffers tomcat responses, and closes connection to tomcat when request size exceeds 10397232 bytes

I've deployed a web-service application as a Docker container based on tomee:8-jre-7.0.4-plume which is sitting behind a apache httpd:2.4 instance running in another Docker container running on the ...
0
votes
0answers
10 views

tomcat server user login denied instead of providing correct passsword username

I am trying to implement basic authentication in tomcat server (version 8.5.x). Here is what I have done the changes. tomcat-users.xsd <xs:schema xmlns="http://www.w3.org/2001/XMLSchema" ...
1
vote
1answer
25 views

Apache tomcat stops after RHEL server patching

I've RHEL server where security team keeps on applying security patches every month and then reboot the server. I've apache tomcat installed on RHEL server and a web application (HTML/CSS/Javascript ...
0
votes
0answers
42 views

Can I set or override web.xml filter on a per-app basis in Tomcat like the Context Container?

I have a Java web app running on Tomcat 8.5. The app uses the SpnegoHttpFilter configured in the app's web.xml. This configuration includes some site-specific values like spnego.preauth.username and ...
0
votes
0answers
41 views

Use existing response body for CGI HTTP errors (Tomcat 8)

We are using a custom servlet in Tomcat via the org.apache.catalina.servlets.CGIServlet class. Everything seems to be going fine so far - we can access the required endpoint. However, the program ...
0
votes
0answers
477 views

browser says my server uses an unsupported protocol

I am making my site into https site. Got a Comodo certificate. Browser says: "This site can’t provide a secure connection" abs-appsupport.hhs.int.state.dp.us uses an unsupported protocol. ...
-1
votes
1answer
298 views

Nginx configuration for multiple domains and same application

I have the following scenario: A single application that will serve several different domains, on a single server, and a single context of a single Tomcat instance. (The DNS of all domains are ...
0
votes
1answer
30 views

apache 2.4 tomcat 8 Permission Denied

I have an apache 2.4 on Debian Jessie and I host several sites as virtual hosts. On of these sites is running on jsp so I hav installed tomcat 8 and I use mod_jk. My virtual host configuration file ...
0
votes
0answers
25 views

How to change hostname localhost to example.com and access it from another Machine in network when tomcat is hosted on centos7

I have installed tomcat 8 on centos7 having IP 10.208.27.152 web.xml is as follow:: <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" ...
0
votes
0answers
513 views

Tomcat 8.5: No global web.xml found (CATALINA_BASE not the same as CATALINA_HOME)

Is this expected behaviour? Will the global web.xml not be picked up in the deployment scenario where CATALINA_HOME (tomcat installation) and CATALINA_BASE (webapp home) are not the same? The ...
0
votes
1answer
52 views

Load index.html by default in apache2

I have set up apache2 web server and tomcat with mod_jk module in between to delegate static content to apache2. I have created /var/www/example/index.html and want this to be loaded when entering ...
0
votes
0answers
94 views

Tomcat shutdown behavior

In my experience most Enterprise Java servers (for example WebSphere), when request to shut down, will stop listening on the web port first thing and finish existing running requests with some kind of ...
0
votes
1answer
158 views

tomcat8: 'free(): corrupted unsorted chunks'

We upgraded from Ubuntu 16LTS to Ubuntu 18LTS a couple of days ago and since then have had Apache Tomcat crash completely twice (once per day, about 25 hrs apart). The java process stops running. One ...
0
votes
0answers
163 views

Redirecting fqdn to full url of web app in tomcat 8.5

I'm looking for guidance to redirect a fqdn to the full url of web app running on tomcat 8.5. I want to be able to type this in my browser : https://mysite.mydomain.co.za or just mysite.mydomain.co....
0
votes
1answer
119 views

Not able to change tomcat memory on AWS Ubunutu 16

Ok so this is a very odd behaviour. Setting jvm parameters -Xms6g -Xmx6g has no affect on tomcat. Tomcat doesn't allocate memory when checked with free -m or with top. I'm using Ubuntu Server 16.04 ...
0
votes
0answers
64 views

Managing log file size via cron

I have a tomcat server running on my ec2 instance. Recently, my catalina.out log file got pretty huge to the point it was quickly filling up and causing memory overflow on the server. I have it more ...
1
vote
0answers
246 views

What are the best practices to configure CloudWatch alarms for a Tomcat webapp?

I have a Tomcat webapp deployed on Elastic Beanstalk for which I want to configure CloudWatch alarms, especially for when the web server is down. The Tomcat container uses Google OAuth2 for ...
0
votes
1answer
344 views

Tomcat8 doesn't detect Letsencrypt renewed certificate (but Apache does)

I have an Ubuntu 17.10 Server with Apache 2.4.27 and Tomcat 8.5.21, both serving through HTTPS thanks to a Letsencrypt Certificate. It's been working fine for 3 months and automatic renewal (with ...
0
votes
1answer
314 views

Tomcat thowing NoSuchMethodError for Nio2Endpoint.setSocketOptions after start serving

I have just updated a server where an exception started to happen after the application starts and tomcat starts serving requests. I changed the connection to verify if there was an isue with it as ...
0
votes
1answer
1k 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
2answers
96 views

Tomcat manager GUI

I have a server http://example.com with a load balancer in front of it named https://example.net performing SSL offloading and redirecting traffic to port 443 on it to 8080 in http://example.com. The ...
0
votes
1answer
87 views

Prevent Tomcat connector from binding to port 8080 too early

It seems that Tomcat's connectors by default start listening before the server is fully started. The result is that in a HA setup some HTTP requests appear "hanging" for a considerable duration of ...
-1
votes
1answer
35 views

How to get rid of not secure connection( Not secure https://example) to secure connection.(secure https://example.com

Hi I'm accessing a site which is on DMZ. I'm getting NOT SECURE https://example.com/. How Can I make it secure only on my machine. I understood that the certificate is not trusted. How can I make my ...
0
votes
1answer
1k views

Threads getting blocked for TIMED_WAITING in Tomcat

Studying about blocking and non blocking IO, created some doubts in my mind. I came to read a statement written here (https://mail-archives.apache.org/mod_mbox/tomcat-users/201402.mbox/%3C52F521B7....
0
votes
1answer
498 views

Tomcat restarts even after explicit shutdown

I needed to set up an Ubuntu server based Tomcat server and I followed this well written post. Everything works great. Ran into an odd behavior though; I needed to stop the Tomcat server, so I used ...
0
votes
1answer
250 views

Configuring Let's Encrypt on Tomcat 8 with Ubuntu 16.04

I have a Ubuntu 10.04 VM running in Google Compute Engine. The VM is assigned a static IP, which is configured in my DNS entry for www.myapic.com . I have tomcat 8 running as the webserver. Now I ...
2
votes
0answers
1k views

Cannot get SSL working on Tomcat8.5

I had my Tomcat8 running fine in port 8080, but now I'm trying to enable https in 8443 and, even though logs look fine it doesn't work (not even in 8080 without https right now). My sistem is Ubuntu ...
1
vote
1answer
250 views

mod_rewrite - HTTP to HTTPS redirection rule only works after accessing it through HTTP first

I have a Tomcat 8 app deployed on Elastic Beanstalk which uses a sub-domain of my main app. Both are separate applications and do not interact. I have a mod_rewrite rule to redirect all http requests ...
0
votes
0answers
81 views

Tomcat 8 - Allow Encoded Slashes on Azure

How can we set the "ALLOW_ENCODED_SLAHES" to true on an Azure/Tomcat 8 instance? All information I found on this are impossible because we cannot modify the server.xml, catalina.properties or any ...
0
votes
1answer
551 views

How to enable JMX on elastic beanstalk running amazon linux tomcat8

I have to enable the following configuration for tomcat running in elastic beanstalk environment -Dcom.sun.management.jmxremote.port=9000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management....
0
votes
1answer
540 views

java.net.BindException: Address already in use in tomcat on debian only

I am trying to deploy a web application (RODA 2.0) as WAR on a debian stretch into tomcat 8.5 and openjdk 8, and I get a java.net.BindException: Address already in use when starting up (see full ...
0
votes
1answer
1k views

Enable CORS in Tomcat

SCENARIO: Frontend: Angular application living in NGINX Backend: java application living in Tomcat 8.5 The frontend needs to call backend Rest API. As far as I understand I need to allow CORS for ...
0
votes
1answer
295 views

Tomcat8 is being reinstalled while creating instance from AMI

I have Tomcat8 installed on my instance with startup on reboot configured. Created an AMI from this instance. Now I see: 1) Tomcat was installed again (I can confirm this because, I have removed ...
3
votes
2answers
749 views

Apache Cluster + Tomcat websocket

We've recently configured a new Cluster with the following configuration: www.mydomain.com | APACHE + MOD_JK (AJP) Load Balancer / \ Tomcat1 ...
1
vote
2answers
49 views

Tune apache2 to serve up tomcat web app at domain without timeouts

I have a domain that is hosted on an unmanaged VPS server with Ubuntu 16.04 I have configured my Java EE Tomcat web app to be served up at my domain name. But the response times for the app are way ...
1
vote
1answer
610 views

Let's encrypt certificate permissions for tomcat8 ubuntu server

I'm trying to use the let's encrypt certificate for both Apache HTTPD and TOMCAT service of my ubuntu server VPS. I found where there are letsencrypt stored certs looking into apache configuration, ...
1
vote
1answer
1k views

How to enable SSL on Tomcat8 in Ubuntu with cert/key file

How can I enable SSL for Tomcat using a pair of crt/key file? I tried this: I enabled the APR connector in server.xml configuration: <Connector port="443" maxHttpHeaderSize="8192" ...
-1
votes
1answer
314 views

tomcat-7.0.23 shuts down automatically on aws server

Have installed tomcat tomcat-7.0.23 on AWS server, but the last tomcat server which I started gets down automatically. Have gone through similar question "tomcat on aws shuts down automatically", but ...
2
votes
0answers
2k views

AWS ELB rewrite http to https

I am using AWS Elastic Beanstalk. I would like to rewrite all http traffic to https. I have the following configuration: But if I try change the Instance Protocol of either of the above two to ...
0
votes
0answers
1k 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, ...
1
vote
0answers
123 views

Jenkins windows Gui gives an error

I have installed Apache Tomcat as windows services and deployed Jenkins( placed jenkins.war in webapps folder). - Windows Server In 'Execute Windows batch command' start mspaint.exe When I build the ...
1
vote
1answer
23 views

Mule connection management

I have a mule flow that performs a sequential file transfer to a external SFTP. The flow transfers six files to remote SFTP. Lately we are noticing issues, these incidents appear randomly. During ...
1
vote
2answers
510 views

How can I get the log path of Tomcat, using PowerShell?

I have a number of Windows servers running various versions of Tomcat 8, And I need to be able to acquire the Tomcat log path in a PowerShell script in order to perform administrative functions with ...
0
votes
0answers
2k views

Tomcat 8.5.15 not loading static resources

I have upgraded my local tomcat from version 8.0.36 to 8.5.15. I have a project that has static resources (css, js and vm) inside a project in an Eclipse workspace, linked in the pom profile ...
0
votes
1answer
264 views

Tomcat indicates “FAIL” even though it seems to be working

I installed Tomcat8 on Debian Jessie using apt-get in a Docker file. I then sudo service tomcat8 start. This results in this error: [FAIL] Starting Tomcat servlet engine: tomcat8 failed! However, ...
1
vote
1answer
105 views

How to make Tomcat 8.5 RewriteValve work with AJP1.3 JKMount?

Premise On an Ubuntu 16.04 server with the latest Apache2 installed, I've different Virtual Hosts, each one properly configured (and secured with Let's Encrypt): /etc/apache2/sites-enabled/my....
0
votes
0answers
94 views

Tomcat GUI access broken?

**I'm able to reach tomcat in the browser. I've done all the prep to be able to access the GUI apps, but I am still told I am not authorized. Below is a screenshot of my tomcat-users.xml file or I ...
2
votes
1answer
2k views

Apache 2.4 sends 502 errors when backend sends 401 on large file uploads

Using Apache 2.4.25 (Windows) and backend server Tomcat 8 (Windows). We have some client software that uploads files using HTTPS on an authenticated session that is proxied through Apache to Tomcat. ...
1
vote
0answers
2k views

Making tomcat 8 obey logging.properties

I've been fighting this problem on & off as time allows since last year. I'm trying to get several tomcat 8 installations to use JULI to format & rotate their logs without success. I'm sure ...
0
votes
2answers
3k views

Where to put certificates in Tomcat, when app acts as client?

For starters, i have my Tomcat8 configured for https with valid certificated linked in connector xml file. Something like this: <Connector port="443" protocol="org.apache.coyote.http11....