Problem with PrimeFaces 10 used in a Jakarta EE 9 application

UI Components for JSF
Post Reply
ric
Posts: 20
Joined: 21 Mar 2010, 12:25

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

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

19 Jul 2021, 21:58

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
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

ric
Posts: 20
Joined: 21 Mar 2010, 12:25

20 Jul 2021, 09:01

Thanks Melloware. I will send a message to Payara.

Elvis Fabiane
Posts: 16
Joined: 12 Dec 2013, 19:01

21 Sep 2021, 13:50

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.

Wdiwel
Posts: 1
Joined: 22 Sep 2021, 13:21
Location: usa
Contact:

22 Sep 2021, 13:28

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.

trademanager
Posts: 5
Joined: 16 Mar 2023, 05:46

27 Mar 2023, 17:11

It workedhappy wheels game for me. Thanks.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests