Questions tagged [tomcat8.5]

Version 8.5.x (June 2018 onwards) of the Apache Tomcat servlet container. Use only if your question is specifically related to features of this version.

Tomcat released on 2018-06-25:

The Apache Tomcat Project is proud to announce the release of version 8.5.32 of Apache Tomcat. Apache Tomcat 8.5.x is intended to replace 8.0.x and includes new features pulled forward from Tomcat 9.0.x.

Release Notes:

Tomcat 8.5 is designed to run on Java SE 7 and later.

EOL:

The Apache Tomcat team announces that support for Apache Tomcat 8.0.x will end on 30 June 2018. 8.5.x is not affected by this announcement.

173 questions
3
votes
1 answer

Can not read JSESSIONID cookie after setting cookie-config to httpOnly and secure in web.xml

I have added the following configuration in my webapp application web.xml / true true When I…
Ziko
  • 919
  • 2
  • 10
  • 22
3
votes
1 answer

Number of Active Sessions in Tomcat

I have my web services jar file deployed under webapps\nyx\WEB-INF\services in my tomcat server. Now I am trying to get no of active sessions using below code inside a web service method. MBeanServer mBeanServer =…
Shelly
  • 410
  • 7
  • 26
3
votes
3 answers

How to configure a maximum duration of an application session in Tomcat?

I need to configure a maximum duration of an application session in Tomcat to 24 hours. I was not able to find the appropriate configuration in the documentation: https://tomcat.apache.org/tomcat-8.5-doc/config/http.html (There is sessionTimeout for…
Michael
  • 10,063
  • 18
  • 65
  • 104
3
votes
0 answers

tomcat fails to deploy when deployed from manager app

I'm trying to upload a war file, sized 100~mb to tomcat for deployment. I changed the max size in the manager app web xml,but still.. when I try to deploy it I get the usual chrome error of: This Site can't be reached. The connection was…
EliasHan
  • 45
  • 7
3
votes
4 answers

Tomcat deploy using tomcat7-maven-plugin fails with error "Cannot invoke Tomcat manager: Connection reset by peer: socket write error"

I am trying to set auto-deploy for my war to Tomcat using the Tomcat7-Maven-Plugin. However, its failing to deploy the file. From the console messages, it looks like it starts deploying but gets interrupted in between after ard 2 MB of transfer.…
Patz
  • 294
  • 4
  • 18
3
votes
2 answers

How to run tomcat 8.5 on port 80 / remove 8080. tomcat 8.5.16, centos 7minimal install, hosting 24

This question is unique to Tomcat 8.5 other answers are for 7 and do not work as described Firstly I've been studying tomcat docs, and online questions for 20 hours now. I've built my server from scratch about ten times to learn the process and try…
danbdex
  • 45
  • 1
  • 12
2
votes
0 answers

Intermittent slowness Spring Webflux application deployed on tomcat 8.5.5

We are using tomcat 8.5.5 to deploy the spring webflux application, When making Get Rest call to service then it makes select on MongoDB and returns Flux. Frequently it's giving a slow response sometimes return in 1-2 seconds, but sometimes it took…
2
votes
1 answer

Spring migration 4.3 to 5 on tomcat 8.5 el-api error

When upgrading our Spring 4.3 to 5 using Spring boot initializer on tomcat 8.5, we started getting exceptions: 2021-06-06 12:37:50,482 DEBUG [background-preinit] messageinterpolation.ResourceBundleMessageInterpolator…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
2
votes
1 answer

Apache Tomcat 8.5 starting returning 404

so I've been building an API using Jersey and Apache Tomcat 8.5, the API was running fine and working and randomly I can only get 404 even when accessing localhost:8080. I'm new to this tech so was wondering if anyone can help. Here is my web.xml in…
2
votes
0 answers

job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

I have an application hosted on Tomcat 8.5 that seems to work fine but after some calls to the application api the tomcat stops working. In the catalina.out file you see this error: . ____ _ __ _ _ /\ / ' __ _ () __ __ _ \ \…
2
votes
1 answer

Tomcat 8.5 rewrite Valve to redirect root request to specific webapp

I have a requirement to allow certain URLs without a context to be forwarded to specific webapp. So, I have a webapp "app1" deployed and working. The following URL http://localhost:8080/app1/ping is working fine. In $CATALINA_HOME/webapps I only…
user330315
2
votes
1 answer

How to fix default content-type rendering issue in apache-tomcat-8.5.39?

I am setting up my application to test with latest apache-tomcat-8.5.39. When I am trying to load my application on any web browsers few of my resources are not loading properly. Few resources are not loading properly because of the content-type…
SubhenduGN
  • 21
  • 2
  • 14
2
votes
0 answers

java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.compiler.EncodingDetector

I have installed tomcat 8.5.37 on Centos server and opening server at 8081 port I am getting error as `Message java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.compiler.EncodingDetector Description The server…
Prasoon
  • 31
  • 1
  • 7
2
votes
2 answers

Tomcat connection pool ThrowableCallStack issue

Found following logs sometimes in Tomcat8.5. When we observe error stacktrace we didn't found any connection leak in the code but the log is captured for sometimes. I am unable to recognize whether this is the indication to connection leak or any…
Yella Goud
  • 157
  • 1
  • 4
  • 14
2
votes
3 answers

Jersey response's reason phrase is inconsistent in tomcat 7 and 8.5

I'm using Tomcat 8.5 in one server and Tomcat 7 in different server and I have the following jersey resource: @Path("main") public class MyResource…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
1
2
3
11 12