<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1442960531094_2282">I m using Wildfly 9.0 and i need to build my custom annotation injection mechanism in order to inject my principal object.. My requirement is to work with Jersey 2.x.</div><div id="yui_3_16_0_1_1442960531094_2282">So i'm following the jersey reference guide at this link:</div><div id="yui_3_16_0_1_1442960531094_2282"><br></div><div id="yui_3_16_0_1_1442960531094_2282" dir="ltr"><a href="https://jersey.java.net/documentation/latest/ioc.html" id="yui_3_16_0_1_1442960531094_2349">https://jersey.java.net/documentation/latest/ioc.html</a><br></div><div id="yui_3_16_0_1_1442960531094_2282" dir="ltr"><br></div><div id="yui_3_16_0_1_1442960531094_2282" dir="ltr">But unluckily my injected principal object is always null. Someone asserts that is an inevitable conflict between the resteasy jax rs implementation embedded with wildfly and Jersey.</div><div id="yui_3_16_0_1_1442960531094_2282" dir="ltr">So what the way to make jersey hk2 injection to work without conflicting with the wildfly weld?</div><div id="yui_3_16_0_1_1442960531094_2282" dir="ltr"><br></div><div id="yui_3_16_0_1_1442960531094_2282" dir="ltr">Is there a way to implement the same custom injection with resteasy?</div><div id="yui_3_16_0_1_1442960531094_2282" dir="ltr">thanks</div></div></body></html>