question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a Jakarta EE 9 version

See original GitHub issue
Issue Overview

Latest version of Admin Template references Java EE javax. APIs, thus not working in a Jakarta EE 9 setting.

Current Behaviour

If you start a new Web project, use jakarta.jakartaee-web-api 9.1 as a dependency together with admin-template 1.3.1 and deploy it on a Jakarta EE 9 server (e.g., WildFly 25.0.1 Preview EE 9.1) you get a NoClassDefFound exception, as admin-template will reference Jave EE 9 classes under javax. and the Jakarta EE 9 server will provide these classes under a new package naming structure jakarta..

Expected Behaviour

Admin Template could provide a Jakarta EE 9 version of the dependency, the same way PrimeFaces 10 does, using classifiers:

    <dependency>
      <groupId>org.primefaces</groupId>
      <artifactId>primefaces</artifactId>
      <version>10.0.0</version>
      <classifier>jakarta</classifier>
    </dependency>  

By adding the jakarta classifier, Maven would download a version of admin-template that has been built for Jakarta EE 9.

How to reproduce

I created an AdminFaces in Jakarta EE 9 Starter Project after performing the following:

  1. Cloned the admin-template repository;
  2. Upgraded Java EE references to Jakarta EE 9 references;
  3. Ran mvn deploy to create the new artifact at a local Maven repository;
  4. Then uploaded it to LabES UFES’ webserver in order for people to be able to declare it as a dependency in their Maven projects;
  5. Created the admin-starter-jee9 project as an example of use.

If you deploy the admin-starter-jee9 project in a Jakarta EE 9 server you will get the expected behavior. To get the current behavior, modify the project’s pom.xml to reference version 1.3.0 of admin-template instead of the 1.3.1-jakarta version I created.

Additional Information
  • AdminFaces version: 1.3.1
  • PrimeFaces version: 10.0
  • JSF implementation: Mojarra 3.0.0.SP04 under WIldFly 25.0.1 Preview EE 9.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rmpestanocommented, May 23, 2022

Hi @vitorsouza, starting from v1.4.0 adminfaces will be only compatible with jakarta ee package.

If needed we can create a legacy classifier to support javax package, ~please create an issue if that’s the case~ (done, see #210 ).

Thank you!

0reactions
rmpestanocommented, Jul 18, 2022

Hey @anumber8, thanks for the kind words!

For the PF 11 support we are already there, check admin-starter project (I still need to migrate the showcase and the other starter projects)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jakarta EE 9 Release | Java EE 9 | The Eclipse Foundation
The Jakarta EE 9 release is here, the future of Java EE. Download compatible products and see what's new in the specifications.
Read more >
Jakarta EE Platform 9 | The Eclipse Foundation - Jakarta® EE
Jakarta EE Platform 9 defines a standard platform for hosting Jakarta EE applications. Find specifications and compatible implementations.
Read more >
Jakarta EE 9 Released! | The Eclipse Foundation
This release provides a new baseline for the evolution and innovation of enterprise Java technologies under an open, vendor-neutral, community-driven process.
Read more >
Understanding Jakarta EE 9 | The Eclipse Foundation
With the release of Jakarta EE 9 this month, there are a few key points about the release that developers should keep in...
Read more >
Getting Started with Jakarta EE 9: Jakarta EE 9.1 - Payara Blog
The objective of Jakarta EE 9.1 is to provide certification on Java SE ... EE 8 (Payara Server 5) will also run on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found