[ https://issues.apache.org/jira/browse/OWB-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896591#comment-16896591 ]
Greg Wilkins commented on OWB-1293: ----------------------------------- I have updated both [1] and [2] but it still doesn't work with either cdi or cdi2 modules (new and old). If you look at my branch [https://github.com/eclipse/jetty.project/tree/jetty-9.4.x-3804-Decoration] now you will see I have created test-owb-cdi-webapp and I am trying to run it in our integration test called CDITests. It results in output like: {{2019-07-31 08:29:31.825:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: Jul. 31, 2019 8:29:31 AM org.apache.webbeans.lifecycle.AbstractLifeCycle bootstrapApplication 2019-07-31 08:29:31.825:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: INFO: OpenWebBeans Container is starting... 2019-07-31 08:29:31.836:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: Jul. 31, 2019 8:29:31 AM org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery addWebBeansXmlLocation 2019-07-31 08:29:31.836:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: INFO: added beans archive URL: file:/usr/local/home/gregw/src/jetty-9.4.x/tests/test-distribution/target/tests/test-bases/jetty_base_1152707028274635432/webapps/demo/WEB-INF/classes/META-INF/beans.xml 2019-07-31 08:29:32.004:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: Jul. 31, 2019 8:29:32 AM org.apache.webbeans.config.BeansDeployer validateInjectionPoints 2019-07-31 08:29:32.004:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: INFO: All injection points were validated successfully. 2019-07-31 08:29:32.007:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: Jul. 31, 2019 8:29:32 AM org.apache.webbeans.lifecycle.AbstractLifeCycle bootstrapApplication 2019-07-31 08:29:32.007:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: INFO: OpenWebBeans Container has started, it took [180] ms. 2019-07-31 08:29:32.008:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: 2019-07-31 08:29:32.007:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@183ec003\{OWB CDI Integration Test WebApp,/demo,file:///usr/local/home/gregw/src/jetty-9.4.x/tests/test-distribution/target/tests/test-bases/jetty_base_1152707028274635432/webapps/demo/,UNAVAILABLE}{/usr/local/home/gregw/src/jetty-9.4.x/tests/test-distribution/target/tests/test-bases/jetty_base_1152707028274635432/webapps/demo} 2019-07-31 08:29:32.008:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: java.lang.IllegalStateException: CDI did not inject! 2019-07-31 08:29:32.008:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: at org.eclipse.jetty.test.MyContextListener.contextInitialized(MyContextListener.java:36) 2019-07-31 08:29:32.008:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:918) 2019-07-31 08:29:32.008:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:554) 2019-07-31 08:29:32.008:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:885) 2019-07-31 08:29:32.008:INFO:oejtd.DistributionTester:ConsoleStreamer/STDERR: at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:357)}} ... > Update Jetty integration prior to Jetty-10 release > -------------------------------------------------- > > Key: OWB-1293 > URL: https://issues.apache.org/jira/browse/OWB-1293 > Project: OpenWebBeans > Issue Type: Improvement > Components: Interceptor and Decorators > Reporter: Greg Wilkins > Priority: Major > > The current jetty integration relies on exposing private jetty APIs so a > jetty Decorator can be registered. This is fragile and requires different > APIs for the upcoming jetty-10 release. > Instead, Jetty is developing a mechanism where a object with a decorator > signature can be set as a context attribute and it will be introspected and > dynamically registered as a decorator without any API dependencies. > This is currently being developed in > [https://github.com/eclipse/jetty.project/pull/3838] and an integration with > Weld is at [https://github.com/weld/core/pull/1926] > Feedback is sought from the OpenWebBeans team on the approach and then we'd > like to collaborate to make a similar integration. > > > -- This message was sent by Atlassian JIRA (v7.6.14#76016)