I have a web app running on JDK 11, Liferay 7.3.7, PrimeFaces 7, and javax.faces 2.2.
I would like to upgrade to JDK 21 and Liferay 7.4 with PrimeFaces 12. I’ve tried several times by creating new projects, but I always end up missing many JAR dependencies for the new javax.faces (some of which have been changed with the jakarta prefix).
Is there a ready-to-use workspace available, or any JARs with Jakarta patches that can be added to OSGi/modules? Thanks.
1 Answer
1Java 21 and Jakarta namespace are two different things.
You should be able to run any JDK 11 code using the JDK 21 runtime, forwards compatibility is a standard Java thing.
For Jakarta namespace, you’d have to update to 2026.Q1+ and update your dependencies and code to use the jakarta namespace across the board.