Questions tagged [tomcat9]

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

Version 9.x (August 2017 onwards) of the Apache Tomcat servlet container.

Apache Tomcat is an open source servlet container developed by the Apache Software Foundation (ASF). It supports the 3.1, 2.3, 3.0, and 1.0 specifications1. Questions here should relate only to Tomcat Version 9.x.

Use only if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

1170 questions
52
votes
5 answers

The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "" after upgrade to 2.2.5

Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid. at…
Manjunath
  • 715
  • 1
  • 7
  • 17
47
votes
7 answers

Blocked because of a disallowed MIME type (“text/html”) : Angular 8 deployed on tomcat 9.0.30 fails to serve the assets

I have a project in which the user interface is based on angular 8 and the backend is a springboot java service. The entire project is a multi module project with the angular part being a separate module with front-end builder being used to build…
Ananthapadmanabhan
  • 5,706
  • 6
  • 22
  • 39
27
votes
1 answer

Migrate Jersey project to use Java 10 results in java.lang.IllegalArgumentException at jersey.repackaged.org.objectweb.asm.ClassReader.

Previously, when the project was on Tomcat 8 and Java 8, it was working fine, but after I migrated my project to Tomcat 9 and Java 10, it is giving me error as follows: Oct 05, 2018 11:02:01 AM org.apache.catalina.core.ApplicationContext log SEVERE:…
Jaydeep Bobade
  • 1,005
  • 2
  • 16
  • 25
20
votes
4 answers

Tomcat is not redirecting to 400 bad request custom error page

We have tomcat 9 web server in production. The problem we are facing is we want to show the custom error page for our application if tomcat receives any malformed URL as follows http://URL/| or http://URL/[ I have added error page tag in web.xml…
Pawan Patil
  • 1,067
  • 5
  • 20
  • 46
17
votes
3 answers

How to set sameSite cookie in Tomcat's cookie processor?

Tomcat's context.xml defines CookieProcessor (default LegacyCookieProcessor). Apache Tomcat 9 Configuration Reference I'm trying to add attribute(s) shown on cookie processor, however that doesn't seems to be working
Puneri
  • 283
  • 1
  • 2
  • 10
16
votes
1 answer

JasperListener? Upgrading from Tomcat 8 to Tomcat 9

Since Tomcat 8.0 has reached end of life, I want to upgrade my application directly to Tomcat 9. When I deploy my Java based App from local to my server, I have a script which overrides the server.xml. I upgraded the server to a tomcat 9 and tried…
MoonLight
  • 161
  • 1
  • 1
  • 3
14
votes
1 answer

Illegal reflective access when I stop SpringBoot web application with Tomcat 9 and Java10

I'm trying Java 10 development with Spring Boot 2 and I encounter some issues. The application is a simple webapp based upon Spring Boot 2. The application launch is ok but when I stop it, I get this warning: WARNING: An illegal reflective access…
ChriX
  • 951
  • 4
  • 9
  • 22
14
votes
4 answers

Eclipse irreversible Dynamic Web Module 4.0 selection; Tomcat 9 doesn't support it

I'm using Eclipse Oxygen.2 (4.7.2) on Windows 10 with Java 8. I have a faceted project I run inside Eclipse using Tomcat. I had been using Tomcat 8.5, but on a new system I upgraded to Tomcat 9. Of course I removed the Tomcat 8.5 server and server…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
13
votes
4 answers

apache tomcat 9.x not working with eclipse & Java 10.0.1

I've installed apache-tomcat-9.0.7 on my windows machine and have following environment configurations: echo %JAVA_HOME% C:\Program Files\Java\ jdk-10.0.1 echo %JRE_HOME% C:\Program Files\Java\ jre-10.0.1 OS : Windows 8 64-bit Eclipse Version:…
Saurabh Bhoomkar
  • 595
  • 1
  • 9
  • 29
10
votes
1 answer

Activiti 6.0.0 UI app / in-memory H2 database in tomcat9 / java version "9.0.1"

I just downloaded activiti-app from github.com/Activiti/Activiti/releases/download/activiti-6.0.0/… and deployed in tomcat9, but I have this errors when init the app: 11:29:40,090 [http-nio-8080-exec-8] INFO …
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
10
votes
6 answers

Spring Boot REST Controller returns 404 when deployed on external tomcat 9 server

I have a spring boot rest web application which works perfectly on the embedded server. However after following the steps mentioned in the is blog…
MikiEthiopia
  • 129
  • 1
  • 1
  • 5
9
votes
1 answer

I get "(Read-only file system)" when try to write a file on HD

I would like to write a file in this path using a springboot servlet that runs on Tomcat9 /mnt/data-new/data/USERPROFILE/607/file.txt When I try to write that file, i get this error: Whitelabel Error Page This application has no explicit mapping…
ErikM
  • 519
  • 5
  • 14
9
votes
1 answer

Migration to JDK 11 has error occure "java.lang.NoClassDefFoundError: javax/activation/DataSource" (tomcat 9.0.12)

I'm migrating java project use JDK8 to use JDK 11 then has error occurred relate of javax activation. Following migration guide from Oracle, I see java.activation that module was removed from JDK 11. After that, I give a suggest to added third…
SuperBeam
  • 91
  • 1
  • 1
  • 2
8
votes
3 answers

Tomcat Service gets installed with "Local Service" account

Post Tomcat 8.0.53, when I install Tomcat (9.0.30 or 8.5.50) and install it as service (Using service.bat), it gets installed but with "Log on" as "Local Service" instead of "Local System account". This can be seen under services in…
pullCommitRun
  • 373
  • 6
  • 18
8
votes
0 answers

Catalina-utility-1 and Catalina-utility-2 excessive memory allocation

What are these Catalina-utility-X threads and why do they burn through so much heap? They consume 20x more memory than my worker thread, which I was trying to debug because I thought it was memory-intensive. This snapshot is taken on a tomcat…
Alex R
  • 11,364
  • 15
  • 100
  • 180
1
2 3
77 78