-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report: load primefaces as lib will cause __admingui failure #6372
Comments
You need the |
The stacktrace states that the javax.faces... class is missing. Which IMO suggests that you haven't put the jakarta version of primefaces into the domain lib. |
@svendiedrichsen , sorry, I was confused, in my understanding, payara-6 will support jarkata.faces.context.X name space and it will not dependent on javax.faces.context.X. Otherwise, please advise! |
I think you are still confused. Please re read the thread carefully. |
@cidylong I am talking about the primeface lib you put into the domain lib. Not the (provided) dependency from your app pom. I seems you have put the primefaces version referencing the javax.faces... namespace into the domain lib. But you should have put the primefaces version referencing the jakarata.faces... namespace there. |
@svendiedrichsen , I had added primefaces to payara domain lib as common type [$PAYARA_HOME/bin/asadmin --password file add-library --type common /home/payara/software/lib/primefaces-13.0.0.jar], seems there is no way to use parameters to let payara to load this lib with extension "-jarkata". Please advise! |
There is no specific parameter to be used. Either the primefaces version you deploy uses the javax.faces or the jakarta.faces namespace. Have you ever tried not putting it in the domain/lib folder but have it deployed with your app? Does that work? |
I had added it to $PAYARA_DOMAIN/lib by run [$PAYARA_HOME/bin/asadmin --passwordfile add-library --type common /home/payara/software/lib/primefaces-13.0.0.jar] and then use it by every individual applications (such as: EJBs and WARs) through pom.xml dependency with and tags (as above attached). It works fine in my EJB applications, which means EJB applications will use jarkata.faces.context.X name space properly over pom.xml dependency configure. I will test WAR application later, I believe it will works fine as well. |
@svendiedrichsen , this is most likely __admingui application class loader issue. I mean __admingui web application should be able to handle multiple JSF implementations in the lib path and only dependents on Mojarra implementation (as it is proposed). |
@cidylong Thanks for testing. Could you please check that the jar that you succesfully tested with you application is the same, and I mean literally the same, you put into the domain/lib folder? You wrote before that you intstalled the library from your local file sytem under |
@svendiedrichsen , Yes. I had double checked. After I loaded the lib, primefaces-13.0.0.jar is seating in $PAYARA_DOMAIN/lib. |
@cidylong we seem to talk past each other all the time. As @lprimak stated there are two different versions of the primefaces library since version 10.0.0-RC2. One using the javax.faces namespace and one using the jakarta.faces namespace. Please make sure that you put the one using the jakarta.faces namespace into the domain/lib folder. |
@svendiedrichsen , probably I have to build primefaces lib from sources by using -jarkata options? please reply to confirm it. |
No, this version already exists. You should be able, as @lprimak wrote earlier, to use the classifier jakarta in an application build. The jar that will be used by the app then should be the jakarta version and you should be able to find it under WEB-INF/lib af this application. You can then use this version for the domain/lib of the payara. |
you have much patience @svendiedrichsen :) |
Thank you. But I'm afraid this was my last try. If this doesn't cut it I'm out of words. |
@lprimak , @svendiedrichsen , Thank you for your advice. I had find it from my MacOS local maven repository, location is: /Users/cidylong/.m2/repository/org/primefaces/primefaces/13.0.0/primefaces-13.0.0-jakarta.jar I will test it later. |
Greetings @cidylong, I will close this issue as it seems that there are no errors. If you require further assistance please navigate to Payara Forum. Best Regards, |
@Elifzeynepedman . Hi Elif. I just tested it again. The issue is still here, I will raise another issue. |
Brief Summary
This issue (Issue #6306) was reported in payara-6.2023.5-7, and it is still here.
The main issue is, when primefaces-13.0.0.jar was loaded into domain, then restart domain, DAS server started properly but admin gui application __admingui will failure to start.
Expected Outcome
__admingui will dependent on mojarra instead of other jsf implementation.
Current Outcome
When other jsf implementation (such as primefaces) was load as lib, __admingui failed to load
Reproducer
configure payara-6.2023.5 or newer version.
add primefaces-12.0.0.jar or newer version as lib
restart payara domain.
__admingui failed.
Operating System
Rocky Linux 9
JDK Version
Oracle idk 17.0.7
Payara Distribution
Payara Server Full Profile
The text was updated successfully, but these errors were encountered: