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
0
votes
1 answer
java.lang.NoClassDefFoundError: jakarta/servlet/ServletException
I am encountering an issue with my Spring Boot application deployed on AWS Lambda. I have created a REST API at api/users to retrieve a list of users.
The controller is defined as follows:
package com.example.lambdatest.controllers;
import…

speedster_10
- 1
- 1
0
votes
0 answers
Unable to Deploy Primefaces 12 Application on Payara 6 using Netbeans 17
I am currently using NetBeans 17 IDE for developing a Maven-based JSF/JSP application using Primefaces version 12. I've been deploying my application on Payara 5 without any issues, but recently, due to support discontinuation for Payara 5 and…

Buddhika Ariyaratne
- 2,339
- 6
- 51
- 88
0
votes
0 answers
Update of XJC / Jakarta causes `Map otherAttributes` to be generated, which subsequently causes runtime issues
Upgrading to jakarta caused some issues for me.
I'm using the following maven plugin:
org.patrodyne.jvnet
hisrc-higherjaxb40-maven-plugin
And I use episodal compilation (have libraries). Suddenly I'm…

Sjaak
- 3,602
- 17
- 29
0
votes
0 answers
Migrating to jakarta EE from javax EE will not work as dependencies are using javax EE
My project uses some old 3rd party library which the last updated version is at 2009. Now I am trying to migrate the project to use Jakarta EE. I replaced all package namespace "javax" with "jakarta". But some classes extend the 3rd party library…

rcdnz27
- 11
- 1
0
votes
0 answers
How to set namespace alias with Jaxb2Marshaller?
I'm using org.springframework.oxm.jaxb.Jaxb2Marshaller with Spring boot 3 to generated the soap envelope.
At the config, the marshaller is set this way:
@Bean
Jaxb2Marshaller marshalle() {
Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
…

MiguelSlv
- 14,067
- 15
- 102
- 169
0
votes
0 answers
jakarta.xml.bind.MarshalException: unable to marshal type as an element because it is missing an @XmlRootElement annotation
As we have request for file export for setting request we are try to migrate from javax to jakarta code throwing Exception at jaxb.marshal using jakarta.xml.bind 3.0jar
public String exportSettings(final String reason) throws EpcisException {
…

vivek204
- 1
- 1
0
votes
1 answer
ClassnotFoundException jakarta.Name:NamingException when running test CDITestRunner of deltaspike 1.9.6 with Jakarta
I am trying to use CDITestRunner in our tests using deltaspike with jakarta 1.9.6 versionand with apache open web beans.
which is not running the tests with CDITestRunner and throwing ClassnotFoundException…

Gaurav
- 33
- 8
0
votes
1 answer
Migrating Jackson from Java 8 to 17
I'm trying to upgrade my project from Java 8 to 17. Afaik this inherently includes replacing Javax with Jakarta. For that I used the Intellij Javax->Jakarta migration tool. My classes use com.fasterxml.jackson.annotation annotations JsonCreator…

wouterio
- 137
- 1
- 10
0
votes
0 answers
OpenJPA upgrade for jakarta persistence api
I have been trying to upgrade my project to spring 3.1.0 . It currently uses OpenJpa with java persistence schema 1.x.
If I upgrade the javax.persistence packages to jakarta.persistence packages, with…

Abha
- 1
- 1
0
votes
0 answers
Deploying Spring 5.x on Tomcat 10.x throws java.lang.ClassNotFoundException: javax.servlet.ServletContextListener
I'm trying to run a default Web project in the ide NetBeans(New project->Java with Ant->Java Web->Web application).
My version Netbeans 18. I'm download and install Apache Tomcat v.10.1.10. Spring Framework 5.2.9, include STL.
When compiling a…

zicrys
- 1
0
votes
1 answer
Java 17 - java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement
I have a gradle project in Java17 and when running a test I'm getting the following error:
java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement
This is how the test look like:
public class SettingsServiceTest extends…

Akinn
- 1,896
- 4
- 23
- 36
0
votes
1 answer
Getting java.lang.TypeNotPresentException: Type javax.servlet.http.HttpServletRequest not present in Spring boot latest migrated application
I have recently started the migration of our application from Spring Web version 5.x.x to 6.0.6
It progressively took to upgrade of Java 8 to 17 and Spring Boot version 2.x.x to 3 and which are the necessary libraries for this upgrade to be…

Naseer Mohammad
- 389
- 4
- 14
0
votes
0 answers
No latest version available for Spring-webflow-2.5.1.RELEASE.jar after 2018
can someone or Spring team please tell me if there is any latest version of Spring-webflow-2.5.1.RELEASE.jar which supports Tomcat 10 migration. Currently, this spring-webflow jar have references of javax.servlet.* whereas Tomcat 10 migration…

Nagarjuna
- 9
- 1
0
votes
0 answers
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest, when using Jakarta*
I am beginner to spring and upgrading my company's app from spring boot 2.1.11_RELEASE to 3.0.5. I have migrated from javax to jakarta but still getting this error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with…

Anurator
- 41
- 7
0
votes
1 answer
ActiveMQ HTTP Jakarta
I’m using ActiveMQ "Classic" 5.18.1 with Spring 6 and the Jakarta namespace. I’m using activemq-client-jakarta for TCP connections, but now I’m facing a new problem. I need to deal with http, but no activemq-http-jakarta jar is provided.
Are there…

Mançaux Pierre-Alexandre
- 858
- 1
- 11
- 42