Wait, what&#39;s the point of WEB-INF/beans.xml then?<br><br><div class="gmail_quote">On Fri, Feb 3, 2012 at 15:28, Mark Struberg <span dir="ltr">&lt;<a href="mailto:struberg@yahoo.de">struberg@yahoo.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
yes, that is exactly what should happen.<br>
<br>
<br>
Please note that you could also have a WEB-INF/classes/META-INF/beans.xml to pickup WEB-INF/classes as bean archive.<br>
I always do it that way, because Eclipse and Idea can handle this much better when you e.g. need to debug a webapp with mvn jetty:run<br>
<br>
LieGrue,<br>
strub<br>
<br>
&gt;________________________________<br>
&gt; From: Joseph Snyder &lt;<a href="mailto:j.j.snyder@oracle.com">j.j.snyder@oracle.com</a>&gt;<br>
&gt;To: <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;Sent: Friday, February 3, 2012 9:34 PM<br>
&gt;Subject: [cdi-dev] War with no WEB-INF/beans.xml<br>
<div class="im">&gt;<br>
&gt;<br>
&gt;I have a test war that does not contain WEB-INF/beans.xml.  However, there is a jar in WEB-INF/lib that does contain META-INF/beans.xml.  According to the spec, 12.1,  this war contains 1 bean archive, the one in the jar.  (If there were a WEB-INF/beans.xml then there would be 2 bean archives in the war.)  So when the war is deployed only the classes in the jar are managed by the CDI container.  Therefore, if there is an injection point defined in a servlet (in WEB-INF/classes) then that injection point will never be processed by the CDI container.  Is my interpretation of the spec correct?<br>


&gt;<br>
</div>&gt;_______________________________________________<br>
&gt;cdi-dev mailing list<br>
&gt;<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jason Porter<br><a href="http://lightguard-jp.blogspot.com" target="_blank">http://lightguard-jp.blogspot.com</a><br><a href="http://twitter.com/lightguardjp" target="_blank">http://twitter.com/lightguardjp</a><br>

<br>Software Engineer<br>Open Source Advocate<br>Author of Seam Catch - Next Generation Java Exception Handling<br><br>PGP key id: 926CCFF5<br>PGP key available at: <a href="http://keyserver.net" target="_blank">keyserver.net</a>, <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>