Questions tagged [tomcat10]
141 questions
9
votes
2 answers
Tomcat 10.0.4 doesn't load servlets (@WebServlet classes) with 404 error
I'm having a problem with my first Web Application. I use IntelliJ as IDE and Tomcat as Webserver.
Every servlet I've tried to acces, throws an 404 Error. Even if I copy some youtube tutorials, which seems to work like a charm.
The button in the…

JSar
- 133
- 1
- 1
- 7
6
votes
1 answer
Why is upgrading to Tomcat 10.0.5 causing spring boot to shutdown after boot?
I have a spring boot project and I am trying to use Tomcat 10 embedded instead of Tomcat 7. I add the following to my POM...
10.0.5
...
Then I run the same command I was running…

JGleason
- 3,067
- 6
- 20
- 54
5
votes
4 answers
Spring boot not running on external Tomcat 10
Spring boot not running on external tomcat
I have previously worked with Spring Boot on Java 1.8 and Tomcat 8.
I recently started a new project where I upgraded to Java 17, Tomcat 10.
I'm trying to deploy as a war to run in an external tomcat, but…

HuiYa
- 153
- 1
- 7
5
votes
3 answers
java.lang.NoClassDefFoundError: jakarta/servlet/jsp/jstl/core/LoopTag in Tomcat 10
I just migrated to Tomcat 10. After changing all references of javax.servlet packages to jakarta.servlet I still can't get my app to run.
I have downloaded the JSTL 2.0 class libraries from Here and I added them to the classpath.
I am using NetBeans…

Jevison7x
- 709
- 2
- 14
- 31
4
votes
1 answer
java: cannot access javax.servlet.ServletException class file for javax.servlet.ServletException not found
Description
When I develop my java project I use:
Java version: 1.8,
Apache Tomcat version 9.0.x
Then, I use Tomcat 10.0.x to run my project (with few modifications in my project). I had to change javax package related imports to jakarta package…

Dhanusha_Perera07
- 3,347
- 5
- 14
- 22
4
votes
1 answer
Existing Spring boot application to Tomcat 10
We currently have a Spring boot application running on Tomcat 9.
It is using Spring boot version 2.1.5. In order to make my application compatible with Tomcat 10, what should be the Spring boot version?
Will Spring boot be compatible with Tomcat…

Venky
- 55
- 7
4
votes
1 answer
Getting 404 while trying to access endpoints using Jersey 3 and Tomcat 10
Been trying for days to fix this problem. Just trying to recreate a simple "Hello World" REST api with Jersey 3 and Tomcat 10 in maven. After creating the WAR file of the project I can access the index.jsp (created by default when I created the…

Luis Galindo
- 43
- 3
3
votes
1 answer
How do you configure a self signed certificate programmatically with Spring Boot 3 for Tomcat?
Previous examples of how to configure a self signed certificate with Spring Boot 2.x looked something like this
@Component
public class MyTomcatWebServerFactoryCustomizer implements WebServerFactoryCustomizer {
…

gsrunion
- 379
- 5
- 14
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
2 answers
Error in ServletFileUpload#parseRequest(request) with tomcat 10
Working on a simple file upload program. I had to use jakarta.servlet.* classes as I am using Tomcat v10. I am getting compile time error on parseRequest(request) line.
Code :
protected void doPost(HttpServletRequest request, HttpServletResponse…

Mukesh Kumar S
- 33
- 1
- 4
2
votes
2 answers
Will GeoServer run over Tomcat 10.x?
We're attempting to migrate our web application from Java 8 to Java 11, and Tomcat 9 to Tomcat 10, however we found out that we need to refactor the code to change javax.* entries by jakarta.* entries. The question is, will the most recent version…

PabloC
- 41
- 3
2
votes
1 answer
How to remotely deploy a secure websocket service on Tomcat10 through Maven
I have burned myself trying to set up a secure WebSocket service using my remote Tomcat10 server but without any success. I keep on getting from Postman "Unexpected server response: 404" after hitting "wss://mydomain.org:4123/ws". I attach the most…

Gouz
- 336
- 1
- 6
- 19
2
votes
1 answer
How to get the SSLHostConfig?
I am able to get the parent Connector with
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
QueryExp qe = Query.match(Query.attr("port"), Query.value("443"));
ObjectName on = new…

user1133275
- 2,642
- 27
- 31
2
votes
1 answer
Tomcat 10 - jakarta.faces - Tomcat does not start
I am in the process of converting a Java 11 project with JSP and JSF web sites from javax.* to jakarta.*. For this I ...
updated Tomcat 9 to 10
updated all dependencies to the latest versions (build.gradle dependencies see below)
changed all…

jagahdh
- 23
- 1
- 3
2
votes
1 answer
tomcat 10: java.lang.NoClassDefFoundError: jakarta/enterprise/context/spi/Contextual Error
I need to upgrade to using apache tomcat 10, Java 16.
jakarta.enterprise.cdi-api and jersey-cdi1x was imported.
But it's alway show error.
ava.lang.NoClassDefFoundError: jakarta/enterprise/context/spi/Contextual
at…

FixBug
- 355
- 2
- 17