<font size=2 face="sans-serif">Hi Martin,</font><br><br><font size=2 face="sans-serif">Here's a simplified form of the test
case:</font><br><br><br><font size=2 face="sans-serif">The application does not start, reporting</font><br><br><tt><font size=2>[ERROR &nbsp; ] CWWKZ0004E: An exception occurred
while starting the application testDiffBDA. The exception message was:
com.ibm.ws.container.service.state.StateChangeException: org.jboss.weld.exceptions.DeploymentException:
WELD-001408: Unsatisfied dependencies for type String with qualifiers @CounterModifiedQualifier</font></tt><br><tt><font size=2>&nbsp; at injection point [BackedAnnotatedField] @Inject
@CounterModifiedQualifier com.ibm.jcdi.test.beansxml.CounterProducerConsumerModified2.modifiedProducer</font></tt><br><tt><font size=2>&nbsp; at com.ibm.jcdi.test.beansxml.CounterProducerConsumerModified2.modifiedProducer(CounterProducerConsumerModified2.java:0)</font></tt><br><br><font size=2 face="sans-serif">There are five classes in the .war.
</font><br><br><font size=2 face="sans-serif">testDiffBDA.war/WEB-INF/classes/test/diff/web/FrontEndServlet.class</font><br><br><font size=2 face="Courier New">@Inject CounterProducerConsumerModified2
bean;</font><br><br><font size=2 face="sans-serif">This class, CounterProducerConsumerModified2.class
is packaged in the first of two WEB-INF/lib jars, at testDiffBDA.war/WEB-INF/lib/beans-xml-modified2.jar.jar/com/ibm/jcdi/test/beans/xml.
There is a bean that needs another bean injected into it:</font><br><br><font size=2 color=#5f5f5f face="Consolas">@Inject</font><font size=2 face="Consolas"></font><font size=2 color=#5f5f5f face="Consolas">@CounterModifiedQualifier</font><font size=2 face="Consolas">String </font><font size=2 color=#0021bf face="Consolas">modifiedProducer</font><font size=2 face="Consolas">;</font><br><br><font size=2 face="sans-serif">The remaining three classes are all
in the second WEB-INF/lib jar, at testDiffBDA.war/WEB-INF/lib/beans-xml-modified.jar.jar/com/ibm/jcdi/test/beansxml/.
The classes are </font><br><br><font size=2 face="sans-serif">CounterModifiedQualifier &nbsp;(the
interface)</font><br><font size=2 face="sans-serif">CounterProducerModified (the bean implementing
that interface)</font><br><font size=2 face="sans-serif">AlternativeCounterProducerModified (an
alternative bean)</font><br><br><font size=2 face="sans-serif">The AlternativeCounterProducerModified
class is declared in testDiffBDA.war/WEB-INF/lib/beans-xml-modified.jar.jar/META-INF/beans.xml,</font><br><br><font size=2 face="Consolas">&nbsp; &nbsp;</font><font size=2 color=#008080 face="Consolas">&lt;</font><font size=2 color=#3f8080 face="Consolas">alternatives</font><font size=2 color=#008080 face="Consolas">&gt;</font><br><font size=2 face="Consolas">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Consolas">&lt;</font><font size=2 color=#3f8080 face="Consolas">class</font><font size=2 color=#008080 face="Consolas">&gt;</font><font size=2 face="Consolas">com.ibm.jcdi.test.beansxml.AlternativeCounterProducerModified</font><font size=2 color=#008080 face="Consolas">&lt;/</font><font size=2 color=#3f8080 face="Consolas">class</font><font size=2 color=#008080 face="Consolas">&gt;</font><br><font size=2 face="Consolas">&nbsp; &nbsp;</font><font size=2 color=#008080 face="Consolas">&lt;/</font><font size=2 color=#3f8080 face="Consolas">alternatives</font><font size=2 color=#008080 face="Consolas">&gt;</font><br><br><font size=2 face="sans-serif">The test app starts correctly if the
&lt;alternative&gt; stanza is commented out. </font><br><br><br><font size=2 face="sans-serif">Many thanks,<br>Emily<br>===========================<br>Emily Jiang<br>WebSphere Application Server, CDI Development Lead</font><br><font size=2 face="sans-serif">&nbsp;<br>MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>Phone: &nbsp;+44 (0)1962 816278 &nbsp;Internal: 246278<br><br>Email: emijiang@uk.ibm.com <br>Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br></font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Martin Kouba &lt;mkouba@redhat.com&gt;</font><br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Emily Jiang/UK/IBM@IBMGB,
Weld &lt;weld-dev@lists.jboss.org&gt;, </font><br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">18/11/2015 07:58</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: potential
weld jira</font><br><hr noshade><br><br><br><tt><font size=2>Hi Emily,<br><br>a brief description would be helpful - it's not a trivial <br>deployment/reproducer.<br><br>Martin<br><br>Dne 16.11.2015 v 23:15 Emily Jiang napsal(a):<br>&gt; I'm trying to deploy the attached war but got Weld alidation error.
On<br>&gt; Glassfish 4.1, I got this error:<br>&gt; Error occurred during deployment: Exception while loading the app
: CDI<br>&gt; deployment failure:WELD-001408: Unsatisfied dependencies for type
String<br>&gt; with qualifiers @DiffBDACounterQualifier at injection point<br>&gt; [BackedAnnotatedField] @Inject @DiffBDACounterQualifier<br>&gt; com.ibm.jcdi.test.beansxml.CounterProducerConsumerModified.diffBDAProducer<br>&gt; at<br>&gt; com.ibm.jcdi.test.beansxml.CounterProducerConsumerModified.diffBDAProducer(CounterProducerConsumerModified.java:0)<br>&gt; WELD-001475: The following beans match by type, but none have matching<br>&gt; qualifiers: - Producer Method [String] with qualifiers<br>&gt; [@CounterUnmodifiedQualifier @Any] declared as [[BackedAnnotatedMethod]<br>&gt; @ExcludeClassInterceptors @Produces @CounterUnmodifiedQualifier<br>&gt; com.ibm.jcdi.test.beansxml.CounterProducerNoModifiers.getCounterBeanProducer()],<br>&gt; - Producer Method [String] with qualifiers [@BatchProperty @Any]<br>&gt; declared as [[UnbackedAnnotatedMethod] @Produces @Dependent<br>&gt; @BatchProperty public com.ibm.jbatch.container.cdi.BatchProducerBean.p<br>&gt; .... msg.seeServerLog<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; The app works fine on OpenWebBeans. Any ideas on what was wrong?<br>&gt;<br>&gt; Many thanks,<br>&gt; Emily<br>&gt; ===========================<br>&gt; Emily Jiang<br>&gt; WebSphere Application Server, CDI Development Lead<br>&gt;<br>&gt; MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>&gt; Phone: &nbsp;+44 (0)1962 816278 &nbsp;Internal: 246278<br>&gt;<br>&gt; Email: emijiang@uk.ibm.com<br>&gt; Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>&gt;<br><br>-- <br>Martin Kouba<br>Software Engineer<br>Red Hat, Czech Republic<br><br></font></tt><br><BR>