<div dir="auto"><div dir="ltr">Yes, please find attached a ZIP containing two addons.<div><br></div><div>To reproduce it, follow the steps:</div><div><br></div><div>1) Unzip the attached file (say in /tmp)</div><div>2) Start Forge</div><div>3) Run addon-build-and-install --project-root /tmp/infinispan</div><div>4) Run addon-build-and-install --project-root /tmp/foo</div><div>5) Stop Forge and start it again</div><div>6) In another bash window, run tail -f ~/.forge/log/forge.log and you should see the Weld output.</div><div>7) If no errors are found, running the command "x" should print something</div><div><br></div><div>@Matej, same error using @Priority :(</div><div><br></div><div>I am still investigating</div><div class="gmail_extra"><br clear="all"><div><div class="m_-7307059955841161269gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Best Regards, <div><div dir="ltr"><div><div dir="ltr"><div><p style="font-weight:bold;margin:0;padding:0;font-size:14px;text-transform:uppercase;margin-bottom:0"><span></span></p><p style="font-weight:bold;margin:0;padding:0;font-size:14px;text-transform:uppercase;margin-bottom:0"><span><br></span></p><br><div>
<p style="font-weight:bold;margin:0;padding:0;font-size:14px;text-transform:uppercase;margin-bottom:0"><span>George</span> <span>Gastaldi</span></p>
<p style="font-weight:normal;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>Principal Software Engineer</span></p>
<p style="font-weight:normal;margin:0;font-size:10px;color:#999"><a style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:'overpass',sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span> </span></a></p>
<span style="font-size:10px;margin:0px;color:rgb(153,153,153)"><p style="font-size:10px;margin:0">Remote</p></span>
<span><p style="font-size:10px;margin:0;color:#999">Joinville - Santa Catarina</p></span>
<p style="font-weight:normal;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)"><span style="margin:0px;padding:0px">
<a style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:'overpass',sans-serif" href="mailto:ggastald@redhat.com" target="_blank">ggastald@redhat.com</a> </span>
<span>M: <a href="tel:+55-47-99711-1000" style="color:#0088ce;font-size:11px;margin:0;text-decoration:none;font-family:'overpass',sans-serif" target="_blank">+55-47-99711-1000</a></span><span><span></span></span></p>
<table border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"> <img src="https://www.redhat.com/files/brand/email/sig-redhat.png" height="auto" width="90"></a> </td>
<td style="font-weight:normal;font-size:10px">
<div><a href="https://redhat.com/trusted" style="text-decoration:none;color:#c00;font-weight:bold" target="_blank">TRIED. TESTED. TRUSTED.</a></div>
</td></tr></tbody></table>
<div style="font-weight:normal;font-size:10px">
<div style="color:rgb(153,153,153)"><a href="https://twitter.com/redhatnews" title="twitter" style="background-image:url(https://www.redhat.com/files/brand/email/sm-twitter.png);height:20px;text-decoration:none;color:#777;display:inline-block;line-height:20px;padding-left:16px;background-repeat:no-repeat;background-position:0 50%" target="_blank">@redhatnews</a>
<a href="https://www.linkedin.com/company/red-hat" title="LinkedIn" style="background-image:url(https://www.redhat.com/files/brand/email/sm-linkedin.png);height:20px;text-decoration:none;color:#777;display:inline-block;line-height:20px;padding-left:16px;background-repeat:no-repeat;background-position:0 50%" target="_blank">Red Hat</a>
<a href="https://www.facebook.com/RedHatInc" title="Facebook" style="background-image:url(https://www.redhat.com/files/brand/email/sm-facebook.png);height:20px;text-decoration:none;color:#777;display:inline-block;line-height:20px;padding-left:16px;background-repeat:no-repeat;background-position:0 50%" target="_blank">Red Hat</a> </div>
</div>
</div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jul 18, 2017 at 10:12 AM, Antoine Sabot-Durand <span dir="ltr"><<a href="mailto:asd@redhat.com" target="_blank">asd@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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><span class="m_-7307059955841161269HOEnZb"><font color="#888888"><div><br></div><div>Antoine</div></font></span></div><div class="m_-7307059955841161269HOEnZb"><div class="m_-7307059955841161269h5"><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" target="_blank">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.infinisp<wbr>an.MyInterceptor<br>
> (<class>org.jboss.forge.addon.<wbr>infinispan.MyInterceptor</clas<wbr>s> in<br>
> jar:file:/home/ggastald/.forge<wbr>/addons/org-foo-foo-1-0-0-<wbr>SNAPSHOT/foo-1.0.0-SNAPSHOT-fo<wbr>rge-addon.jar!/META-INF/beans.<wbr>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/brows<wbr>e/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>
> ______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/weld-dev</a><br>
______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/weld-dev</a><br>
</blockquote></div>
</div></div></blockquote></div><br></div></div></div>