Hi, David,

> There must be a lot more going on for this to fail.  This kind of situation 
> normally works fine with scr.  If you turn up ds logging, what do you see as 
> the reason your component won’t start?  What does the console say about the 
> state of the component (assuming the console uses the scr commands or 
> equivalent info).

When I do scr:list, I get this:

 [  68]   mypackage.oauth2.credentials  enabled
    [   2] [unsatisfied reference] 

So I try this:

karaf@root()> scr:details mypackage.oauth2.credentials
Component Details
  Name                : mypackage.oauth2.credentials
  State               : UNSATISFIED
References
  Reference           : useradmin
    State             : unsatisfied
    Multiple          : single
    Optional          : mandatory
    Policy            : static
    Service Reference : No Services bound

But I can also see:

karaf@root()> bundle:services 87

UserAdmin (87) provides:
------------------------
[org.osgi.service.useradmin.UserAdmin]

So, there is a UserAdmin, but my component does not get wired with it.

> Also be careful with your terminology.  “enabled” is normally something your 
> don’t deal with and without really special circumstances all your components 
> should be configured as enabled by default.  You’d have to have code to 
> enable them otherwise.  I suspect you mean “activated”? or maybe “satisfied”?

Indeed!

“Unsatisfied” would be correct. Thanks for pointing this out.

Cheers,
=David

Reply via email to