I use PrimeFaces 10 in a Jakarta EE 9 web application. The server is Payara 5.2021.4 and the JDK is Java 11.
My code uses the namespace "jakarta" but, if I understood correctly, Payara transforms jakarta in the package names..
My application works if I have no dependency to PrimeFaces in pom.xml. In particular, a JSF table (not a PF table) in a JSF page retrieves a lot of items.
If I add a dependency to PrimeFaces 10 (without the classifier "jakarta") without modifying the code of the application, the build has no error but I get this message when I launch the application (I have emphasized "jarkata in the message):
"WELD-000119: Not generating any bean definitions from ....session.CustomerManager because of underlying class loading error: Type jakarta.persistence.EntityManager not found. If this is unexpected, enable DEBUG logging to see the full error."
and my application is not working anymore: no items are retrieved by the JSF table.
I can't understand why I get this error. Can you help me? Is it linked to the transformer from Jakarta EE 9 to Jakarta EE 8? Did anyone use PrimeFaces 10 in the same context? How can I do?
Regards,
Richard