Problem with PrimeFaces 10 used in a Jakarta EE 9 application
Posted: 19 Jul 2021, 21:10
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 Payara uses a transformer to transform the application to a Jakarta EE 8 application (javax namespace).
My application works if I have no dependency to PrimeFaces in pom.xml. 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"), I get this error:
"WELD-000119: Not generating any bean definitions from fr.grin.tpcustomer.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.
Can someone explain to me the reason for this problem? Is there a way to use PrimeFaces 10 in my application?
Remark: If I add the classifier "jakarta" to the PF dependency, all the classes from the packages "jarkarta" (probably used by PF) are not found and cause errors when I launch the application.
Richard
My code uses the namespace "jakarta" but Payara uses a transformer to transform the application to a Jakarta EE 8 application (javax namespace).
My application works if I have no dependency to PrimeFaces in pom.xml. 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"), I get this error:
"WELD-000119: Not generating any bean definitions from fr.grin.tpcustomer.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.
Can someone explain to me the reason for this problem? Is there a way to use PrimeFaces 10 in my application?
Remark: If I add the classifier "jakarta" to the PF dependency, all the classes from the packages "jarkarta" (probably used by PF) are not found and cause errors when I launch the application.
Richard