<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"><<a href="mailto:ingo@redhat.com" target="_blank">ingo@redhat.com</a>></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>
> Where are you trying to use these?<br>
><br>
> Stuart<br>
><br>
> On Wed, 23 Mar 2016, 00:18 Ingo Weiss <<a href="mailto:ingo@redhat.com">ingo@redhat.com</a><br>
> <mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>>> wrote:<br>
><br>
</span><div><div class="h5">> Hi,<br>
><br>
> I was testing injecting the default ManagedExecutorService on WF10 and<br>
> it returns a NullPointerException if I don't do a lookup.<br>
><br>
> These result in a NPE:<br>
><br>
> @Resource<br>
> private ManagedExecutorService executorService;<br>
><br>
> @Resource(lookup = "java:jboss/ee/concurrency/executor/default")<br>
> private ManagedExecutorService executorService;<br>
><br>
> But this works:<br>
><br>
> private ManagedExecutorService executorService =<br>
> InitialContext.doLookup("java:jboss/ee/concurrency/executor/default");<br>
><br>
> I didn't change any configurations on WF so far. Ideas?<br>
><br>
> Cheers<br>
> --<br>
> Ingo Weiss<br>
><br>
</div></div><span class="">> _______________________________________________<br>
> wildfly-dev mailing list<br>
> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a> <mailto:<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>
><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'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>