-
Notifications
You must be signed in to change notification settings - Fork 287
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
Add support for Jetty 12 #2872
Add support for Jetty 12 #2872
Conversation
Hello and thanks for the PR. Before merging it, we should probably also take a look at Jetty servlet testing. If you want to take a look at that as well, be my guest. If not, I'll poke around but it might take me a while as my jetty understanding is very low :) |
I took a look but Jetty 12 requires JDK 17 which the first issue - Weld 5 is compatible with EE 10 and as such needs to be able to run with JDK 11. This way, we couldn't run servlet tests on JDK 11.
Code I've changed can be seen here (on top of your commit) - https://github.com/weld/core/compare/master...manovotn:core:jetty12?expand=1 @justin-tay what did you test your proposed change with? Can you share it? |
I have built an example project for testing at https://github.com/justin-tay/jetty-weld-war-example. Jetty 12 EE10 does the CDI setup in Currently Weld is set to the snapshot in the POM but if you change it to the release you should see the issue. |
I have managed to get the Jetty tests to run and most of them to pass on this branch https://github.com/justin-tay/core/tree/test_jetty12_master.
|
It looks like the changes to the I had reported a separate issue with the |
Thanks, will check out.
Why do you need to add
I see, I will wait for resolution of the linked PR, thanks for the heads-up. |
The params is to use the mode I'm not sure which mode the tests were previously using however I'm guessing that previously it was the Line 23 in 5e47006
The other possibility is if the |
Any of the Jetty |
Closing this PR as the proposed changes are no longer needed thanks to linked Jetty PR. |
The support for the
CdiDecoratingListener
in theJettyContainer
does not work in Jetty 12 as the attribute names now also contain the environment names of the module.ee9-cdi-decorate
JETTY_CDI_ATTRIBUTE
org.eclipse.jetty.ee9.cdi
CDI_DECORATING_LISTENER_ATTRIBUTE
org.eclipse.jetty.ee9.cdi.decorator
ee10-cdi-decorate
JETTY_CDI_ATTRIBUTE
org.eclipse.jetty.ee10.cdi
CDI_DECORATING_LISTENER_ATTRIBUTE
org.eclipse.jetty.ee10.cdi.decorator
Existing Codes:
core/environments/servlet/core/src/main/java/org/jboss/weld/environment/jetty/JettyContainer.java
Line 46 in b57d3e9
core/environments/servlet/core/src/main/java/org/jboss/weld/environment/jetty/JettyContainer.java
Line 49 in b57d3e9
References: