I've updated my project from java 11 to 17 and accordingly I had to update my wildfly version from 15 to 25 because the war of java17 is not compatible with wildfly 15. here my question is if I have to migrate my javax to jakarta because the wildfly now supports the Jakarta EE 8 after wildfly 17 release. So is it really compulsory to move to jakarta from javax or there is a workaround for this.
-
it should be the jakarta-ee version according to the docs: https://www.wildfly.org/news/2021/10/05/WildFly25-Final-Released/ ```The standard WildFly 25.0.0 distribution is a Jakarta EE 8 compatible implementation, compatible with both the Full Platform and the Web Profile. Evidence supporting our certification is available for the Full Platform and for the Web Profile.``` – meaningqo Jan 27 '23 at 09:45
-
@meaningqo Really sorry but I didnt get this properly. Like do I have to migrate to jakarta for wildfly 25 or I can still use the javax packages and the same in the .xml file. – Ruch Jan 27 '23 at 09:56
1 Answers
Jakarta EE 8 stil uses the javax.*
package. It's essentially exactly the same as Java EE 8, it was only the brand name that has changed.
Jakarta EE 9 was the first to use the jakarta.*
package. Jakarta EE 10 continues this trend.
Note that WildFly comes as "WildFly" and "WildFly Preview". As per the docs:
WildFly versions 17 - 26 are Jakarta EE 8.
WildFly Preview versions 22 - 26 are Jakarta EE 9.
WildFly and WildFly Preview version 27 is Jakarta EE 10.
In your specific case, you apparently have a Jakarta EE 8 application and a WildFly 25 server. So as long as you have picked "WildFly 25" and thus not "WildFly Preview 25", then you're fine. A quick way to verify is to blindly deploy your javax.*
targeted WAR to the server and check if it doesn't throw any NoClassDefFoundError
errors on javax.*
classes during runtime.
By the way, the latest WildFly version supporting Jakarta EE 8 is 26, and this is the one currently still actively maintained (at the time of writing, 26.1.3 was released only 9 days ago, and 25.x is not anymore maintained more than a year), so I strongly recommend to upgrade a step further from WildFly 25 to WildFly 26.
That said, you should really migrate to jakarta.*
as next step because javax.*
is clearly a dead end.

- 1,082,665
- 372
- 3,610
- 3,555