Page 1 of 1

Problem with PrimeFaces 10 used in a Jakarta EE 9 application

Posted: 19 Jul 2021, 21:10
by ric
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

Re: Problem with PrimeFaces 10 used in a Jakarta EE 9 application

Posted: 19 Jul 2021, 21:58
by Melloware
To me this sounds like a Payara issue as I have PF10 jakarta working fine in a Wildfly EE9 example project.

See my project here: https://github.com/melloware/wildfly-fa ... jakartaee9

Re: Problem with PrimeFaces 10 used in a Jakarta EE 9 application

Posted: 20 Jul 2021, 09:01
by ric
Thanks Melloware. I will send a message to Payara.

Re: Problem with PrimeFaces 10 used in a Jakarta EE 9 application

Posted: 21 Sep 2021, 13:50
by Elvis Fabiane
Good Morning. We are having the same problem. Payara 5,2021.7; primefaces 10.0.0; jdk11. Did you get any feedback or did you manage to solve it in another way? Thanks.

Re: Problem with PrimeFaces 10 used in a Jakarta EE 9 application

Posted: 22 Sep 2021, 13:28
by Wdiwel
Comparing the table shown in the previous article to this one, you can see that the JDK 11 compatibility theme moved from Jakarta EE 9 to Jakarta EE 9.1, which is still to be released this year.

While this obviously takes some time away from Jakarta EE 9 , planning for that latter release has started to some degree nevertheless, and some of the individual specifications and API projects have started their discussions. Note that everything presented in this article is preliminary and represents the current state of what is thought to be the direction in which Jakarta EE 9 will be heading, but it provides no guarantees that any of this will [url=https://sites.google.com/view/spacebarspeedtest/home]spacebar counter [/url]actually end up in Jakarta EE 9.

Re: Problem with PrimeFaces 10 used in a Jakarta EE 9 application

Posted: 27 Mar 2023, 17:11
by trademanager
It workedhappy wheels game for me. Thanks.