You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
My Setup is basically like the code below - my Root Rest Resources depend on other Services which created and injected just fine by Felix.
@Component(immediate = true, service = RESTService.class)
@Path("/hello)
public class RESTServiceImpl {
protected AnotherComponent anotherComponent;
@Reference
public void setAnotherComponent(AnotherComponent anotherComponent) {
this.anotherComponent = anotherComponent;
}
@GET
public String hello() {
return anotherComponent.hello();
}
}
When osgi-jax-rs-connector.publisher tries to register my Root Rest Resources with Jersey (ServletContainerBridge), Jersey fails to inject an object in org.jvnet.hk2.internal.Utilities.justInject , and Jersey won't start up.
What do I miss here?
Do I need to implement and register Custom Injection (org.glassfish.hk2.api.Factory)?
The text was updated successfully, but these errors were encountered:
My Setup is basically like the code below - my Root Rest Resources depend on other Services which created and injected just fine by Felix.
When osgi-jax-rs-connector.publisher tries to register my Root Rest Resources with Jersey (ServletContainerBridge), Jersey fails to inject an object in org.jvnet.hk2.internal.Utilities.justInject , and Jersey won't start up.
What do I miss here?
Do I need to implement and register Custom Injection (org.glassfish.hk2.api.Factory)?
The text was updated successfully, but these errors were encountered: