You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by Matt Madhavan <ma...@gmail.com> on 2011/06/01 00:34:51 UTC

Aries - Bundle waiting for Namespace Handlers - What does it mean?

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

Re: Aries - Bundle waiting for Namespace Handlers - What does it mean?

Posted by Johan Edstrom <se...@gmail.com>.
You need the aries JPA bundles active to parse the entitymanager interceptors.
A namespacehandler is a functionality provides, just as say camel-blueprint, aries-jpa
etc etc handles additional snippets of XML for you based on a name-space.

/je

On Jun 1, 2011, at 8:39 AM, Matt Madhavan wrote:

> Hi Valentine,
> When you say JPA namespace handler do you mean its a bundle itself? I'm not sure what to look for here! Also could you explain what do you mean by "If the namespace handler does not become available"?
> 
> 
> In the console it says the Blueprint container for the persitence bundle was unable to start. But the felix shows that it is "active"?
> 
> Any  more ideas please!
> 
> Matt
> 
> On Wed, Jun 1, 2011 at 1:46 AM, Valentin Mahrwald <vm...@googlemail.com> wrote:
> 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
>> 
> 
> 


Re: Aries - Bundle waiting for Namespace Handlers - What does it mean?

Posted by Matt Madhavan <ma...@gmail.com>.
Hello All,
Thanks for the reply. I think I have narrowed the problem. By biz bundle
waits for a service from my persistence bundle. My persistence looks like it
needs aries blueprint transaction bundle.

The aries blueprint transaction does not start because it was waiting for
the Transaction Manager from AriesBluePrint Transacation Manager is waiting
on the *objectClass=javax.transaction.TransactionManager * service which
comes from the aries.transaction.manager bundle!

But for some reason this bundle is not provisioned by mvn pax:provision
command! There is a dependency for it in the provision/pom.xml as follows:

    <dependency>
      <groupId>org.apache.aries.transaction</groupId>
      <artifactId>org.apache.aries.transaction.manager</artifactId>
      <version>0.3</version>
    </dependency>

But this file does not get provisioned at all! I'm scratching my head now!

Any ideas please?

Matt

On Wed, Jun 1, 2011 at 10:58 AM, Jeremy Hughes <hu...@apache.org> wrote:

> Hi Matt,
>
> On 1 June 2011 15:39, Matt Madhavan <ma...@gmail.com> wrote:
> > Hi Valentine,
> > When you say JPA namespace handler do you mean its a bundle itself? I'm
> not
>
> Can you confirm your com.xxxx.osgi.samples.bank.persistence is waiting
> for namespace bundle is using either the
> http://aries.apache.org/xmlns/jpa/v1.0.0  or
> http://aries.apache.org/xmlns/jpa/v1.1.0 namespace in its blueprint
> xml?
>
> If so then you'll need to make sure Felix starts the
> org.apache.aries.jpa.blueprint.aries bundle. This bundle uses
> Blueprint itself to register the namespace handler for
> http://aries.apache.org/xmlns/jpa/v1.0.0 and
> http://aries.apache.org/xmlns/jpa/v1.1.0
>
> > sure what to look for here! Also could you explain what do you mean by
> "If
> > the namespace handler does not become available"?
>
> One scenario would be if you haven't started the
> org.apache.aries.jpa.blueprint.aries bundle which contains the NS
> handler you need.
>
> >
> > In the console it says the Blueprint container for the persitence bundle
> was
> > unable to start. But the felix shows that it is "active"?
>
> The OSGi bundle state has reached 'active' but this doesn't reflect
> the Blueprint container state. Changes to the Blueprint container
> state will continue after the bundle has become active.
>
> > Any  more ideas please!
> > Matt
> >
> > On Wed, Jun 1, 2011 at 1:46 AM, Valentin Mahrwald <
> vmahrwald@googlemail.com>
> > wrote:
> >>
> >> 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
> >>
> >
> >
>

Re: Aries - Bundle waiting for Namespace Handlers - What does it mean?

Posted by Jeremy Hughes <hu...@apache.org>.
Hi Matt,

On 1 June 2011 15:39, Matt Madhavan <ma...@gmail.com> wrote:
> Hi Valentine,
> When you say JPA namespace handler do you mean its a bundle itself? I'm not

Can you confirm your com.xxxx.osgi.samples.bank.persistence is waiting
for namespace bundle is using either the
http://aries.apache.org/xmlns/jpa/v1.0.0  or
http://aries.apache.org/xmlns/jpa/v1.1.0 namespace in its blueprint
xml?

If so then you'll need to make sure Felix starts the
org.apache.aries.jpa.blueprint.aries bundle. This bundle uses
Blueprint itself to register the namespace handler for
http://aries.apache.org/xmlns/jpa/v1.0.0 and
http://aries.apache.org/xmlns/jpa/v1.1.0

> sure what to look for here! Also could you explain what do you mean by "If
> the namespace handler does not become available"?

One scenario would be if you haven't started the
org.apache.aries.jpa.blueprint.aries bundle which contains the NS
handler you need.

>
> In the console it says the Blueprint container for the persitence bundle was
> unable to start. But the felix shows that it is "active"?

The OSGi bundle state has reached 'active' but this doesn't reflect
the Blueprint container state. Changes to the Blueprint container
state will continue after the bundle has become active.

> Any  more ideas please!
> Matt
>
> On Wed, Jun 1, 2011 at 1:46 AM, Valentin Mahrwald <vm...@googlemail.com>
> wrote:
>>
>> 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
>>
>
>

Re: Aries - Bundle waiting for Namespace Handlers - What does it mean?

Posted by Matt Madhavan <ma...@gmail.com>.
Hi Valentine,
When you say JPA namespace handler do you mean its a bundle itself? I'm not
sure what to look for here! Also could you explain what do you mean by "If
the namespace handler does not become available"?


In the console it says the Blueprint container for the persitence bundle was
unable to start. But the felix shows that it is "active"?

Any  more ideas please!

Matt

On Wed, Jun 1, 2011 at 1:46 AM, Valentin Mahrwald
<vm...@googlemail.com>wrote:

> 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
>
>
>

Re: Aries - Bundle waiting for Namespace Handlers - What does it mean?

Posted by Valentin Mahrwald <vm...@googlemail.com>.
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
>