You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by ramesh chandra <ta...@gmail.com> on 2012/06/27 22:17:43 UTC
Does this look a normal header ?
Service fails after graceperiod waiting for
*com.tableters.alpha.invite.dao.ReqDAO
*I can't find anything unusual except this header.
I googled but don't see much explanation on this*multiple:=false *thing.
Does it mean anything ?
invite-service Blueprint Bundle (181)
-------------------------------------
Manifest-Version = 1.0
Bnd-LastModified = 1340807671567
Tool = Bnd-1.50.0
Built-By = ramesh
Build-Jdk = 1.6.0_26
Created-By = Apache Maven Bundle Plugin
Bundle-Name = invite-service Blueprint Bundle
Bundle-Description = invite-service OSGi blueprint bundle project.
Bundle-SymbolicName = com.tableters.alpha.invite-service
Bundle-Version = 1.0.0.SNAPSHOT
Bundle-ManifestVersion = 2
*Import-Service =
com.tableters.alpha.invite.dao.ReqDAO;multiple:=false*
Import-Package =
com.tableters.alpha.invite.common;version="[1.0,2)",
com.tableters.alpha.invite.dao;version="[1.0,2)",
org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
Export-Package =
com.tableters.alpha.invite.service;uses:="com.tableters.alpha.invite.dao,com.tableters.alpha.invite.common";version=1.0.0.SNAPSHOT
regards,
Ramesh
Re: Does this look a normal header ?
Posted by ramesh chandra <ta...@gmail.com>.
On 06/27/2012 03:38 PM, Achim Nierbeck wrote:
> Well
> first of all the Import-Service header isn't used anymore but BND (or
> maven-bundle-plugin) still generates it.
> Though it gives a good idea for debugging what actually caused the
> Grace-Period.
> A Grace-Period is always given if the imported service via Blueprint
> is not available.
> The bnd tool usually tries to extract this information from your blueprint.xml
>
>
> regards, Achim
>
> 2012/6/27 ramesh chandra <ta...@gmail.com>:
>> Service fails after graceperiod waiting for
>> com.tableters.alpha.invite.dao.ReqDAO
>>
>> I can't find anything unusual except this header.
>> I googled but don't see much explanation on this multiple:=false thing.
>>
>> Does it mean anything ?
>>
>> invite-service Blueprint Bundle (181)
>> -------------------------------------
>> Manifest-Version = 1.0
>> Bnd-LastModified = 1340807671567
>> Tool = Bnd-1.50.0
>> Built-By = ramesh
>> Build-Jdk = 1.6.0_26
>> Created-By = Apache Maven Bundle Plugin
>>
>> Bundle-Name = invite-service Blueprint Bundle
>> Bundle-Description = invite-service OSGi blueprint bundle project.
>> Bundle-SymbolicName = com.tableters.alpha.invite-service
>> Bundle-Version = 1.0.0.SNAPSHOT
>> Bundle-ManifestVersion = 2
>>
>> Import-Service =
>> com.tableters.alpha.invite.dao.ReqDAO;multiple:=false
>>
>> Import-Package =
>> com.tableters.alpha.invite.common;version="[1.0,2)",
>> com.tableters.alpha.invite.dao;version="[1.0,2)",
>> org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
>> Export-Package =
>>
>> com.tableters.alpha.invite.service;uses:="com.tableters.alpha.invite.dao,com.tableters.alpha.invite.common";version=1.0.0.SNAPSHOT
>>
>> regards,
>> Ramesh
>
>
Thanks for the explanation Achim.
Debug did not give me any explanation why the service failed to import.
And thankfully header import pointed to the error.
best regards,
Ramesh
Re: Does this look a normal header ?
Posted by Achim Nierbeck <bc...@googlemail.com>.
Well
first of all the Import-Service header isn't used anymore but BND (or
maven-bundle-plugin) still generates it.
Though it gives a good idea for debugging what actually caused the
Grace-Period.
A Grace-Period is always given if the imported service via Blueprint
is not available.
The bnd tool usually tries to extract this information from your blueprint.xml
regards, Achim
2012/6/27 ramesh chandra <ta...@gmail.com>:
> Service fails after graceperiod waiting for
> com.tableters.alpha.invite.dao.ReqDAO
>
> I can't find anything unusual except this header.
> I googled but don't see much explanation on this multiple:=false thing.
>
> Does it mean anything ?
>
> invite-service Blueprint Bundle (181)
> -------------------------------------
> Manifest-Version = 1.0
> Bnd-LastModified = 1340807671567
> Tool = Bnd-1.50.0
> Built-By = ramesh
> Build-Jdk = 1.6.0_26
> Created-By = Apache Maven Bundle Plugin
>
> Bundle-Name = invite-service Blueprint Bundle
> Bundle-Description = invite-service OSGi blueprint bundle project.
> Bundle-SymbolicName = com.tableters.alpha.invite-service
> Bundle-Version = 1.0.0.SNAPSHOT
> Bundle-ManifestVersion = 2
>
> Import-Service =
> com.tableters.alpha.invite.dao.ReqDAO;multiple:=false
>
> Import-Package =
> com.tableters.alpha.invite.common;version="[1.0,2)",
> com.tableters.alpha.invite.dao;version="[1.0,2)",
> org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
> Export-Package =
>
> com.tableters.alpha.invite.service;uses:="com.tableters.alpha.invite.dao,com.tableters.alpha.invite.common";version=1.0.0.SNAPSHOT
>
> regards,
> Ramesh
--
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
OPS4J Pax for Vaadin
<http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project
Lead
blog <http://notizblog.nierbeck.de/>
Re: Does this look a normal header ?
Posted by ramesh chandra <ta...@gmail.com>.
On 06/27/2012 03:17 PM, ramesh chandra wrote:
> Service fails after graceperiod waiting for
> *com.tableters.alpha.invite.dao.ReqDAO
>
> *I can't find anything unusual except this header.
> I googled but don't see much explanation on this*multiple:=false *thing.
>
> Does it mean anything ?
>
> invite-service Blueprint Bundle (181)
> -------------------------------------
> Manifest-Version = 1.0
> Bnd-LastModified = 1340807671567
> Tool = Bnd-1.50.0
> Built-By = ramesh
> Build-Jdk = 1.6.0_26
> Created-By = Apache Maven Bundle Plugin
>
> Bundle-Name = invite-service Blueprint Bundle
> Bundle-Description = invite-service OSGi blueprint bundle project.
> Bundle-SymbolicName = com.tableters.alpha.invite-service
> Bundle-Version = 1.0.0.SNAPSHOT
> Bundle-ManifestVersion = 2
>
> *Import-Service =
> com.tableters.alpha.invite.dao.ReqDAO;multiple:=false*
>
> Import-Package =
> com.tableters.alpha.invite.common;version="[1.0,2)",
> com.tableters.alpha.invite.dao;version="[1.0,2)",
> org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
> Export-Package =
> com.tableters.alpha.invite.service;uses:="com.tableters.alpha.invite.dao,com.tableters.alpha.invite.common";version=1.0.0.SNAPSHOT
>
> regards,
> Ramesh
It might help someone in future.
What caused the error and the problem was the *** I used in import-package.
Removing the star fixed the issue.
<Import-Package>
com.tableters.alpha.invite.common*;version=${project.version},
com.tableters.alpha.invite.dao*;version=${project.version},
*
</Import-Package>
regards,
Ramesh