Re: SCR unsatisfied reference to a registered service

2018-02-13 Thread Alex Soto
Awesome, how could I not see that!  Thank you David!


> On Feb 13, 2018, at 2:34 PM, David Jencks  wrote:
> 
> Clrgen versus crlgen? A typo that in my experience always requires a new pair 
> of eyes to see :-)
> David Jencks 
> 
> Sent from my iPhone
> 
> On Feb 13, 2018, at 11:16 AM, Alex Soto  > wrote:
> 
>> Hello,
>> 
>> I am running  Karaf  4.0.8, and I  have a DS component  that is in 
>> unsatisfied state:
>> 
>> ...
>>   Reference: CertChain
>> Interface Name: org.camp.scms.poc.commons.ssm.CertificateChain
>> Target Filter: (component=clrgen)
>> Cardinality: 1..1
>> Policy: static
>> Policy option: reluctant
>> Reference Scope: bundle
>> ...
>> UnsatisfiedReference: CertChain
>>   Target: (component=clrgen)
>>   (no target services)
>> 
>> But the service is actually registered:
>> 
>> karaf@root()> service:list org.camp.scms.poc.commons.ssm.CertificateChain
>> [org.camp.scms.poc.commons.ssm.CertificateChain]
>> 
>>  certificate.chain.dir = .ma/crlgen/certchain
>>  component = crlgen
>>  component.id  = 36
>>  component.name = CRLGenCertificateChain
>>  felix.fileinstall.filename = 
>> file:/Users/asoto/git/ma/itest/target/exam/8bc25928-5a21-4c17-ab97-549d98f1150a/etc/scms.crlgen.cert.chain.cfg
>>  service.bundleid = 116
>>  service.id  = 223
>>  service.pid = scms.crlgen.cert.chain
>>  service.scope = bundle
>> Provided by : 
>>  SCMS :: MA :: hsm-bouncy-castle (116)
>> 
>> 
>> I have other services of the same interface 
>> (org.camp.scms.poc.commons.ssm.CertificateChain) registered as well, but 
>> with different component property.  Only this one does not work, and I don’t 
>> know why.
>> 
>> Any hints?
>> 
>> 
>> Thanks and best regards,
>> Alex soto
>> 
>> 
>> 



Re: SCR unsatisfied reference to a registered service

2018-02-13 Thread David Jencks
Clrgen versus crlgen? A typo that in my experience always requires a new pair 
of eyes to see :-)
David Jencks 

Sent from my iPhone

> On Feb 13, 2018, at 11:16 AM, Alex Soto  wrote:
> 
> Hello,
> 
> I am running  Karaf  4.0.8, and I  have a DS component  that is in 
> unsatisfied state:
> 
> ...
>   Reference: CertChain
> Interface Name: org.camp.scms.poc.commons.ssm.CertificateChain
> Target Filter: (component=clrgen)
> Cardinality: 1..1
> Policy: static
> Policy option: reluctant
> Reference Scope: bundle
> ...
> UnsatisfiedReference: CertChain
>   Target: (component=clrgen)
>   (no target services)
> 
> But the service is actually registered:
> 
> karaf@root()> service:list org.camp.scms.poc.commons.ssm.CertificateChain
> [org.camp.scms.poc.commons.ssm.CertificateChain]
> 
>  certificate.chain.dir = .ma/crlgen/certchain
>  component = crlgen
>  component.id = 36
>  component.name = CRLGenCertificateChain
>  felix.fileinstall.filename = 
> file:/Users/asoto/git/ma/itest/target/exam/8bc25928-5a21-4c17-ab97-549d98f1150a/etc/scms.crlgen.cert.chain.cfg
>  service.bundleid = 116
>  service.id = 223
>  service.pid = scms.crlgen.cert.chain
>  service.scope = bundle
> Provided by : 
>  SCMS :: MA :: hsm-bouncy-castle (116)
> 
> 
> I have other services of the same interface 
> (org.camp.scms.poc.commons.ssm.CertificateChain) registered as well, but with 
> different component property.  Only this one does not work, and I don’t know 
> why.
> 
> Any hints?
> 
> 
> Thanks and best regards,
> Alex soto
> 
> 
> 


SCR unsatisfied reference to a registered service

2018-02-13 Thread Alex Soto
Hello,

I am running  Karaf  4.0.8, and I  have a DS component  that is in unsatisfied 
state:

...
  Reference: CertChain
Interface Name: org.camp.scms.poc.commons.ssm.CertificateChain
Target Filter: (component=clrgen)
Cardinality: 1..1
Policy: static
Policy option: reluctant
Reference Scope: bundle
...
UnsatisfiedReference: CertChain
  Target: (component=clrgen)
  (no target services)

But the service is actually registered:

karaf@root()> service:list org.camp.scms.poc.commons.ssm.CertificateChain
[org.camp.scms.poc.commons.ssm.CertificateChain]

 certificate.chain.dir = .ma/crlgen/certchain
 component = crlgen
 component.id = 36
 component.name = CRLGenCertificateChain
 felix.fileinstall.filename = 
file:/Users/asoto/git/ma/itest/target/exam/8bc25928-5a21-4c17-ab97-549d98f1150a/etc/scms.crlgen.cert.chain.cfg
 service.bundleid = 116
 service.id = 223
 service.pid = scms.crlgen.cert.chain
 service.scope = bundle
Provided by : 
 SCMS :: MA :: hsm-bouncy-castle (116)


I have other services of the same interface 
(org.camp.scms.poc.commons.ssm.CertificateChain) registered as well, but with 
different component property.  Only this one does not work, and I don’t know 
why.

Any hints?


Thanks and best regards,
Alex soto