<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"><<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 23/03/2016 11:52, Eduardo Sant´Ana da Silva wrote:<br>
> Did you saw this message when deploying?<br>
><br>
> :# Message: Deployment %s contains CDI annotations but no bean archive<br>
> was not found. (No beans.xml nor class with bean defining annotations)<br>
><br>
> 2016-03-23 4:24 GMT-03:00 Ingo Weiss <<a href="mailto:ingo@redhat.com">ingo@redhat.com</a><br>
</span>> <mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>>>:<br>
<span class="">><br>
> 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> <mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>><br>
</span><span class="">> > <mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a> <mailto:<a href="mailto:ingo@redhat.com">ingo@redhat.com</a>>>> wrote:<br>
> ><br>
> > Hi,<br>
> ><br>
> > I was testing injecting the default ManagedExecutorService on<br>
> 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>
> ><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>
> > _______________________________________________<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>
</span>> <mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<span class="">> <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>
> Hi,<br>
><br>
> Disregard this. The issue is that I forgot to add beans.xml to<br>
> activate CDI.<br>
><br>
> Cheers<br>
> --<br>
> Ingo Weiss<br>
><br>
><br>
> _______________________________________________<br>
> wildfly-dev mailing list<br>
</span>> <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>
<span class="">> <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>
><br>
><br>
> --<br>
> ___________________________<br>
> Eduardo Sant'Ana da Silva - Ph.D.<br>
> Researcher / IT Consultant<br>
><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 "async-jaxrs.war"<br>
(runtime-name: "async-jaxrs.war")<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 '/async-jaxrs'<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 "async-jaxrs.war" (runtime-name : "async-jaxrs.war")<br>
<br>
That's probably why I was confused since I'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'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>