For questions related to migration of individual Java EE derived artifacts (javax.* package) to Jakarta EE derived artifacts (jakarta.* package), usually in context of non-JEE environments such as Spring/Tomcat or 3rd party libraries having specific JEE dependencies.
Questions tagged [jakarta-migration]
107 questions
1
vote
1 answer
class file for javax.servlet.Filter not found
I'm getting the following error:
/WebSecurityConfig.java:[20,8] cannot access javax.servlet.Filter
[ERROR] class file for javax.servlet.Filter not found
for my WebSecurityConfig class
@Configuration
@EnableWebSecurity
public class…

MSmith
- 39
- 1
- 7
1
vote
2 answers
Cannot access javax.servlet.Filter class file for javax.servlet.Filter not found
I'm working in a project and right now I'm migrating the project to Spring 3.0. So I made some changes in some classes. I can not share the classes because of the job rules but this class about the AwsXrayConfig class. And using filter. But when I…

snnhbyb
- 11
- 3
1
vote
1 answer
Migration Java 8 to 17. java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener Using Quartz
I am migrating an application from Java 8 to Java 17, and javax dependencies changed to Jakarta ones. I also updated other dependencies which were dependent on javax.
The problem, we have used Quartz scheduler for scheduling jobs.…

WajahatAlvi
- 21
- 5
1
vote
1 answer
Wildfly 26 could not deploy a Servlet that extends from Jakarta HttpServlet
I am using Eclipse IDE to create a simple Java web application. I am using Wildfly 26, Java 11. I run the web app inside the Eclipse. I created a TestServlet with @WebServlet("/TestServlet") with default generated implementation (Printing Servled at…

LHA
- 9,398
- 8
- 46
- 85
0
votes
0 answers
Spring-Security-Web import errors
I'm currently tasked with upgrading our codebase to Java 11 (Still out of date, I know, but that's the requirement)
I changed out all of the old javax packages for Jakarta, and updated all of the Spring and Spring-Security packages, but I'm still…

Nathan S
- 1
- 1
0
votes
1 answer
Cannot access javax.persistence.MappedSuperclass Spring Boot 3
I've migrated my project from Spring Boot 2 to Spring Boot 3 and I've been getting this error:
[1;31mERROR[m] COMPILATION ERROR :
[1;34mINFO[m] -------------------------------------------------------------
[1;31mERROR[m] cannot access…

Lohit Akshay
- 11
- 2
0
votes
0 answers
What class in jakarta library could be used to replace the class ChannelProcessingFilter from javax?
I need to upgrade Spring Boot, Spring Security, and JDK from 11 to 17
To perform this upgrade, I had to replace javax.servlet.http.* with jakarta.servlet.http.*
The problem I am running into is the compilation of the Line http.addFilterBefore(new…

Jared
- 73
- 6
0
votes
0 answers
Jaxb3x bindings issue- Unsupported binding namespace "http://jaxb2-commons.dev.java.net/basic/inheritance"
Upgrading to jaxb jakarta i'm getting issue with inheritence namespace.
Purpose: Converting xsd to java files
My xjb file:

SreeNath
- 91
- 1
- 4
0
votes
0 answers
How to migrate third party library to use jakarta.* import while upgrading springboot 2.x to 3.x
While upgrading from Springboot 2.x to 3.x, I encountered the following issue:
@Confugguration
class AppConfiguration{
@Bean
fun filter: FilterRegisterationBean{
}
}
class CustomFilter(val parm1:Boolean, val param2:Boolean) :…
0
votes
0 answers
Why NoSuchFieldError in eclipse, even provided required dependencies.?
My project uses CXF JETTY JAKARTA
CxfVersion=4.0.2
JettyjVersion=11.0.15
JacksonVersion=2.15.2
implementation ('com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:${jacksonVersion}')
implementation…

PriyanWL2022
- 21
- 1
- 5
0
votes
0 answers
How to setup jetty server properly after jakarta migration
Here is my CXF web service application. When I upgraded javax to jakarta here shows the change and…

PriyanWL2022
- 21
- 1
- 5
0
votes
0 answers
Where are the adapters for javax to jakarta migration?
We have an app with several JavaEE servlets (ie they use the javax.servlet package naming) but have been forced into upgrading our container to the newer Jakarta EE classes (ie jakarta.servlet) due to a number of technical issues too long to…

William
- 20,150
- 8
- 49
- 91
0
votes
0 answers
Failed to load class [javax.servlet.Filter] Cannot lower version of Tomcat
I have a spring project that I updated to version 3. I added Jakarta to replace Javax.
When I run the application I get a Failed to load class [javax.servlet.Filter] error. Some of the post on Stack recommend lowering the version of Tomcat, but I…

Aaron
- 4,380
- 19
- 85
- 141
0
votes
0 answers
MessageBodyWriter not found in maven-assembly jar
I am creating command line interface version for rest client api , created method works fine from normal test class/java program but same doesnot work when i built jar with maven-assembly-plugin. I am seeing below exception
ERROR:MessageBodyWriter…

santosh jk
- 111
- 1
- 11
0
votes
0 answers
Olingo V4 uses javax hence it is not compatible to use with Spring Boot 3.x (JakartaEE). Is there a work around or an upgrade from Olingo coming soon?
I want to use Odata – Apache Olingo V4 (4.9.0 latest now) in my Spring Boot application (version 3.1.2). It seems Olingo V4 wants javax Servlet instead of Jakarta Servlet in the handler.
What is the solution here?
Tomcat embed core 9.0.x won't work…

Jeni
- 3
- 1