You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Mike Müller <mi...@mysign.ch> on 2010/11/30 23:11:39 UTC

Unsatisfied service

Hi

Maybe I'm just too tired:
I created a VelocityScriptEngineService component which has 
a reference to ResourceResolverFactory which looks with the
SCR plugin like this:

@Reference
private ResourceResolverFactory resourceResolverFactory;

If I install this bundle, the VelocityScriptEngineService stays 
"unsatisfied" but JcrResourceResolverFactoryImpl which implements
ResourceResolverFactory is correctly installed (SlingServletResolver has
a reference to ResourceResolverFactory as well, but is active...)
Any hint?

best regards
mike

RE: Unsatisfied service

Posted by Mike Müller <mi...@mysign.ch>.
Hi Bertrand

> > @Reference
> > private ResourceResolverFactory resourceResolverFactory;
> >
> > If I install this bundle, the VelocityScriptEngineService stays
> > "unsatisfied" but JcrResourceResolverFactoryImpl which implements
> > ResourceResolverFactory is correctly installed (SlingServletResolver has
> > a reference to ResourceResolverFactory as well, but is active...)
> > Any hint?...
> 
> I've seen that sometimes when the activate() method of the component
> throws an exception.
> 
> -Bertrand

Thanks for the pointer. That was really the case here, must have been too
late yesterday...

best regards
mike


Re: Unsatisfied service

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,

On Tue, Nov 30, 2010 at 11:11 PM, Mike Müller <mi...@mysign.ch> wrote:
>...
> @Reference
> private ResourceResolverFactory resourceResolverFactory;
>
> If I install this bundle, the VelocityScriptEngineService stays
> "unsatisfied" but JcrResourceResolverFactoryImpl which implements
> ResourceResolverFactory is correctly installed (SlingServletResolver has
> a reference to ResourceResolverFactory as well, but is active...)
> Any hint?...

I've seen that sometimes when the activate() method of the component
throws an exception.

-Bertrand