<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>It actually looked to be a bad classpath. &nbsp;So nevermind.</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Martin Kouba &lt;mkouba@redhat.com&gt;<br>
<b>Sent:</b> Monday, January 2, 2017 4:15 AM<br>
<b>To:</b> John Ament; cdi-dev<br>
<b>Subject:</b> Re: [cdi-dev] Regression issue with CDI.current</font>
<div>&nbsp;</div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi John,<br>
<br>
could you provide more details (CDI impl, packaging, etc.)? Ideally a <br>
link to a hammock test or something like that? I think this should work.<br>
<br>
Martin<br>
<br>
Dne 22.12.2016 v 22:23 John Ament napsal(a):<br>
&gt; It seems that CDI.current is failing in places where it used to succeed.<br>
&gt;<br>
&gt;<br>
&gt; The scenarios seem to all be the same - JAR files that don't contain a<br>
&gt; beans.xml when used in SE mode can no longer invoke CDI.current.&nbsp; In the<br>
&gt; past they could.<br>
&gt;<br>
&gt;<br>
&gt; Caused by: java.lang.IllegalStateException: Unable to access CDI<br>
&gt; at javax.enterprise.inject.spi.CDI.lambda$getCDIProvider$1(CDI.java:75)<br>
&gt; at java.util.Optional.orElseThrow(Optional.java:290)<br>
&gt; at javax.enterprise.inject.spi.CDI.getCDIProvider(CDI.java:75)<br>
&gt; at javax.enterprise.inject.spi.CDI.current(CDI.java:51)<br>
&gt; at<br>
&gt; ws.ament.hammock.rest.resteasy.Cdi11InjectorFactory.lookupBeanManager(Cdi11InjectorFactory.java:32)<br>
&gt;<br>
&gt;<br>
&gt; I'll raise an issue, but not sure since this was something not specified<br>
&gt; previously.<br>
&gt;<br>
&gt;<br>
&gt; John<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; NOTICE: This e-mail message and any attachments may contain<br>
&gt; confidential, proprietary, and/or privileged information which should be<br>
&gt; treated accordingly. If you are not the intended recipient, please<br>
&gt; notify the sender immediately by return e-mail, delete this message, and<br>
&gt; destroy all physical and electronic copies. Thank you.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; cdi-dev@lists.jboss.org<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" id="LPlnk802031" previewremoved="true">
https://lists.jboss.org/mailman/listinfo/cdi-dev</a>
<div id="LPBorder_GT_14834450330970.9616934259754508" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14834450330950.7479224612335527" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14834450330960.9482873039142903" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14834450330960.7748510314209807"></div>
<div id="LPTitle_14834450330960.8639407655537596" style="top: 0px; color: rgb(227, 30, 37); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, &quot;Segoe UI Light&quot;, &quot;Segoe WP Light&quot;, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14834450330960.644480788602189" href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank" style="text-decoration: none;">cdi-dev Info Page - JBoss Developer</a></div>
<div id="LPMetadata_14834450330960.014328272808110443" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.jboss.org</div>
<div id="LPDescription_14834450330970.8722390550160517" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
List to discuss the development of CDI (the specification) To see the collection of prior postings to the list, visit the cdi-dev Archives.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<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" id="LPlnk390604" previewremoved="true">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.
<div id="LPBorder_GT_14834450331470.7495056228926562" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14834450331460.5647729055804103" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14834450331460.8637767723757623" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14834450331460.6694309581784372"></div>
<div id="LPTitle_14834450331460.9946851040725402" style="top: 0px; color: rgb(227, 30, 37); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, &quot;Segoe UI Light&quot;, &quot;Segoe WP Light&quot;, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14834450331460.2652289929724354" href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank" style="text-decoration: none;">Apache License, Version 2.0</a></div>
<div id="LPMetadata_14834450331470.5497466586665338" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.apache.org</div>
<div id="LPDescription_14834450331470.1817408649486496" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION. 1. Definitions.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
&gt;<br>
<br>
-- <br>
Martin Kouba<br>
Software Engineer<br>
Red Hat, Czech Republic<br>
</div>
</span></font></div>
</div>
<hr>
NOTICE: This e-mail message and any attachments may contain confidential, proprietary, and/or privileged information which should be treated accordingly. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this
 message, and destroy all physical and electronic copies. Thank you.
</body>
</html>