<div dir="ltr">Weird, this was done on AS-2164<div><br></div><div>







<p class=""><span class="">Warn if CDI annotations present but no beans.xml<br></span><a href="https://issues.jboss.org/browse/AS7-2164">https://issues.jboss.org/browse/AS7-2164</a></p></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-23 9:06 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 23/03/2016 11:52, Eduardo Sant´Ana da Silva wrote:<br>
&gt; Did you saw this message when deploying?<br>
&gt;<br>
&gt; :# Message: Deployment %s contains CDI annotations but no bean archive<br>
&gt; was not found. (No beans.xml nor class with bean defining annotations)<br>
&gt;<br>
&gt; 2016-03-23 4:24 GMT-03:00 Ingo Weiss &lt;<a href="mailto:ingo@redhat.com">ingo@redhat.com</a><br>
</span>&gt; &lt;mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>&gt;&gt;:<br>
<span class="">&gt;<br>
&gt;     On 22/03/2016 13:28, Stuart Douglas wrote:<br>
&gt;     &gt; Where are you trying to use these?<br>
&gt;     &gt;<br>
&gt;     &gt; Stuart<br>
&gt;     &gt;<br>
&gt;     &gt; On Wed, 23 Mar 2016, 00:18 Ingo Weiss &lt;<a href="mailto:ingo@redhat.com">ingo@redhat.com</a> &lt;mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>&gt;<br>
</span><span class="">&gt;     &gt; &lt;mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a> &lt;mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>&gt;&gt;&gt; wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;     Hi,<br>
&gt;     &gt;<br>
&gt;     &gt;     I was testing injecting the default ManagedExecutorService on<br>
&gt;     WF10 and<br>
&gt;     &gt;     it returns a NullPointerException if I don&#39;t do a lookup.<br>
&gt;     &gt;<br>
&gt;     &gt;     These result in a NPE:<br>
&gt;     &gt;<br>
&gt;     &gt;     @Resource<br>
&gt;     &gt;     private ManagedExecutorService executorService;<br>
&gt;     &gt;<br>
&gt;     &gt;     @Resource(lookup = &quot;java:jboss/ee/concurrency/executor/default&quot;)<br>
&gt;     &gt;     private ManagedExecutorService executorService;<br>
&gt;     &gt;<br>
&gt;     &gt;     But this works:<br>
&gt;     &gt;<br>
&gt;     &gt;     private ManagedExecutorService executorService =<br>
&gt;     &gt;<br>
&gt;      InitialContext.doLookup(&quot;java:jboss/ee/concurrency/executor/default&quot;);<br>
&gt;     &gt;<br>
&gt;     &gt;     I didn&#39;t change any configurations on WF so far. Ideas?<br>
&gt;     &gt;<br>
&gt;     &gt;     Cheers<br>
&gt;     &gt;     --<br>
&gt;     &gt;     Ingo Weiss<br>
&gt;     &gt;<br>
&gt;     &gt;     _______________________________________________<br>
&gt;     &gt;     wildfly-dev mailing list<br>
&gt;     &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>
</span>&gt;     &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<span class="">&gt;     &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;&gt;<br>
&gt;     &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;     &gt;<br>
&gt;<br>
&gt;     Hi,<br>
&gt;<br>
&gt;     Disregard this. The issue is that I forgot to add beans.xml to<br>
&gt;     activate CDI.<br>
&gt;<br>
&gt;     Cheers<br>
&gt;     --<br>
&gt;     Ingo Weiss<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     wildfly-dev mailing list<br>
</span>&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>
<span class="">&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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; ___________________________<br>
&gt; Eduardo Sant&#39;Ana da Silva - Ph.D.<br>
&gt; Researcher / IT Consultant<br>
&gt;<br>
<br>
</span>Oi Eduardo,<br>
<br>
No.<br>
<br>
12:05:51,405 INFO  [org.jboss.as.server.deployment] (MSC service thread<br>
1-4) WFLYSRV0027: Starting deployment of &quot;async-jaxrs.war&quot;<br>
(runtime-name: &quot;async-jaxrs.war&quot;)<br>
<br>
12:05:51,473 INFO  [javax.enterprise.resource.webcontainer.jsf.config]<br>
(ServerService Thread Pool -- 78) Initializing Mojarra 2.2.12-jbossorg-2<br>
20150729-1131 for context &#39;/async-jaxrs&#39;<br>
<br>
12:05:51,580 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n]<br>
(ServerService Thread Pool -- 78) RESTEASY002225: Deploying<br>
javax.ws.rs.core.Application: class cx.hoffmann.msa.async.JaxRSConfiguration<br>
<br>
12:05:51,586 INFO  [org.wildfly.extension.undertow] (ServerService<br>
Thread Pool -- 78) WFLYUT0021: Registered web context: /async-jaxrs<br>
<br>
12:05:51,593 INFO  [org.jboss.as.server] (management-handler-thread - 7)<br>
WFLYSRV0010: Deployed &quot;async-jaxrs.war&quot; (runtime-name : &quot;async-jaxrs.war&quot;)<br>
<br>
That&#39;s probably why I was confused since I&#39;ve seen the message you refer<br>
to on EAP 6.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Ingo Weiss<br>
<br>
</font></span></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>