<div dir="ltr">Hi George,<div><br></div><div>Can you send us some code that we can easily run to reproduce your issue ?</div><div><br></div><div>Thx</div><div><br></div><div>Antoine</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 18, 2017 at 9:50 AM Matej Novotny <<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi George<br>
<br>
Forge addons are far from my range of expertise so I am just going to shoot in the dark here :)<br>
<br>
Make sure you have beans.xml (with discovery mode all and enabled interceptor) in both JARS - the one which contains the interceptor, as well as the one trying to use it.<br>
<br>
If that doesn't work, try to tackle the interceptor a bit and use @Priority as a means of enablement (this enables interceptor globally as opposed to beans.xml which does that on per-bean-archive basis).<br>
Might not be what you seek but might also give us some additional information on whats going wrong.<br>
<br>
Matej<br>
<br>
----- Original Message -----<br>
> From: "George Gastaldi" <<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>><br>
> To: "Weld" <<a href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a>><br>
> Sent: Tuesday, July 18, 2017 1:37:15 AM<br>
> Subject: [weld-dev] WELD-001417 while enabling interceptors in JBoss Forge addons<br>
><br>
> Hello Welders !<br>
><br>
> Not sure if this is the right mailing list, but worth a shot ;)<br>
><br>
> I am trying to enable a CDI interceptor inside JBoss Forge addons but I am<br>
> facing a hard time making Weld understand that. The interceptor classes are<br>
> in the classpath but I keep getting this error:<br>
><br>
> WELD-001417: Enabled interceptor class<br>
> org.jboss.forge.addon.infinispan.MyInterceptor<br>
> (<class>org.jboss.forge.addon.infinispan.MyInterceptor</class> in<br>
> jar:file:/home/ggastald/.forge/addons/org-foo-foo-1-0-0-SNAPSHOT/foo-1.0.0-SNAPSHOT-forge-addon.jar!/META-INF/beans.xml@7)<br>
> does not match an interceptor bean: the class is not found, or not annotated<br>
> with @Interceptor and still not registered through a portable extension, or<br>
> not annotated with @Dependent inside an implicit bean archive<br>
><br>
> I have beans.xml with annotated-mode="all". I even added the @Dependent to<br>
> the interceptor class, but no luck. The current thread ClassLoader can<br>
> resolve the interceptor class also.<br>
><br>
> I've opened <a href="https://issues.jboss.org/browse/FURNACE-145" rel="noreferrer" target="_blank">https://issues.jboss.org/browse/FURNACE-145</a> with more information<br>
> on the subject, in case someone feels brave enough to help me out on this<br>
> :).<br>
><br>
> I appreciate any help!<br>
><br>
> Best Regards,<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> George Gastaldi<br>
><br>
> Principal Software Engineer<br>
><br>
> Red Hat<br>
><br>
> Remote<br>
><br>
> Joinville - Santa Catarina<br>
><br>
> <a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a> M: <a href="tel:+55%2047%2099711-1000" value="+5547997111000" target="_blank">+55-47-99711-1000</a><br>
> TRIED. TESTED. TRUSTED.<br>
> @redhatnews Red Hat Red Hat<br>
><br>
><br>
> _______________________________________________<br>
> weld-dev mailing list<br>
> <a href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
_______________________________________________<br>
weld-dev mailing list<br>
<a href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
</blockquote></div>