-
Notifications
You must be signed in to change notification settings - Fork 494
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
Upgrade from Payara 5 to 6 #8774
Conversation
1. The Jersey dependencies in use did not use the versions imported via the Payara BOM (which itself imports a Jersey BOM). 2. The coordinates for the server package changed, re-aligned.
…nly #8305 This avoids potential trouble were it's unclear from where the higher exceptions come from, javax or jakarta namespace.
Also add provided dependency of our persistence provider to POM to allow class resolution in IDEs.
For now this is payara-6.2022.1.Alpha2 (the latest).
update docker-aio for Payara 6 #8305
The jars were built from this commit (scratch work): pdurbin/rewrite@d494160
Conflicts (just javax vs. jakarta imports): src/main/java/edu/harvard/iq/dataverse/TemplatePage.java
…22.1.Alpha2.zip
#8305 Vagrantfile.payara6 deploys 8305-payara6 warfile on payara-6-A2
Also, in docker-aio, restore lines to publish root dataverse collection (uses SWORD, known to be broken) and grant perms. Also update scripts and config related to installer or dev environments.
Otherwise, at runtime, SWORD APIs fail (and who knows what else). Note that CDI 4.0 is coming with Jakarta EE 10 and we'll need to switch to "annotated" then.
In EditDDI I was seeing a NullPointerException on line 136 (createNewDraftVersion). Switch from `@Context HttpServletRequest` to our ordinary way of API auth fixed it. In DataversesIT I was seeing an OptimisticLockException so I added a sleep.
Conflicts (all javax vs jakarata): src/main/java/edu/harvard/iq/dataverse/EditDatafilesPage.java src/main/java/edu/harvard/iq/dataverse/UserNotification.java src/main/java/edu/harvard/iq/dataverse/UserNotificationServiceBean.java src/main/java/edu/harvard/iq/dataverse/api/Notifications.java src/main/java/edu/harvard/iq/dataverse/api/datadeposit/MediaResourceManagerImpl.java src/main/java/edu/harvard/iq/dataverse/authorization/providers/builtin/DataverseUserPage.java src/main/java/edu/harvard/iq/dataverse/authorization/users/AuthenticatedUser.java src/main/java/edu/harvard/iq/dataverse/util/FileUtil.java src/main/java/edu/harvard/iq/dataverse/util/json/JsonPrinter.java src/test/java/edu/harvard/iq/dataverse/util/json/JsonPrinterTest.java
Note that we need to swap Payara 6.2022.1.Alpha2 for the final version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there's been some movement on the Payara side, a good time for this to go back into dev.
(Also, note that it's showing a few conflicts now)
Correct - a |
With the release of prettyfaces/rewrite 5.0.0.Alpha1 they finally released a version compatible with at least Jakarta EE 9. This includes the patches @pdurbin applied to our local build, too. Removing the local built, too. See also: ocpsoft/rewrite#304
9f45769
to
74ef320
Compare
@pdurbin what do we do with this PR? It's based on Jakarta EE 9.1, but we need EE 10. I did that in https://github.com/IQSS/dataverse/tree/8305-payara6-ee10. Should we open a new PR? |
@poikilotherm yes, a new PR is better. I'm closing this one. Thanks! |
This is the new PR (thanks, @poikilotherm!): I deleted the old branch to reduce confusion. 😄 |
What this PR does / why we need it:
Payara 5 is going EOL.
Which issue(s) this PR closes:
Special notes for your reviewer:
local_lib
. Check EE9 Compatible Release ocpsoft/rewrite#304 for progress toward a compatible release from upstream.attachment;
for the user if it isn't supplied?Suggestions on how to test this:
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No
Is there a release notes update needed for this change?:
Yes, a stub is included.
Additional documentation:
None but references in the guides to Payara 5 have been switched to Payara 6.