<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1420209722920_5048">Greetings,</div><div id="yui_3_16_0_1_1420209722920_5042"><br></div><div dir="ltr" id="yui_3_16_0_1_1420209722920_5043">I recently ran into a situation where I had created a producer method for an object but when Weld was starting up I got errors about something being ambiguous.&nbsp; I finally tracked the issue to the fact that the bean my producer method was responsible for producing only had a default no-arg constructor.&nbsp; I was able to "work around" this problem by annotating the bean as an @Alternative.&nbsp; So I have a few questions.</div><div id="yui_3_16_0_1_1420209722920_5060" dir="ltr"><br></div><div id="yui_3_16_0_1_1420209722920_5061" dir="ltr">(1)</div><div id="yui_3_16_0_1_1420209722920_5062" dir="ltr">Is this expected behavior from CDI? If a bean only has the default no-arg constructor should you get an ambiguous error if you also have a producer method for the bean?</div><div id="yui_3_16_0_1_1420209722920_5063" dir="ltr"><br></div><div id="yui_3_16_0_1_1420209722920_5065" dir="ltr">(2)</div><div id="yui_3_16_0_1_1420209722920_5067" dir="ltr">Is annotating the bean as an @Alternative an acceptable "work around"?&nbsp; Seems hackish to me. If not, what is the appropriate solution.</div><div id="yui_3_16_0_1_1420209722920_5068" dir="ltr"><br></div><div dir="ltr">Thanks!<br></div><div id="yui_3_16_0_1_1420209722920_5023"><br></div></div></body></html>