-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Deploying WAR with ee10-cdi-spi
fails with Weld 5/CDI 4
#10356
Comments
ee10-cdi-spi
ee10-cdi-spi
fails with Weld 5/CDI 4
@justin-tay thanks for the heads-up. I've created #10359 to fix the issue. We can mostly fix it on our side, as there are a few combinations of our |
FYI, raised issue https://issues.redhat.com/browse/WELD-2751 regarding the classloading difficulties now that cdi-api needs to also be on the server's classpath. |
* Issue #10356 Update Weld integration Signed-off-by: Olivier Lamy <[email protected]> Co-authored-by: Olivier Lamy <[email protected]>
@justin-tay fix to jetty has been committed. You might like to test it. |
* Issue #10356 Update Weld integration Signed-off-by: Olivier Lamy <[email protected]> Co-authored-by: Olivier Lamy <[email protected]>
I've just tested it and However I also tried enabling |
Closing as |
Jetty version(s)
12.0.0
Jetty Environment
ee10
Java version/vendor
(use: java -version)
openjdk 17.0.7 2023-04-18 LTS
OpenJDK Runtime Environment Corretto-17.0.7.7.1 (build 17.0.7+7-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.7.7.1 (build 17.0.7+7-LTS, mixed mode, sharing)
OS type/version
Windows 11 22H2
Description
The
ee10-cdi-spi
does not work with Weld 5/CDI 4.The
CdiSpiDecorator
attempts to find thecreateInjectionTarget
which does not appear in CDI 4. https://jakarta.ee/specifications/coreprofile/10/apidocs/jakarta/enterprise/inject/spi/beanmanagerhttps://github.com/eclipse/jetty.project/blob/28100e8da711e44c0722ed10bd413ae862497539/jetty-ee10/jetty-ee10-cdi/src/main/java/org/eclipse/jetty/ee10/cdi/CdiSpiDecorator.java#L86
I think the equivalent should be something like
How to reproduce?
java -jar %JETTY_HOME%/start.jar --add-modules=http,ee10-deploy,ee10-annotations,ee10-websocket-jakarta,ee10-cdi-spi
Using
ee10-cdi-decorate
doesn't work either because Weld 5'sorg.jboss.weld.environment.jetty.JettyContainer
isn't using theorg.eclipse.jetty.ee10.cdi
,org.eclipse.jetty.ee10.cdi.decorator
,org.eclipse.jetty.ee9.cdi
,org.eclipse.jetty.ee9.cdi.decorator
attributes but I think that requires changes on their end.The text was updated successfully, but these errors were encountered: