users@jersey.java.net

[Jersey] OSGI & "SEVERE: Missing dependency for method public"

From: sunels <serkan.sunel_at_gmail.com>
Date: Tue, 20 Dec 2011 04:13:14 -0800 (PST)

Hi all,

I am getting the following error under equinox osgi env.

SEVERE: The following errors and warnings have been detected with resource
and/or provider classes:
  WARNING: Parameter 1 of type com.oksijen.sdf.core.event.Event<?,
com.oksijen.sdf.core.event.EventDialog> from public void
com.oksijen.sdf.service.registry.service.SimpleService.setInitialEvent(com.oksijen.sdf.core.event.Event<?,
com.oksijen.sdf.core.event.EventDialog>) is not resolvable to a concrete
type
  SEVERE: Missing dependency for method public
com.oksijen.sdf.services.test.sanity.restwithws.WsRestResponse
com.oksijen.sdf.services.test.sanity.restwithws.WsRest.helloWorldNew(com.oksijen.sdf.service.registry.service.IServiceExecutionObject)
at parameter at index 0
  SEVERE: Method, public
com.oksijen.sdf.services.test.sanity.restwithws.WsRestResponse
com.oksijen.sdf.services.test.sanity.restwithws.WsRest.helloWorldNew(com.oksijen.sdf.service.registry.service.IServiceExecutionObject),
annotated with GET of resource, class
com.oksijen.sdf.services.test.sanity.restwithws.WsRest, is not recognized as
valid resource method.

And this is the failing method in the WsRest class.

    @Path("/wsrest")
    @GET
    @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
    @MethodDescription(sync = true, parameter_names = { "param1" },
parameter_types = { ParameterType.MANDATORY })
    public WsRestResponse helloWorldNew(@Msisdn @QueryParam("param1") final
String param1, @Context final IServiceExecutionObject serviceExecObj) {

        final WsRestResponse resp = new WsRestResponse();
        resp.msisdn = "Hey " + param1;
        return resp;

    }

I am using a custom injection provider and My Injectable class
(IServiceExecutionObject) is exported and imported in manifests.

Regards...


--
View this message in context: http://jersey.576304.n2.nabble.com/OSGI-SEVERE-Missing-dependency-for-method-public-tp7111584p7111584.html
Sent from the Jersey mailing list archive at Nabble.com.