Spring Injection isn't working in Jersey Filter - @InjectParam Equivalent in jersey2
<p>I'm trying to inject an object in Jersey-Filter using spring injection.</p>

<p>If I try the <strong>@Inject</strong> method, then I'm ending up with an exception</p>

<pre><code>SEVERE: StandardWrapper.Throwable
MultiException stack 1 of 2
java.lang.IllegalStateException: Could not find an active context for org.jvnet.hk2.spring.bridge.api.SpringScope
        at org.jvnet.hk2.internal.ServiceLocatorImpl._resolveContext(ServiceLocatorImpl.java:2058)
        at org.jvnet.hk2.internal.ServiceLocatorImpl.access$000(ServiceLocatorImpl.java:120)
        at org.jvnet.hk2.internal.ServiceLocatorImpl$2.compute(ServiceLocatorImpl.java:186)
        at org.jvnet.hk2.internal.ServiceLocatorImpl$2.compute(ServiceLocatorImpl.java:182)
</code></pre>

<p>If I try using <strong>@InjectParam</strong> that its defined in Jersey 1.x however I'm using Jersey 2.17 in which this annotation is not found.</p>

<p>Any idea how to perform this spring injection in jersey-filter?</p>

<p>What's does the exception mean?</p>

<p><code>Could not find an active context for org.jvnet.hk2.spring.bridge.api.SpringScope</code></p>