<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 &lt;<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>&gt; 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&#39;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>
&gt; From: &quot;George Gastaldi&quot; &lt;<a href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a>&gt;<br>
&gt; To: &quot;Weld&quot; &lt;<a href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a>&gt;<br>
&gt; Sent: Tuesday, July 18, 2017 1:37:15 AM<br>
&gt; Subject: [weld-dev] WELD-001417 while enabling interceptors in JBoss Forge    addons<br>
&gt;<br>
&gt; Hello Welders !<br>
&gt;<br>
&gt; Not sure if this is the right mailing list, but worth a shot ;)<br>
&gt;<br>
&gt; I am trying to enable a CDI interceptor inside JBoss Forge addons but I am<br>
&gt; facing a hard time making Weld understand that. The interceptor classes are<br>
&gt; in the classpath but I keep getting this error:<br>
&gt;<br>
&gt; WELD-001417: Enabled interceptor class<br>
&gt; org.jboss.forge.addon.infinispan.MyInterceptor<br>
&gt; (&lt;class&gt;org.jboss.forge.addon.infinispan.MyInterceptor&lt;/class&gt; in<br>
&gt; 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>
&gt; does not match an interceptor bean: the class is not found, or not annotated<br>
&gt; with @Interceptor and still not registered through a portable extension, or<br>
&gt; not annotated with @Dependent inside an implicit bean archive<br>
&gt;<br>
&gt; I have beans.xml with annotated-mode=&quot;all&quot;. I even added the @Dependent to<br>
&gt; the interceptor class, but no luck. The current thread ClassLoader can<br>
&gt; resolve the interceptor class also.<br>
&gt;<br>
&gt; I&#39;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>
&gt; on the subject, in case someone feels brave enough to help me out on this<br>
&gt; :).<br>
&gt;<br>
&gt; I appreciate any help!<br>
&gt;<br>
&gt; Best Regards,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; George Gastaldi<br>
&gt;<br>
&gt; Principal Software Engineer<br>
&gt;<br>
&gt; Red Hat<br>
&gt;<br>
&gt; Remote<br>
&gt;<br>
&gt; Joinville - Santa Catarina<br>
&gt;<br>
&gt; <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>
&gt; TRIED. TESTED. TRUSTED.<br>
&gt; @redhatnews Red Hat Red Hat<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; weld-dev mailing list<br>
&gt; <a href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a><br>
&gt; <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>