[ 
https://issues.apache.org/jira/browse/OWB-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16883048#comment-16883048
 ] 

Greg Wilkins commented on OWB-1293:
-----------------------------------

OK, I worked out that I need to list all the dependencies independently (as the 
impl pom has them as provided).  I've done that and now get the exception 
below.   I've barely used CDI other than help with jetty integrations, so this 
doesn't mean much to me.  As I'm executing the same code as found in 
[https://github.com/apache/openwebbeans/blob/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/OWBInjector.java#L47]
  and it is working fine for Weld, then I'm guessing I've not setup something 
in OWB?    So I'll keep plodding along, but help would still be appreciated.

 

2019-07-11 16:50:18.122:WARN:oejc.CdiServletContainerInitializer:main: Unable 
to decorate org.eclipse.jetty.test.MyContextListener@194152cf
javax.enterprise.inject.UnsatisfiedResolutionException: Api type 
[org.eclipse.jetty.test.ServerID] is not found with the qualifiers |Qualifiers: 
[@javax.enterprise.inject.Default()]|for injection into Field Injection Point, 
field name : serverId, Bean Owner : [null]
 at 
org.apache.webbeans.util.InjectionExceptionUtil.throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:60)
 at 
org.apache.webbeans.container.InjectionResolver.getInjectionPointBean(InjectionResolver.java:292)
 at 
org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:79)
 at 
org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:65)
 at 
org.apache.webbeans.portable.InjectionTargetImpl.injectFields(InjectionTargetImpl.java:227)
 at 
org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:213)
 at 
org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:203)
 at org.eclipse.jetty.cdi.CdiDecorator.decorate(CdiDecorator.java:118)
 at 
org.eclipse.jetty.util.DecoratedObjectFactory.decorate(DecoratedObjectFactory.java:79)
 at 
org.eclipse.jetty.servlet.ServletContextHandler$Context.createListener(ServletContextHandler.java:1451)
 at org.eclipse.jetty.servlet.ListenerHolder.doStart(ListenerHolder.java:91)
 at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
 at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:351)
 at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1443)
 at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1407)
 at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:818)
 at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:276)
 at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
 at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
 at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
 at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:119)
 at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:106)
 at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
 at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
 at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:119)
 at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:106)
 at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
 at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
 at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
 at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:106)
 at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
 at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
 at org.eclipse.jetty.server.Server.start(Server.java:407)
 at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
 at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:106)
 at org.eclipse.jetty.server.Server.doStart(Server.java:371)
 at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
 at 
org.eclipse.jetty.xml.XmlConfiguration.lambda$main$0(XmlConfiguration.java:1824)
 at java.base/java.security.AccessController.doPrivileged(Native Method)
 at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1773)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
 at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at org.eclipse.jetty.start.Main.invokeMain(Main.java:218)
 at org.eclipse.jetty.start.Main.start(Main.java:491)
 at org.eclipse.jetty.start.Main.main(Main.java:77)

> 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)

Reply via email to