<div dir="ltr">ah. ok. For cdi 1.0, if all the implementor checks all jars having beans.xml and then merge the classes to the module bean archive, this will be fine. I think a spec issue will be raised to update section 5.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 4, 2015 at 8:59 AM, Mark Struberg <span dir="ltr">&lt;<a href="mailto:struberg@yahoo.de" target="_blank">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">The CDI-1.0 TCK initially did not check anything in that regard. A test got added in a _very_ late version. This was in fact released AFTER CDI-1.1 was published if I remember correctly. So this version is not even part of the EE6 TCK…<br>
<br>
LieGrue,<br>
strub<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; Am 04.05.2015 um 09:07 schrieb Jozef Hartinger &lt;<a href="mailto:jharting@redhat.com">jharting@redhat.com</a>&gt;:<br>
&gt;<br>
&gt; Yes, chapter 5 is a bit confusing when it comes to composite Java EE modules. Comments inline:<br>
&gt;<br>
&gt; On 05/03/2015 12:20 AM, Emily Jiang wrote:<br>
&gt;&gt; I agree with Mark. I am confused about section 5 and section 12. Weld-2 leaves the work of specifying the bean archive to the integrator. I am wondering how the new version of app server using Weld-2 can pass the CDI 1.1/1.2 CTS at all if the integrator creates its bean archives based on section 12.<br>
&gt; The TCK for CDI 1.0, 1,1 and 1.2 expect Chapter 12 to be implemented. Therefore, implementing bean archive as defined in Chapter 12 is the right approach for a Weld integrator.<br>
&gt;&gt;<br>
&gt;&gt; I am guessing CDI 1.1/1.2 cts, the updated version of CDI 1.0(?),  is based on section 5. Can someone confirm? The spec needs to be updated to remove the conflict between section 5 and section 12.<br>
&gt;&gt; ---------- Forwarded message ----------<br>
&gt;&gt; From: Emily Jiang &lt;<a href="mailto:emijiang6@googlemail.com">emijiang6@googlemail.com</a>&gt;<br>
&gt;&gt; Date: Sat, May 2, 2015 at 10:21 PM<br>
&gt;&gt; Subject: Re: [cdi-dev] bean archives<br>
&gt;&gt; To: Mark Struberg &lt;<a href="mailto:struberg@yahoo.de">struberg@yahoo.de</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I agree with Mark. I am confused about section 5 and section 12. Weld-2 leaves the work of specifying the bean archive to the integrator. I am wondering how the new version of app server using Weld-2 can pass the CDI 1.1/1.2 CTS at all if the integrator creates its bean archives based on section 12.<br>
&gt;&gt;<br>
&gt;&gt; I am guessing CDI 1.1/1.2 cts, the updated version of CDI 1.0(?),  is based on section 5. Can someone confirm? The spec needs to be updated to remove the conflict between section 5 and section 12.<br>
&gt;&gt;<br>
&gt;&gt; On Sat, May 2, 2015 at 3:47 PM, Mark Struberg &lt;<a href="mailto:struberg@yahoo.de">struberg@yahoo.de</a>&gt; wrote:<br>
&gt;&gt; Actually the rules are still not clear. Section 5 and 12 contradict each other. The EE6 RI, JBossAS6 and TomEE and WAS did behave like in section 5 (1 BDA per ee-module) whereas Weld-2 behaves like in section 12.<br>
&gt;&gt;<br>
&gt;&gt; LieGrue,<br>
&gt;&gt; strub<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Saturday, 2 May 2015, 10:13, Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi Emily,<br>
&gt;&gt;<br>
&gt;&gt; The rules) apply to each jar (archive). There is no merging, thus an app can contain three types of archives :<br>
&gt;&gt; Non bean archives,<br>
&gt;&gt; Implicit bean archives,<br>
&gt;&gt; Explicit bean archives.<br>
&gt;&gt;<br>
&gt;&gt; Antoine Sabot-Durand<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Le 1 mai 2015 à 23:03, Emily Jiang &lt;<a href="mailto:emijiang6@googlemail.com">emijiang6@googlemail.com</a>&gt; a écrit :<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have a question on bean archives.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; For the jars under web-inf\lib, are they individual bean archives or they should be merged   with web-inf\classes files and use the beans.xml under web-inf\ to form one bean archive?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If they are merged together to form one bean archive, what will happen if they have their own beans.xml under Meta-inf dir?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Below is the what spec says, but it does not mention the jar under web-inf\lib. The spec should make this situation clear.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; In the CDI1.2 spec:<br>
&gt;&gt;&gt; When determining which archives are bean archives, the container must consider:<br>
&gt;&gt;&gt; • Library jars, EJB jars or application client jars<br>
&gt;&gt;&gt; • The WEB-INF/classes directory of a war<br>
&gt;&gt;&gt; • Directories in the JVM classpath<br>
&gt;&gt;&gt; The container is not required to support application client jar bean archives.<br>
&gt;&gt;&gt; A Java EE container is required by the Java EE specification to support Java EE modules. Other<br>
&gt;&gt;&gt; containers may or may not provide support for war, EJB jar or rar bean archives.<br>
&gt;&gt;&gt; The beans.xml file must be named:<br>
&gt;&gt;&gt; • META-INF/beans.xml , or,<br>
&gt;&gt;&gt; • in a war, WEB-INF/beans.xml or WEB-INF/classes/META-INF/beans.xml.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt; Emily<br>
&gt;&gt;&gt; =================<br>
&gt;&gt;&gt; Emily Jiang<br>
&gt;&gt;&gt; <a href="mailto:ejiang@apache.org">ejiang@apache.org</a><br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; cdi-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; cdi-dev mailing list<br>
&gt;&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;&gt;<br>
&gt;&gt; Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Thanks<br>
&gt;&gt; Emily<br>
&gt;&gt; =================<br>
&gt;&gt; Emily Jiang<br>
&gt;&gt; <a href="mailto:ejiang@apache.org">ejiang@apache.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Thanks<br>
&gt;&gt; Emily<br>
&gt;&gt; =================<br>
&gt;&gt; Emily Jiang<br>
&gt;&gt; <a href="mailto:ejiang@apache.org">ejiang@apache.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; cdi-dev mailing list<br>
&gt;&gt;<br>
&gt;&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<br>
&gt;&gt; <a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
&gt;<br>
&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; Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Thanks<br>Emily<br>=================<br>Emily Jiang<br><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br></div>
</div>