Hi Matt,

the waiting for namespace handlers message comes up when a bundle uses 
additional namespaces in the Blueprint XML but at the time the bundle is 
started the namespace handler service is not available. In the case of the 
persistence bundle
I would imagine it is probably waiting for the JPA namespace handler (the one 
that handles http://aries.apache.org/xmlns/jpa/v1.0.0 or 1.1.0 and lives in the 
org.apache.aries.jpa.blueprint.aries bundle). If that namespace handler does 
not become available then the Blueprint won't be created.

You can check in the console if the Blueprint container gets registered for the 
persistence bundle then the namespace handler was found and the Blueprint was 
processed. In that case the problem you see must be something about the 
reference not matching the service. Otherwise the Blueprint for the persistence 
bundle never started and that explains the missing service for the BIZ bundle.

Hope this helps a bit,

Valentin

On 31 May 2011, at 23:34, Matt Madhavan wrote:

> Hello,
> I'm running (trying to run) a web app inside Felix Container. One of my 
> bundle (persistence bundle) is complaining as follows:
> 
> g! [Blueprint Extender: 2] INFO 
> org.apache.aries.blueprint.container.BlueprintContainerImpl - Bundle 
> com.xxxx.osgi.samples.bank.persistence is waiting for namespace handlers
> 
> This bundle exports a service named:
> com.xxxx.osgi.samples.bank.api.persistence.BankPersistenceService
> 
> Meanwhile another  bundle (BIZ bundle) timesout waiting for this service from 
> the above bundle as follows:
> 
> g! [Blueprint Extender: 2] ERROR 
> org.apache.aries.blueprint.container.BlueprintContainerImpl - Unable to start 
> blueprint container for bundle 
> com.xxxx.osgi.samples.bank.biz due to unresolved dependencies  
> (objectClass=com.xxxx.osgi.samples.bank.api.persistence.BankPersistenceService)]
> java.util.concurrent.TimeoutException
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run
> 
> 
> 
> Been stuck on this for a while? Any ideas please?
> 
> 
> Thanks in advance!
> 
> Matt
> 

Reply via email to