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
4
votes
5 answers

How to resolve FileSizeLimitExceededException error?

I'm getting error while uploading excel file size is more the 1MB. [org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException:…
user3091530
  • 620
  • 2
  • 8
  • 22
4
votes
3 answers

Java remote debugging (JPDA) not working for me in Tomcat 9

I'm trying to remotely debug a Tomcat webapp on a recently upgraded Tomcat 9.0.13 and Open JDK 11.0.1. Server is Redhat Enterprise Linux 7.6 and I'm using Eclipse on a Windows 7 developer box to connect. Tomcat starts, and the app is accessible on…
TikiTavi
  • 242
  • 1
  • 3
  • 9
4
votes
1 answer

Tomcat 9 slow response

I have a web application(jsp) which was running fine on Tomcat 8.0.46 for more than a year. Few weeks back we upgraded to Tomcat 9.0.10, after couple of days of upgrade tomcat is responding with a delay of 8-16 seconds for some of the request. I…
java_dev
  • 323
  • 6
  • 17
4
votes
1 answer

Uninstall/Remove tomcat 9 completely from CentOS

I am trying to remove tomcat 9 from CentOS completely. First I used rpm -qa|grep tomcat The output I got was tomcat-9.0.0-26.el7.centos.x86_64 Then I used sudo yum remove tomcat.x86_64 When I again tried rpm -qa|grep tomcat I didnt get any…
Mukund S
  • 95
  • 2
  • 2
  • 8
3
votes
3 answers

java.lang.IllegalStateException: Cannot get a connection as the driver manager is not properly initialized

I shifted from MS Windows to Ubuntu, then I try to run the project. I got an error when running the Tomcat 9 server. But on Windows, I could run the project without any issues. What have I missed here? mysql --version # mysql Ver…
Dhanusha_Perera07
  • 3,347
  • 5
  • 14
  • 22
3
votes
1 answer

Tomcat9 org.apache.tomcat.jdbc.pool.ConnectionPool.init ignores custom DataSource

I am using an Spring bean to set a JDBC pool connection to a mySql server. This includes setting a custom DataSource to set my own password encryption. package com.mypackage; import org.apache.tomcat.jdbc.pool.DataSource; public class…
italo
  • 43
  • 6
3
votes
1 answer

How to have version in WAR filename, but not require it in the URL when deployed in Tomcat

I want to version my WAR to make DevOps lives easier, i.e.: foo-3.2.0.war. In pom.xml, I have: foo but also org.apache.maven.plugins maven-war-plugin
Russ Bateman
  • 18,333
  • 14
  • 49
  • 65
3
votes
1 answer

Create a jar file that supports javax.* and jakarta.*

As you probably know, javax had to change it's name to jakarta due to a trademark issue. Right now my company has gives our customers two .jar files, one for those using Tomcat 9 or earlier (javax) and one for Tomcat 10 (jakarta). Is it possible to…
Brian
  • 307
  • 2
  • 15
3
votes
1 answer

javax.servlet.ServletException: Class [org.glassfish.jersey.servlet.ServletContainer] is not a Servlet

You may feel this is a duplicated question, but none of the questions with the same title solve my problems. I am using Jersey 3.0 creating a RESTful web service in Eclipse, I use Tomcat 9.0 as my server.
3
votes
2 answers

WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2

I'm getting an warning message when running my webapp on Tomcat 9 server using java 11. Errors follows: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by…
Supercoder
  • 1,066
  • 1
  • 10
  • 16
3
votes
1 answer
3
votes
4 answers

Tomcat9 complaining on class not found for javax.sql.DataSource class

Tomcat9 running on a Linux based VM, startup giving following error, when a Jdk11 compiled war file is deployed in tomcat. On start of tomcat following error occurs. How to resolve this class not found exception. Is specific module java.sql to be…
YS_NE
  • 194
  • 2
  • 21
3
votes
1 answer

What is the correct cache size to prevent tomcat log from getting flooded with cache warning messages

I am running Apache Tomcat/9.0.19 and recently I have noticed a lot of warning messages on the catalina.out log. WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at…
Abhinav Anand
  • 41
  • 1
  • 5
3
votes
2 answers

Spring boot integration with JBPM 7.23.0

I am new to the jBPM. I want to use the jBPM 7.23.0 with the Spring boot. As per my understanding there are two ways to integrate it. JBPM as a service jBPM project embedded in Spring boot application I am trying to understand how to embed jBPM…
Aniket
  • 37
  • 2
  • 5
3
votes
1 answer

Blank input String fields submitted as Empty Strings vs Null - JSF 2.3 MyFaces - Tomcat (TomEE)/9.0.12 (8.0.0-M1)

Empty form input fields bound to bean String type are received as empty strings ("") when the expected value is NULL. This is an old problem that seems to get recreated with each version of Oracle EL or Apache EL or Tomcat. @BalusC has addressed…
Ted Spradley
  • 3,414
  • 3
  • 22
  • 26