You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Stephen Kahmann <st...@inovexcorp.com> on 2015/05/04 20:11:14 UTC
OBR Provide Service
I have a bundle that provides a service via SCR and consumes that service with Blueprints. This works just fine when deployed locally, but when I try to deploy via OBR and a Cave repository (proxied from Nexus), the OBR index has the service requirement, but not the capability. For example:
...
Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml
...
Import-Package: ...
Import-Service: org.openrdf.repository.Repository;multiple:=false
Provide-Capability: osgi.service;effective:=active;objectClass="org.open
rdf.repository.Repository"
Service-Component: OSGI-INF/com.pid.repository.xml
Tool: Bnd-2.3.0.201405100607
karaf@root()> obr:info ...
------------
...
------------
presentationname: ...
symbolicname: ...
id: ...
version: 1.0.0.SNAPSHOT
uri: ...
Requires:
service:(service=org.openrdf.repository.Repository)
.
.
.
Capabilities:
bundle:{presentationname=name, symbolicname=symbolic.name, manifestversion=2, version=1.0.0.SNAPSHOT}
karaf@root()>
karaf@root()> obr:deploy ...
Unsatisfied requirement(s):
---------------------------
(service=org.openrdf.repository.Repository)
...
karaf@root()>
I saw something similar here<https://ops4j1.jira.com/browse/PAXWEB-573>. Do I need to use the deprecated <Export-Service> instruction in the maven-bundle-plugin or is this a bug in the OBR tools?
Thanks!
--
Stephen
Re: OBR Provide Service
Posted by Stephen Kahmann <st...@inovexcorp.com>.
Export-Service fixed the index. Thanks!
--
Stephen Kahmann
Software Engineer
iNovex Information Systems, Inc.
937-321-1923
stephen.kahmann@inovexcorp.com
Confidentiality Notice: This message is intended for the sole use of the individual to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this communication is not the intended recipient or the employee or agent responsible for delivering the communication to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately and delete this message.
Original Message
From: Jean-Baptiste Onofré
Sent: Tuesday, May 5, 2015 2:01 AM
To: user@karaf.apache.org
Reply To: user@karaf.apache.org
Subject: Re: OBR Provide Service
Hi,
As Cave use "old" bundlerepository dependency, can you try to use
Export-Service (even if it should be OK).
Regards
JB
On 05/04/2015 08:11 PM, Stephen Kahmann wrote:
> I have a bundle that provides a service via SCR and consumes that
> service with Blueprints. This works just fine when deployed locally, but
> when I try to deploy via OBR and a Cave repository (proxied from Nexus),
> the OBR index has the service requirement, but not the capability. For
> example:
>
> …
>
> Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml
>
> …
>
> Import-Package: …
>
> Import-Service: org.openrdf.repository.Repository;multiple:=false
>
> Provide-Capability: osgi.service;effective:=active;objectClass="org.open
>
> rdf.repository.Repository"
>
> Service-Component: OSGI-INF/com.pid.repository.xml
>
> Tool: Bnd-2.3.0.201405100607
>
>
> *karaf*@root()> obr:info …
>
> ------------
>
> …
>
> ------------
>
> presentationname: …
>
> symbolicname: …
>
> id: …
>
> version: 1.0.0.SNAPSHOT
>
> uri: …
>
> Requires:
>
> service:(service=org.openrdf.repository.Repository)
>
> .
>
> .
>
> .
>
> Capabilities:
>
> bundle:{presentationname=name, symbolicname=symbolic.name,
> manifestversion=2, version=1.0.0.SNAPSHOT}
>
> *karaf*@root()>
>
>
> *karaf*@root()> obr:deploy …
>
> Unsatisfied requirement(s):
>
> ---------------------------
>
> (service=org.openrdf.repository.Repository)
>
> …
>
> *karaf*@root()>
>
>
> I saw something similar here
> <https://ops4j1.jira.com/browse/PAXWEB-573>. Do I need to use the
> deprecated <Export-Service> instruction in the maven-bundle-plugin or is
> this a bug in the OBR tools?
>
> Thanks!
>
>
> --
> Stephen
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: OBR Provide Service
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
As Cave use "old" bundlerepository dependency, can you try to use
Export-Service (even if it should be OK).
Regards
JB
On 05/04/2015 08:11 PM, Stephen Kahmann wrote:
> I have a bundle that provides a service via SCR and consumes that
> service with Blueprints. This works just fine when deployed locally, but
> when I try to deploy via OBR and a Cave repository (proxied from Nexus),
> the OBR index has the service requirement, but not the capability. For
> example:
>
> …
>
> Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml
>
> …
>
> Import-Package: …
>
> Import-Service: org.openrdf.repository.Repository;multiple:=false
>
> Provide-Capability: osgi.service;effective:=active;objectClass="org.open
>
> rdf.repository.Repository"
>
> Service-Component: OSGI-INF/com.pid.repository.xml
>
> Tool: Bnd-2.3.0.201405100607
>
>
> *karaf*@root()> obr:info …
>
> ------------
>
> …
>
> ------------
>
> presentationname: …
>
> symbolicname: …
>
> id: …
>
> version: 1.0.0.SNAPSHOT
>
> uri: …
>
> Requires:
>
> service:(service=org.openrdf.repository.Repository)
>
> .
>
> .
>
> .
>
> Capabilities:
>
> bundle:{presentationname=name, symbolicname=symbolic.name,
> manifestversion=2, version=1.0.0.SNAPSHOT}
>
> *karaf*@root()>
>
>
> *karaf*@root()> obr:deploy …
>
> Unsatisfied requirement(s):
>
> ---------------------------
>
> (service=org.openrdf.repository.Repository)
>
> …
>
> *karaf*@root()>
>
>
> I saw something similar here
> <https://ops4j1.jira.com/browse/PAXWEB-573>. Do I need to use the
> deprecated <Export-Service> instruction in the maven-bundle-plugin or is
> this a bug in the OBR tools?
>
> Thanks!
>
>
> --
> Stephen
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com