<div dir="ltr">Did you saw this message when deploying?<div><br></div><div>:# Message: Deployment %s contains CDI annotations but no bean archive was not found. (No beans.xml nor class with bean defining annotations)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-23 4:24 GMT-03:00 Ingo Weiss <span dir="ltr">&lt;<a href="mailto:ingo@redhat.com" target="_blank">ingo@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 22/03/2016 13:28, Stuart Douglas wrote:<br>
&gt; Where are you trying to use these?<br>
&gt;<br>
&gt; Stuart<br>
&gt;<br>
&gt; On Wed, 23 Mar 2016, 00:18 Ingo Weiss &lt;<a href="mailto:ingo@redhat.com">ingo@redhat.com</a><br>
&gt; &lt;mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
</span><div><div class="h5">&gt;     Hi,<br>
&gt;<br>
&gt;     I was testing injecting the default ManagedExecutorService on WF10 and<br>
&gt;     it returns a NullPointerException if I don&#39;t do a lookup.<br>
&gt;<br>
&gt;     These result in a NPE:<br>
&gt;<br>
&gt;     @Resource<br>
&gt;     private ManagedExecutorService executorService;<br>
&gt;<br>
&gt;     @Resource(lookup = &quot;java:jboss/ee/concurrency/executor/default&quot;)<br>
&gt;     private ManagedExecutorService executorService;<br>
&gt;<br>
&gt;     But this works:<br>
&gt;<br>
&gt;     private ManagedExecutorService executorService =<br>
&gt;     InitialContext.doLookup(&quot;java:jboss/ee/concurrency/executor/default&quot;);<br>
&gt;<br>
&gt;     I didn&#39;t change any configurations on WF so far. Ideas?<br>
&gt;<br>
&gt;     Cheers<br>
&gt;     --<br>
&gt;     Ingo Weiss<br>
&gt;<br>
</div></div><span class="">&gt;     _______________________________________________<br>
&gt;     wildfly-dev mailing list<br>
&gt;     <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;<br>
&gt;     <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;<br>
<br>
</span>Hi,<br>
<br>
Disregard this. The issue is that I forgot to add beans.xml to activate CDI.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">--<br>
Ingo Weiss<br>
<br>
</font></span><br>_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font size="1"><span style="font-family:Arial">________________</span><span style="font-family:Arial">______</span></font><span style="font-family:Arial;font-size:x-small">__</span><span style="font-family:Arial;font-size:x-small">_</span><span style="font-family:Arial;font-size:x-small">_</span><span style="font-family:Arial;font-size:x-small">_</span></div><div><div align="left" style="font-family:Arial"><font size="1">Eduardo Sant&#39;Ana da Silva - Ph.D.</font></div><div style="font-family:Arial"><font face="Arial" size="1">Researcher / IT Consultant<br></font></div><div style="font-family:Arial;font-size:small"><br></div></div></div></div></div></div></div></div>
</div>