-
Notifications
You must be signed in to change notification settings - Fork 357
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
Complete the upgrade to servlet6 and grizzly4 #5006
Comments
Working on that ... it will need 4.0.0-M1 of grizzly. |
Good! |
…6.0.0 Signed-off-by: David Matějček <[email protected]>
…6.0.0 Signed-off-by: David Matějček <[email protected]>
Signed-off-by: David Matějček <[email protected]>
Are we there yet to release an -M4 of Jersey? @jansupol ? |
@arjantijms Including CDI 4 support or without? |
A milestone of the current 3.1 branch (https://github.com/eclipse-ee4j/jersey/tree/3.1) would be great. Any further additions could then go to a M5. In what way is CDI support lacking currently in the state of the 3.1 branch? You mean the dependencies are still set to CDI 3? |
Yes, the deps are set to CDI 3, right now. We have the OSGi headers set to accept both CDI 3 and CDI 4. That is ok. I have an open PR to update CDI. The issue is with bean validation, For the CDI 4, hibernate validator 8 (and EL 5) is required (by OSGi). On the other hand, it only affects |
Also, I can see this SNAPSHOT dependency - Please know that Arguillian cannot be used for the deployment with GF 7 M2 & M3 because of this. |
There would be an issue with CDI 4, too, with current 3.1 branch - A deprecated method is still used, see #5016 |
I hear you, it's super annoying to have these. In general there's a lot of chicken and egg going on, where various projects depend on each other and we can't make progress otherwise, or would have to wait for months when each individual project makes a move. I made a special note about these dependencies here: https://github.com/eclipse-ee4j/glassfish/releases/tag/7.0.0-M3 You can use GF with Arquillian, but obviously have to build that snapshot dependency locally first. It's absolutely not great, I know, hence why we are trying to resolve them as quick as possible (which still take weeks often). |
Hi Arjan, the 3.1.0-M4 version of Jersey is in staging. (@arjantijms) |
@senivam thanks for the update! I'll integrate it in GF 7 asap. Thx! |
@senivam still one small issue with M4:
|
I guess "org.glassfish.jersey.inject.jersey-hk2" should link to the latest HK2 release instead of an older version? |
There is no new HK2 (major), still version 3. |
Could |
I have downloaded the GF (from eclipse-ee4j/glassfish#23876):
Looks like an HK2 issue more then Jersey |
Nope ... I rebuilt jersey at bf4d9f4 and then glassfish with -Djersey.version=3.1.0-SNAPSHOT and it doesn't start from another reason:
I can try yet previous commit in several minutes ... seems like some transitive jersey dependency issue. |
Sorry, what makes you think missing |
Also 3.1.0-M4 has hibernate-validator 8 in dependencies, gf uses 7.0.0-SNAPSHOT.
Because jersey version is the only change since the last successful build where gf maybe 100 times started :-) |
That's dodgy! What we can do then, is to grab the latest working GF and try to deploy the new Jersey jars there... |
Haha, I am wrong, I forgot on three other snapshots ... the jersey commit before your changes now failed from the same reason as the last build. Ok, so what is next ... probably we can try to do also other upgrades ... |
It looks like the following is the concrete issue. The MANIFEST.MF of jersey-hk2.jar contains the following line: "Require-Capability: osgi.ee;filter:="(osgi.ee=UNKNOWN)" GlassFish/Felix looks for a capability matching that, but the only ones we have are:
In full, these are:
So we don't have a capability matching "UNKNOWN". Because of that resolving fails. The question is, is "UNKNOWN" a mistake in that jar, or do we actually need a capability called "UNKNOWN"? |
Shocking surprise - I tried to sync also with hibernate-validator 8.0.0.Alpha2, built too on jenkins, and it has the same issue: |
Oh dear... |
And another surprise: hibernate-validator 8 build does it even on my laptop, at least when I used JDK17 for the build. So at least it is reproducible, tomorrow I will find out why :-) |
When I patch jersey-hk2.jar to contain
The build and tests do pass: eclipse-ee4j/glassfish#23876 |
regarding the fix for the missing OSGi version I have a fix (which is maven-bundle-plugin version update from 3.5.0 to 5.1.4) in the another PR - #5001, but it's not merged yet. |
Shall I merge that PR, or do we need to wait for the CQ? |
Hi Arjan, I would appreciate if @jansupol take a look to the PR prior to its merging. And, for sure, CQ also has to be resolved. I think, your manual patch for now is sufficient to keep GF going with the actual M4 version of Jersey, so we have a bit of time to prepare M5 with some more changes. Thank you for the patience. |
Thanks for your reply @senivam, looking forward to M5. Maybe I can help a little with it, but I also have many other things todo for GF and EE 10 still. Let me know if there's anything I can directly help with. |
@arjantijms Is there any rush for Jersey M5? From my perspective, GF patched our issue - thanks - so the M5 is not required at the moment? Or does GF want to have M5 so that the patch is not required? |
@jansupol not a super big rush of course, but indeed, it's the latter reason. Patches are always nasty to have in a project and generally some user will be confused by it in some way. So just trying to keep patches to a minimal and therefor hope to be able to use a Jersey version without needing to patch it. |
I would not hurry so much now - I'm trying to push GF to another stable milestone, it would be nice to have M5 in dependencies rather than any custom hack or snapshot build, but it must be compatible with other parts. So let's say that tomorrow morning it would be perfect to have milestone releases for jersey and also hibernate which has the same problem (and also milestone for Metro-WSIT). I will push PR for both soon. If not, we can still build a snapshot, but to avoid another issues with builds I will use my own repo which will be periodically updated after successful build with glassfish (or I will report/fix the issue before updating the branch, so any development in eclipse's repo will not break glassfish's build). There is always some way :-) |
@dmatej, @arjantijms We will create M5 without any changes but the fixed OSGi headers so that GF release does not have any additional issues. |
@dmatej , @arjantijms , @jansupol So, basically we have it / I mean Jersey 3.1.0-M5. I've just checked the OSGi versions in the MANIFEST.MF files and it looks like fixed. So, I presume, it's possible to integrate the M5 version into the GF. |
The text was updated successfully, but these errors were encountered: