Hi Emily,
jar1 and jar2 would be bean archives on their own. If such archive declares beans.xml then that one is used. Otherwise, the bean archive may be implicit (no beans.xml but bean-defining annotation). Either way, no other beans.xml file is used instead for that particular jar.
HTH,
Jozef
On 04/30/2015 11:34 PM, Emily Jiang wrote:
Thanks,web-inf\lib\jar1.jarweb-inf\beans.xml (containing invalid class as alternatives)Thanks Jozef! I figured out why I did not get an error:my war:
web-inf\lib\jar2.jar
[no web-inf\classes]In either jar1.jar or jar2.jar, there is no beans.xml and no bean-defining annotations. Do you think the jar1.jar and jar2.jar should use the beans.xml in the web-inf? If yes, what if there is beans.xml packaged in either jar1.jar or jar2.jar? I cannot find any clear instruction on this scenario.
Emily
On Thu, Apr 30, 2015 at 6:24 AM, Jozef Hartinger <jharting@redhat.com> wrote:
Hi Emily,
Weld performs all these validations.
Jozef
On 04/29/2015 11:52 PM, Emily Jiang wrote:
CDI1.2 spec section 8.2.2 says:
In the beans.xml
Each child <class> element must specify the name of a decorator bean class. If there is no class with the specified name, or if the class with the specified name is not a decorator bean class, the container automatically detects the problem and treats it as a deployment problem.
If the same class is listed twice under the <decorators> element, the container automatically detects the problem and treats it as a deployment problem.
Will Weld do the validation or Weld expects the integrator to do the validation?
I am confused about what validations are done by the spec reference implemenatation (RI) or RI consumer.
--
_______________________________________________ weld-dev mailing list weld-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/weld-dev
--