You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Matthieu Vincent <mv...@gmail.com> on 2014/04/01 11:31:01 UTC

Bundle is waiting for namespace handlers

Hello

   I'm trying to migrate to Karaf 3.0.0, when I deploy my bundles I got the
following "error" :

Bundle XXXX is waiting for namespace handlers [
http://www.springframework.org/schema/context,
http://www.springframework.org/schema/beans,
http://www.springframework.org/schema/osgi]

My bundle already imports the spring packages :
Import-Package:
org.springframework.aop,\
org.springframework.aop.config,\
 org.springframework.aop.scope,\
org.springframework.aop.framework,\
org.springframework.aop.aspectj.annotation,\
 org.springframework.context.config,\
org.springframework.beans.factory.xml,\
*

and my blueprint.xml header looks like this :
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="
http://www.springframework.org/schema/aop"
 xmlns:bean="http://www.springframework.org/schema/beans" xmlns:osgi="
http://www.springframework.org/schema/osgi"
 xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
 http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
 http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
 http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
 http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
 http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
...
</blueprint>

I've tried to :
- install feature spring-dm
- add a spring.handlers in my bundle
- use Spring 3.2 or 3.1

None of these attempts worked.
Does anyone got this problem and succeeded to fix it ?

Thanks in advance
Mat

Re: Bundle is waiting for namespace handlers

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, like in blueprint with blueprintBundleContext (you just need Spring 
DM for that).

Regards
JB

On 04/01/2014 05:58 PM, Matthieu Vincent wrote:
> Ok thanks for info. It looks like it works :)
>
> You probably know that but in spring xml context, bundle context can be
> referenced using "bundleContext" also when needed.
>
> Mat
>
>
> 2014-04-01 14:28 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
>     Hi Matthieu,
>
>     You can use spring-dm and access the bundle context:
>
>     http://docs.spring.io/osgi/__docs/1.2.1/reference/html/bnd-__app-ctx.html
>     <http://docs.spring.io/osgi/docs/1.2.1/reference/html/bnd-app-ctx.html>
>
>     (take a look on chapter 5.5).
>
>     Any bean implementing the BundleContextAware will access the
>     bundleContext (Spring will inject it for you).
>
>     Regards
>     JB
>
>
>     On 04/01/2014 02:23 PM, Matthieu Vincent wrote:
>
>         Hi JB
>
>            migrating to spring only, goes further but fails because I use
>         reference to blueprintBundleContext to set my bundle context on
>         some beans.
>         Is there any equivalent in spring to retrieve current bundle
>         context ?
>
>         Thanks for help
>         Mat
>
>
>         2014-04-01 14:12 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>         <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>:
>
>
>              Hi Matthieu,
>
>              Yes, you can use Spring "only", just by installing the
>         spring feature.
>
>              With Spring feature, you can use beans XML in your bundle (in
>              META-INF/spring folder), or directly by dropping the beans
>         XML in
>              the deploy folder.
>
>              Regards
>              JB
>
>
>              On 04/01/2014 01:57 PM, Matthieu Vincent wrote:
>
>                  I've tried to install gemini feature (btw it's
>         gemini-blueprint
>                  :) ) and
>                  got this error (using Spring 3.2) :
>
>                  Caused by: java.lang.NoSuchFieldError: NULL
>                            at
>
>         org.eclipse.gemini.blueprint.____blueprint.container.____SpringBlueprintConverterServic____e.convert(____SpringBlueprintConverterServic____e.java:93)
>                            at
>
>         org.springframework.beans.____TypeConverterDelegate.____convertIfNecessary(____TypeConverterDelegate.java:____161)
>                            at
>
>         org.springframework.beans.____BeanWrapperImpl.____convertIfNecessary(____BeanWrapperImpl.java:448)
>                            at
>
>         org.springframework.beans.____BeanWrapperImpl.____convertForProperty(____BeanWrapperImpl.java:494)
>                            at
>
>         org.springframework.beans.____BeanWrapperImpl.____convertForProperty(____BeanWrapperImpl.java:488)
>                            at
>
>         org.springframework.beans.____factory.support.____AbstractAutowireCapableBeanFac____tory.convertForProperty(____AbstractAutowireCapableBeanFac____tory.java:1433)
>                            at
>
>         org.springframework.beans.____factory.support.____AbstractAutowireCapableBeanFac____tory.applyPropertyValues(____AbstractAutowireCapableBeanFac____tory.java:1392)
>                            at
>
>         org.springframework.beans.____factory.support.____AbstractAutowireCapableBeanFac____tory.populateBean(____AbstractAutowireCapableBeanFac____tory.java:1128)
>                            at
>
>         org.springframework.beans.____factory.support.____AbstractAutowireCapableBeanFac____tory.doCreateBean(____AbstractAutowireCapableBeanFac____tory.java:519)
>
>
>                  Maybe I can switch to spring only namespaces ? or
>         inversely may
>                  I use
>                  only blueprint ?
>
>                  Rgs
>                  Mat
>
>
>                  2014-04-01 13:40 GMT+02:00 Jean-Baptiste Onofré
>         <jb@nanthrax.net <ma...@nanthrax.net>
>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
>                  <mailto:jb@nanthrax.net <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>:
>
>
>
>                       And install the gemini feature (feature:install
>         gemini).
>
>                       Regards
>                       JB
>
>
>                       On 04/01/2014 12:52 PM, Achim Nierbeck wrote:
>
>                           Looks like you'll need to use the gemini
>         blueprint,
>                  cause the defaul
>                           Aries Blueprint doesn't work with mixed
>         blueprint and
>                  spring
>                           namespaces.
>                           To have gemini blueprint successfully running
>         in Karaf 3.0
>                           you'll need
>                           to run regions too.
>
>                           Regards, Achim
>
>
>                           2014-04-01 11:31 GMT+02:00 Matthieu Vincent
>                           <mvincent.it@gmail.com
>         <ma...@gmail.com> <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com>>
>                  <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com> <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com>>__>
>                           <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com>
>                  <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com>> <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com>
>                  <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com>>__>__>__>:
>
>
>
>
>                                Hello
>
>                                    I'm trying to migrate to Karaf 3.0.0,
>         when I
>                  deploy my
>                           bundles I
>                                got the following "error" :
>
>                                Bundle XXXX is waiting for namespace handlers
>
>         [http://www.springframework.______org/schema/context
>
>                           <http://www.springframework.____org/schema/context
>                  <http://www.springframework.__org/schema/context
>         <http://www.springframework.org/schema/context>>>,
>         http://www.springframework.______org/schema/beans
>
>                           <http://www.springframework.____org/schema/beans
>                  <http://www.springframework.__org/schema/beans
>         <http://www.springframework.org/schema/beans>>>,
>         http://www.springframework.______org/schema/osgi
>
>
>                           <http://www.springframework.____org/schema/osgi
>                  <http://www.springframework.__org/schema/osgi
>         <http://www.springframework.org/schema/osgi>>>]
>
>                                My bundle already imports the spring
>         packages :
>                                Import-Package:
>                                org.springframework.aop,\
>                                org.springframework.aop.______config,\
>                                org.springframework.aop.scope,______\
>                                org.springframework.aop.______framework,\
>
>         org.springframework.aop.______aspectj.annotation,\
>                                org.springframework.context.______config,\
>                                org.springframework.beans.______factory.xml,\
>
>
>                                *
>
>                                and my blueprint.xml header looks like this :
>                                <blueprint
>
>           xmlns="http://www.osgi.org/______xmlns/blueprint/v1.0.0
>         <http://www.osgi.org/____xmlns/blueprint/v1.0.0>
>                  <http://www.osgi.org/__xmlns/__blueprint/v1.0.0
>         <http://www.osgi.org/__xmlns/blueprint/v1.0.0>>
>
>           <http://www.osgi.org/xmlns/____blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0>
>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>>"
>
>
>         xmlns:xsi="http://www.w3.org/______2001/XMLSchema-instance
>         <http://www.w3.org/____2001/XMLSchema-instance>
>                  <http://www.w3.org/__2001/__XMLSchema-instance
>         <http://www.w3.org/__2001/XMLSchema-instance>>
>                           <http://www.w3.org/2001/____XMLSchema-instance
>         <http://www.w3.org/2001/__XMLSchema-instance>
>                  <http://www.w3.org/2001/__XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>>>"
>
>
>         xmlns:aop="http://www.__spring____framework.org/schema/aop
>         <http://spring__framework.org/schema/aop>
>                  <http://springframework.org/__schema/aop
>         <http://springframework.org/schema/aop>>
>                           <http://www.springframework.____org/schema/aop
>                  <http://www.springframework.__org/schema/aop
>         <http://www.springframework.org/schema/aop>>>__"
>
>
>         xmlns:bean="http://www.__sprin____gframework.org/schema/____beans <http://sprin__gframework.org/schema/__beans>
>                  <http://springframework.org/__schema/__beans
>         <http://springframework.org/schema/__beans>>
>                           <http://www.springframework.____org/schema/beans
>                  <http://www.springframework.__org/schema/beans
>         <http://www.springframework.org/schema/beans>>>"
>
>
>         xmlns:osgi="http://www.__sprin____gframework.org/schema/__osgi
>         <http://sprin__gframework.org/schema/__osgi>
>                  <http://springframework.org/__schema/__osgi
>         <http://springframework.org/schema/__osgi>>
>                           <http://www.springframework.____org/schema/osgi
>                  <http://www.springframework.__org/schema/osgi
>         <http://www.springframework.org/schema/osgi>>>"
>
>
>
>         xmlns:context="http://www.__sp____ringframework.org/schema/______context
>         <http://sp__ringframework.org/schema/____context>
>                  <http://springframework.org/__schema/__context
>         <http://springframework.org/schema/__context>>
>                           <http://www.springframework.____org/schema/context
>                  <http://www.springframework.__org/schema/context
>         <http://www.springframework.org/schema/context>>>"
>
>
>
>         xsi:schemaLocation="http://__w____ww.osgi.org/xmlns/blueprint/______v1.0.0
>         <http://w__ww.osgi.org/xmlns/blueprint/____v1.0.0>
>                  <http://www.osgi.org/xmlns/__blueprint/__v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/__v1.0.0>>
>
>           <http://www.osgi.org/xmlns/____blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0>
>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>>
>         http://www.osgi.org/xmlns/______blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd>
>
>         <http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd>__>
>
>
>         <http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd>
>
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>__>__>
>         http://www.osgi.org/xmlns/______blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/____blueprint/v1.0.0>
>                  <http://www.osgi.org/xmlns/____blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0>>
>
>           <http://www.osgi.org/xmlns/____blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0>
>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>>
>         http://www.osgi.org/xmlns/______blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd>
>
>         <http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd>__>
>
>
>         <http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd>
>
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>__>__>
>         http://www.springframework.______org/schema/aop
>                           <http://www.springframework.____org/schema/aop
>                  <http://www.springframework.__org/schema/aop
>         <http://www.springframework.org/schema/aop>>>
>         http://www.springframework.______org/schema/aop/spring-aop.xsd
>
>
>         <http://www.springframework.____org/schema/aop/spring-aop.xsd
>
>         <http://www.springframework.__org/schema/aop/spring-aop.xsd
>         <http://www.springframework.org/schema/aop/spring-aop.xsd>>__>
>         http://www.springframework.______org/schema/context
>                           <http://www.springframework.____org/schema/context
>                  <http://www.springframework.__org/schema/context
>         <http://www.springframework.org/schema/context>>>
>         http://www.springframework.______org/schema/context/spring-______context.xsd
>
>
>         <http://www.springframework.____org/schema/context/spring-____context.xsd
>
>         <http://www.springframework.__org/schema/context/spring-__context.xsd
>         <http://www.springframework.org/schema/context/spring-context.xsd>>>
>         http://www.springframework.______org/schema/osgi
>                           <http://www.springframework.____org/schema/osgi
>                  <http://www.springframework.__org/schema/osgi
>         <http://www.springframework.org/schema/osgi>>>
>         http://www.springframework.______org/schema/osgi/spring-osgi.______xsd
>
>
>         <http://www.springframework.____org/schema/osgi/spring-osgi.____xsd
>
>         <http://www.springframework.__org/schema/osgi/spring-osgi.__xsd
>         <http://www.springframework.org/schema/osgi/spring-osgi.xsd>>>
>         http://www.springframework.______org/schema/beans
>                           <http://www.springframework.____org/schema/beans
>                  <http://www.springframework.__org/schema/beans
>         <http://www.springframework.org/schema/beans>>>
>         http://www.springframework.______org/schema/beans/spring-__beans.____xsd
>
>
>
>
>         <http://www.springframework.____org/schema/beans/spring-beans.____xsd
>         <http://www.springframework.__org/schema/beans/spring-beans.__xsd <http://www.springframework.org/schema/beans/spring-beans.xsd>>>">
>                                ...
>                                </blueprint>
>
>                                I've tried to :
>                                - install feature spring-dm
>                                - add a spring.handlers in my bundle
>                                - use Spring 3.2 or 3.1
>
>                                None of these attempts worked.
>                                Does anyone got this problem and
>         succeeded to fix it ?
>
>                                Thanks in advance
>                                Mat
>
>
>
>
>                           --
>
>                           Apache Karaf <http://karaf.apache.org/>
>         Committer & PMC
>                           OPS4J Pax Web
>                  <http://wiki.ops4j.org/______display/paxweb/Pax+Web/
>         <http://wiki.ops4j.org/____display/paxweb/Pax+Web/>
>                  <http://wiki.ops4j.org/____display/paxweb/Pax+Web/
>         <http://wiki.ops4j.org/__display/paxweb/Pax+Web/>>
>
>
>
>           <http://wiki.ops4j.org/____display/paxweb/Pax+Web/
>         <http://wiki.ops4j.org/__display/paxweb/Pax+Web/>
>                  <http://wiki.ops4j.org/__display/paxweb/Pax+Web/
>         <http://wiki.ops4j.org/display/paxweb/Pax+Web/>>>> Committer
>                           & Project Lead
>                           blog <http://notizblog.nierbeck.de/______
>         <http://notizblog.nierbeck.de/____>
>
>                  <http://notizblog.nierbeck.de/____
>         <http://notizblog.nierbeck.de/__>>>
>
>
>                           Software Architect / Project Manager / Scrum
>         Master
>
>
>                       --
>                       Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>                  <mailto:jbonofre@apache.org
>         <ma...@apache.org> <mailto:jbonofre@apache.org
>         <ma...@apache.org>>>
>
>
>         http://blog.nanthrax.net
>                       Talend - http://www.talend.com
>
>
>
>              --
>              Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>         http://blog.nanthrax.net
>              Talend - http://www.talend.com
>
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Bundle is waiting for namespace handlers

Posted by Matthieu Vincent <mv...@gmail.com>.
Ok thanks for info. It looks like it works :)

You probably know that but in spring xml context, bundle context can be
referenced using "bundleContext" also when needed.

Mat


2014-04-01 14:28 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> Hi Matthieu,
>
> You can use spring-dm and access the bundle context:
>
> http://docs.spring.io/osgi/docs/1.2.1/reference/html/bnd-app-ctx.html
>
> (take a look on chapter 5.5).
>
> Any bean implementing the BundleContextAware will access the bundleContext
> (Spring will inject it for you).
>
> Regards
> JB
>
>
> On 04/01/2014 02:23 PM, Matthieu Vincent wrote:
>
>> Hi JB
>>
>>   migrating to spring only, goes further but fails because I use
>> reference to blueprintBundleContext to set my bundle context on some
>> beans.
>> Is there any equivalent in spring to retrieve current bundle context ?
>>
>> Thanks for help
>> Mat
>>
>>
>> 2014-04-01 14:12 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>>:
>>
>>
>>     Hi Matthieu,
>>
>>     Yes, you can use Spring "only", just by installing the spring feature.
>>
>>     With Spring feature, you can use beans XML in your bundle (in
>>     META-INF/spring folder), or directly by dropping the beans XML in
>>     the deploy folder.
>>
>>     Regards
>>     JB
>>
>>
>>     On 04/01/2014 01:57 PM, Matthieu Vincent wrote:
>>
>>         I've tried to install gemini feature (btw it's gemini-blueprint
>>         :) ) and
>>         got this error (using Spring 3.2) :
>>
>>         Caused by: java.lang.NoSuchFieldError: NULL
>>                   at
>>         org.eclipse.gemini.blueprint.__blueprint.container.__
>> SpringBlueprintConverterServic__e.convert(__
>> SpringBlueprintConverterServic__e.java:93)
>>                   at
>>         org.springframework.beans.__TypeConverterDelegate.__
>> convertIfNecessary(__TypeConverterDelegate.java:__161)
>>                   at
>>         org.springframework.beans.__BeanWrapperImpl.__
>> convertIfNecessary(__BeanWrapperImpl.java:448)
>>                   at
>>         org.springframework.beans.__BeanWrapperImpl.__
>> convertForProperty(__BeanWrapperImpl.java:494)
>>                   at
>>         org.springframework.beans.__BeanWrapperImpl.__
>> convertForProperty(__BeanWrapperImpl.java:488)
>>                   at
>>         org.springframework.beans.__factory.support.__
>> AbstractAutowireCapableBeanFac__tory.convertForProperty(__
>> AbstractAutowireCapableBeanFac__tory.java:1433)
>>                   at
>>         org.springframework.beans.__factory.support.__
>> AbstractAutowireCapableBeanFac__tory.applyPropertyValues(__
>> AbstractAutowireCapableBeanFac__tory.java:1392)
>>                   at
>>         org.springframework.beans.__factory.support.__
>> AbstractAutowireCapableBeanFac__tory.populateBean(__
>> AbstractAutowireCapableBeanFac__tory.java:1128)
>>                   at
>>         org.springframework.beans.__factory.support.__
>> AbstractAutowireCapableBeanFac__tory.doCreateBean(__
>> AbstractAutowireCapableBeanFac__tory.java:519)
>>
>>
>>         Maybe I can switch to spring only namespaces ? or inversely may
>>         I use
>>         only blueprint ?
>>
>>         Rgs
>>         Mat
>>
>>
>>         2014-04-01 13:40 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>>         <ma...@nanthrax.net>
>>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>:
>>
>>
>>
>>              And install the gemini feature (feature:install gemini).
>>
>>              Regards
>>              JB
>>
>>
>>              On 04/01/2014 12:52 PM, Achim Nierbeck wrote:
>>
>>                  Looks like you'll need to use the gemini blueprint,
>>         cause the defaul
>>                  Aries Blueprint doesn't work with mixed blueprint and
>>         spring
>>                  namespaces.
>>                  To have gemini blueprint successfully running in Karaf
>> 3.0
>>                  you'll need
>>                  to run regions too.
>>
>>                  Regards, Achim
>>
>>
>>                  2014-04-01 11:31 GMT+02:00 Matthieu Vincent
>>                  <mvincent.it@gmail.com <ma...@gmail.com>
>>         <mailto:mvincent.it@gmail.com <ma...@gmail.com>>
>>                  <mailto:mvincent.it@gmail.com
>>         <ma...@gmail.com> <mailto:mvincent.it@gmail.com
>>         <ma...@gmail.com>>__>__>:
>>
>>
>>
>>
>>                       Hello
>>
>>                           I'm trying to migrate to Karaf 3.0.0, when I
>>         deploy my
>>                  bundles I
>>                       got the following "error" :
>>
>>                       Bundle XXXX is waiting for namespace handlers
>>                       [http://www.springframework.____org/schema/context
>>
>>                  <http://www.springframework.__org/schema/context
>>         <http://www.springframework.org/schema/context>>,
>>         http://www.springframework.____org/schema/beans
>>
>>                  <http://www.springframework.__org/schema/beans
>>         <http://www.springframework.org/schema/beans>>,
>>         http://www.springframework.____org/schema/osgi
>>
>>
>>                  <http://www.springframework.__org/schema/osgi
>>         <http://www.springframework.org/schema/osgi>>]
>>
>>                       My bundle already imports the spring packages :
>>                       Import-Package:
>>                       org.springframework.aop,\
>>                       org.springframework.aop.____config,\
>>                       org.springframework.aop.scope,____\
>>                       org.springframework.aop.____framework,\
>>                       org.springframework.aop.____aspectj.annotation,\
>>                       org.springframework.context.____config,\
>>                       org.springframework.beans.____factory.xml,\
>>
>>
>>                       *
>>
>>                       and my blueprint.xml header looks like this :
>>                       <blueprint
>>                  xmlns="http://www.osgi.org/____xmlns/blueprint/v1.0.0
>>         <http://www.osgi.org/__xmlns/blueprint/v1.0.0>
>>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>"
>>
>>           xmlns:xsi="http://www.w3.org/____2001/XMLSchema-instance
>>         <http://www.w3.org/__2001/XMLSchema-instance>
>>                  <http://www.w3.org/2001/__XMLSchema-instance
>>         <http://www.w3.org/2001/XMLSchema-instance>>"
>>
>>           xmlns:aop="http://www.__spring__framework.org/schema/aop
>>         <http://springframework.org/schema/aop>
>>                  <http://www.springframework.__org/schema/aop
>>         <http://www.springframework.org/schema/aop>>__"
>>
>>           xmlns:bean="http://www.__sprin__gframework.org/schema/__beans
>>         <http://springframework.org/schema/__beans>
>>                  <http://www.springframework.__org/schema/beans
>>         <http://www.springframework.org/schema/beans>>"
>>
>>           xmlns:osgi="http://www.__sprin__gframework.org/schema/__osgi
>>         <http://springframework.org/schema/__osgi>
>>                  <http://www.springframework.__org/schema/osgi
>>         <http://www.springframework.org/schema/osgi>>"
>>
>>
>>         xmlns:context="http://www.__sp__ringframework.org/schema/___
>> _context
>>         <http://springframework.org/schema/__context>
>>                  <http://www.springframework.__org/schema/context
>>         <http://www.springframework.org/schema/context>>"
>>
>>
>>         xsi:schemaLocation="http://__w__ww.osgi.org/xmlns/blueprint/
>> ____v1.0.0
>>         <http://www.osgi.org/xmlns/blueprint/__v1.0.0>
>>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>
>>         http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd
>>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd>
>>
>>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>__>
>>         http://www.osgi.org/xmlns/____blueprint/v1.0.0
>>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0>
>>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>
>>         http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd
>>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd>
>>
>>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>__>
>>         http://www.springframework.____org/schema/aop
>>                  <http://www.springframework.__org/schema/aop
>>         <http://www.springframework.org/schema/aop>>
>>         http://www.springframework.____org/schema/aop/spring-aop.xsd
>>
>>         <http://www.springframework.__org/schema/aop/spring-aop.xsd
>>         <http://www.springframework.org/schema/aop/spring-aop.xsd>>
>>         http://www.springframework.____org/schema/context
>>                  <http://www.springframework.__org/schema/context
>>         <http://www.springframework.org/schema/context>>
>>         http://www.springframework.____org/schema/context/spring-___
>> _context.xsd
>>
>>         <http://www.springframework.__org/schema/context/spring-__
>> context.xsd
>>         <http://www.springframework.org/schema/context/spring-context.xsd
>> >>
>>         http://www.springframework.____org/schema/osgi
>>                  <http://www.springframework.__org/schema/osgi
>>         <http://www.springframework.org/schema/osgi>>
>>         http://www.springframework.____org/schema/osgi/spring-osgi._
>> ___xsd
>>
>>         <http://www.springframework.__org/schema/osgi/spring-osgi.__xsd
>>         <http://www.springframework.org/schema/osgi/spring-osgi.xsd>>
>>         http://www.springframework.____org/schema/beans
>>                  <http://www.springframework.__org/schema/beans
>>         <http://www.springframework.org/schema/beans>>
>>         http://www.springframework.____org/schema/beans/spring-
>> beans.____xsd
>>
>>
>>
>>         <http://www.springframework.__org/schema/beans/spring-beans.__xsd
>> <http://www.springframework.org/schema/beans/spring-beans.xsd>>">
>>                       ...
>>                       </blueprint>
>>
>>                       I've tried to :
>>                       - install feature spring-dm
>>                       - add a spring.handlers in my bundle
>>                       - use Spring 3.2 or 3.1
>>
>>                       None of these attempts worked.
>>                       Does anyone got this problem and succeeded to fix
>> it ?
>>
>>                       Thanks in advance
>>                       Mat
>>
>>
>>
>>
>>                  --
>>
>>                  Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>                  OPS4J Pax Web
>>         <http://wiki.ops4j.org/____display/paxweb/Pax+Web/
>>         <http://wiki.ops4j.org/__display/paxweb/Pax+Web/>
>>
>>
>>                  <http://wiki.ops4j.org/__display/paxweb/Pax+Web/
>>         <http://wiki.ops4j.org/display/paxweb/Pax+Web/>>> Committer
>>                  & Project Lead
>>                  blog <http://notizblog.nierbeck.de/____
>>
>>         <http://notizblog.nierbeck.de/__>>
>>
>>
>>                  Software Architect / Project Manager / Scrum Master
>>
>>
>>              --
>>              Jean-Baptiste Onofré
>>         jbonofre@apache.org <ma...@apache.org>
>>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>>
>>
>>         http://blog.nanthrax.net
>>              Talend - http://www.talend.com
>>
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     jbonofre@apache.org <ma...@apache.org>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Bundle is waiting for namespace handlers

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Matthieu,

You can use spring-dm and access the bundle context:

http://docs.spring.io/osgi/docs/1.2.1/reference/html/bnd-app-ctx.html

(take a look on chapter 5.5).

Any bean implementing the BundleContextAware will access the 
bundleContext (Spring will inject it for you).

Regards
JB

On 04/01/2014 02:23 PM, Matthieu Vincent wrote:
> Hi JB
>
>   migrating to spring only, goes further but fails because I use
> reference to blueprintBundleContext to set my bundle context on some beans.
> Is there any equivalent in spring to retrieve current bundle context ?
>
> Thanks for help
> Mat
>
>
> 2014-04-01 14:12 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
>     Hi Matthieu,
>
>     Yes, you can use Spring "only", just by installing the spring feature.
>
>     With Spring feature, you can use beans XML in your bundle (in
>     META-INF/spring folder), or directly by dropping the beans XML in
>     the deploy folder.
>
>     Regards
>     JB
>
>
>     On 04/01/2014 01:57 PM, Matthieu Vincent wrote:
>
>         I've tried to install gemini feature (btw it's gemini-blueprint
>         :) ) and
>         got this error (using Spring 3.2) :
>
>         Caused by: java.lang.NoSuchFieldError: NULL
>                   at
>         org.eclipse.gemini.blueprint.__blueprint.container.__SpringBlueprintConverterServic__e.convert(__SpringBlueprintConverterServic__e.java:93)
>                   at
>         org.springframework.beans.__TypeConverterDelegate.__convertIfNecessary(__TypeConverterDelegate.java:__161)
>                   at
>         org.springframework.beans.__BeanWrapperImpl.__convertIfNecessary(__BeanWrapperImpl.java:448)
>                   at
>         org.springframework.beans.__BeanWrapperImpl.__convertForProperty(__BeanWrapperImpl.java:494)
>                   at
>         org.springframework.beans.__BeanWrapperImpl.__convertForProperty(__BeanWrapperImpl.java:488)
>                   at
>         org.springframework.beans.__factory.support.__AbstractAutowireCapableBeanFac__tory.convertForProperty(__AbstractAutowireCapableBeanFac__tory.java:1433)
>                   at
>         org.springframework.beans.__factory.support.__AbstractAutowireCapableBeanFac__tory.applyPropertyValues(__AbstractAutowireCapableBeanFac__tory.java:1392)
>                   at
>         org.springframework.beans.__factory.support.__AbstractAutowireCapableBeanFac__tory.populateBean(__AbstractAutowireCapableBeanFac__tory.java:1128)
>                   at
>         org.springframework.beans.__factory.support.__AbstractAutowireCapableBeanFac__tory.doCreateBean(__AbstractAutowireCapableBeanFac__tory.java:519)
>
>         Maybe I can switch to spring only namespaces ? or inversely may
>         I use
>         only blueprint ?
>
>         Rgs
>         Mat
>
>
>         2014-04-01 13:40 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>         <ma...@nanthrax.net>
>         <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>:
>
>
>              And install the gemini feature (feature:install gemini).
>
>              Regards
>              JB
>
>
>              On 04/01/2014 12:52 PM, Achim Nierbeck wrote:
>
>                  Looks like you'll need to use the gemini blueprint,
>         cause the defaul
>                  Aries Blueprint doesn't work with mixed blueprint and
>         spring
>                  namespaces.
>                  To have gemini blueprint successfully running in Karaf 3.0
>                  you'll need
>                  to run regions too.
>
>                  Regards, Achim
>
>
>                  2014-04-01 11:31 GMT+02:00 Matthieu Vincent
>                  <mvincent.it@gmail.com <ma...@gmail.com>
>         <mailto:mvincent.it@gmail.com <ma...@gmail.com>>
>                  <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com> <mailto:mvincent.it@gmail.com
>         <ma...@gmail.com>>__>__>:
>
>
>
>                       Hello
>
>                           I'm trying to migrate to Karaf 3.0.0, when I
>         deploy my
>                  bundles I
>                       got the following "error" :
>
>                       Bundle XXXX is waiting for namespace handlers
>                       [http://www.springframework.____org/schema/context
>                  <http://www.springframework.__org/schema/context
>         <http://www.springframework.org/schema/context>>,
>         http://www.springframework.____org/schema/beans
>                  <http://www.springframework.__org/schema/beans
>         <http://www.springframework.org/schema/beans>>,
>         http://www.springframework.____org/schema/osgi
>
>                  <http://www.springframework.__org/schema/osgi
>         <http://www.springframework.org/schema/osgi>>]
>
>                       My bundle already imports the spring packages :
>                       Import-Package:
>                       org.springframework.aop,\
>                       org.springframework.aop.____config,\
>                       org.springframework.aop.scope,____\
>                       org.springframework.aop.____framework,\
>                       org.springframework.aop.____aspectj.annotation,\
>                       org.springframework.context.____config,\
>                       org.springframework.beans.____factory.xml,\
>
>                       *
>
>                       and my blueprint.xml header looks like this :
>                       <blueprint
>                  xmlns="http://www.osgi.org/____xmlns/blueprint/v1.0.0
>         <http://www.osgi.org/__xmlns/blueprint/v1.0.0>
>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>"
>
>           xmlns:xsi="http://www.w3.org/____2001/XMLSchema-instance
>         <http://www.w3.org/__2001/XMLSchema-instance>
>                  <http://www.w3.org/2001/__XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>>"
>
>           xmlns:aop="http://www.__spring__framework.org/schema/aop
>         <http://springframework.org/schema/aop>
>                  <http://www.springframework.__org/schema/aop
>         <http://www.springframework.org/schema/aop>>__"
>
>           xmlns:bean="http://www.__sprin__gframework.org/schema/__beans
>         <http://springframework.org/schema/__beans>
>                  <http://www.springframework.__org/schema/beans
>         <http://www.springframework.org/schema/beans>>"
>
>           xmlns:osgi="http://www.__sprin__gframework.org/schema/__osgi
>         <http://springframework.org/schema/__osgi>
>                  <http://www.springframework.__org/schema/osgi
>         <http://www.springframework.org/schema/osgi>>"
>
>
>         xmlns:context="http://www.__sp__ringframework.org/schema/____context
>         <http://springframework.org/schema/__context>
>                  <http://www.springframework.__org/schema/context
>         <http://www.springframework.org/schema/context>>"
>
>
>         xsi:schemaLocation="http://__w__ww.osgi.org/xmlns/blueprint/____v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/__v1.0.0>
>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>
>         http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd>
>
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>__>
>         http://www.osgi.org/xmlns/____blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0>
>                  <http://www.osgi.org/xmlns/__blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>>
>         http://www.osgi.org/xmlns/____blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd>
>
>         <http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>__>
>         http://www.springframework.____org/schema/aop
>                  <http://www.springframework.__org/schema/aop
>         <http://www.springframework.org/schema/aop>>
>         http://www.springframework.____org/schema/aop/spring-aop.xsd
>
>         <http://www.springframework.__org/schema/aop/spring-aop.xsd
>         <http://www.springframework.org/schema/aop/spring-aop.xsd>>
>         http://www.springframework.____org/schema/context
>                  <http://www.springframework.__org/schema/context
>         <http://www.springframework.org/schema/context>>
>         http://www.springframework.____org/schema/context/spring-____context.xsd
>
>         <http://www.springframework.__org/schema/context/spring-__context.xsd
>         <http://www.springframework.org/schema/context/spring-context.xsd>>
>         http://www.springframework.____org/schema/osgi
>                  <http://www.springframework.__org/schema/osgi
>         <http://www.springframework.org/schema/osgi>>
>         http://www.springframework.____org/schema/osgi/spring-osgi.____xsd
>
>         <http://www.springframework.__org/schema/osgi/spring-osgi.__xsd
>         <http://www.springframework.org/schema/osgi/spring-osgi.xsd>>
>         http://www.springframework.____org/schema/beans
>                  <http://www.springframework.__org/schema/beans
>         <http://www.springframework.org/schema/beans>>
>         http://www.springframework.____org/schema/beans/spring-beans.____xsd
>
>
>         <http://www.springframework.__org/schema/beans/spring-beans.__xsd <http://www.springframework.org/schema/beans/spring-beans.xsd>>">
>                       ...
>                       </blueprint>
>
>                       I've tried to :
>                       - install feature spring-dm
>                       - add a spring.handlers in my bundle
>                       - use Spring 3.2 or 3.1
>
>                       None of these attempts worked.
>                       Does anyone got this problem and succeeded to fix it ?
>
>                       Thanks in advance
>                       Mat
>
>
>
>
>                  --
>
>                  Apache Karaf <http://karaf.apache.org/> Committer & PMC
>                  OPS4J Pax Web
>         <http://wiki.ops4j.org/____display/paxweb/Pax+Web/
>         <http://wiki.ops4j.org/__display/paxweb/Pax+Web/>
>
>                  <http://wiki.ops4j.org/__display/paxweb/Pax+Web/
>         <http://wiki.ops4j.org/display/paxweb/Pax+Web/>>> Committer
>                  & Project Lead
>                  blog <http://notizblog.nierbeck.de/____
>         <http://notizblog.nierbeck.de/__>>
>
>
>                  Software Architect / Project Manager / Scrum Master
>
>
>              --
>              Jean-Baptiste Onofré
>         jbonofre@apache.org <ma...@apache.org>
>         <mailto:jbonofre@apache.org <ma...@apache.org>>
>
>         http://blog.nanthrax.net
>              Talend - http://www.talend.com
>
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Bundle is waiting for namespace handlers

Posted by Matthieu Vincent <mv...@gmail.com>.
Hi JB

 migrating to spring only, goes further but fails because I use reference
to blueprintBundleContext to set my bundle context on some beans.
Is there any equivalent in spring to retrieve current bundle context ?

Thanks for help
Mat


2014-04-01 14:12 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> Hi Matthieu,
>
> Yes, you can use Spring "only", just by installing the spring feature.
>
> With Spring feature, you can use beans XML in your bundle (in
> META-INF/spring folder), or directly by dropping the beans XML in the
> deploy folder.
>
> Regards
> JB
>
>
> On 04/01/2014 01:57 PM, Matthieu Vincent wrote:
>
>> I've tried to install gemini feature (btw it's gemini-blueprint :) ) and
>> got this error (using Spring 3.2) :
>>
>> Caused by: java.lang.NoSuchFieldError: NULL
>>          at
>> org.eclipse.gemini.blueprint.blueprint.container.
>> SpringBlueprintConverterService.convert(SpringBlueprintConverterServic
>> e.java:93)
>>          at
>> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(
>> TypeConverterDelegate.java:161)
>>          at
>> org.springframework.beans.BeanWrapperImpl.convertIfNecessary(
>> BeanWrapperImpl.java:448)
>>          at
>> org.springframework.beans.BeanWrapperImpl.convertForProperty(
>> BeanWrapperImpl.java:494)
>>          at
>> org.springframework.beans.BeanWrapperImpl.convertForProperty(
>> BeanWrapperImpl.java:488)
>>          at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>> tory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1433)
>>          at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>> tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1392)
>>          at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>> tory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
>>          at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
>> tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>>
>> Maybe I can switch to spring only namespaces ? or inversely may I use
>> only blueprint ?
>>
>> Rgs
>> Mat
>>
>>
>> 2014-04-01 13:40 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>>:
>>
>>
>>     And install the gemini feature (feature:install gemini).
>>
>>     Regards
>>     JB
>>
>>
>>     On 04/01/2014 12:52 PM, Achim Nierbeck wrote:
>>
>>         Looks like you'll need to use the gemini blueprint, cause the
>> defaul
>>         Aries Blueprint doesn't work with mixed blueprint and spring
>>         namespaces.
>>         To have gemini blueprint successfully running in Karaf 3.0
>>         you'll need
>>         to run regions too.
>>
>>         Regards, Achim
>>
>>
>>         2014-04-01 11:31 GMT+02:00 Matthieu Vincent
>>         <mvincent.it@gmail.com <ma...@gmail.com>
>>         <mailto:mvincent.it@gmail.com <ma...@gmail.com>>__>:
>>
>>
>>
>>              Hello
>>
>>                  I'm trying to migrate to Karaf 3.0.0, when I deploy my
>>         bundles I
>>              got the following "error" :
>>
>>              Bundle XXXX is waiting for namespace handlers
>>              [http://www.springframework.__org/schema/context
>>         <http://www.springframework.org/schema/context>,
>>         http://www.springframework.__org/schema/beans
>>         <http://www.springframework.org/schema/beans>,
>>         http://www.springframework.__org/schema/osgi
>>
>>         <http://www.springframework.org/schema/osgi>]
>>
>>              My bundle already imports the spring packages :
>>              Import-Package:
>>              org.springframework.aop,\
>>              org.springframework.aop.__config,\
>>              org.springframework.aop.scope,__\
>>              org.springframework.aop.__framework,\
>>              org.springframework.aop.__aspectj.annotation,\
>>              org.springframework.context.__config,\
>>              org.springframework.beans.__factory.xml,\
>>
>>              *
>>
>>              and my blueprint.xml header looks like this :
>>              <blueprint
>>         xmlns="http://www.osgi.org/__xmlns/blueprint/v1.0.0
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>"
>>              xmlns:xsi="http://www.w3.org/__2001/XMLSchema-instance
>>         <http://www.w3.org/2001/XMLSchema-instance>"
>>              xmlns:aop="http://www.__springframework.org/schema/aop
>>         <http://www.springframework.org/schema/aop>__"
>>              xmlns:bean="http://www.__springframework.org/schema/__beans
>>         <http://www.springframework.org/schema/beans>"
>>              xmlns:osgi="http://www.__springframework.org/schema/__osgi
>>         <http://www.springframework.org/schema/osgi>"
>>
>>         xmlns:context="http://www.__springframework.org/schema/__context
>>         <http://www.springframework.org/schema/context>"
>>
>>         xsi:schemaLocation="http://__www.osgi.org/xmlns/blueprint/__
>> v1.0.0
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>
>>         http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>
>>         http://www.osgi.org/xmlns/__blueprint/v1.0.0
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>
>>         http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>
>>         http://www.springframework.__org/schema/aop
>>         <http://www.springframework.org/schema/aop>
>>         http://www.springframework.__org/schema/aop/spring-aop.xsd
>>         <http://www.springframework.org/schema/aop/spring-aop.xsd>
>>         http://www.springframework.__org/schema/context
>>         <http://www.springframework.org/schema/context>
>>         http://www.springframework.__org/schema/context/spring-__
>> context.xsd
>>         <http://www.springframework.org/schema/context/spring-context.xsd
>> >
>>         http://www.springframework.__org/schema/osgi
>>         <http://www.springframework.org/schema/osgi>
>>         http://www.springframework.__org/schema/osgi/spring-osgi.__xsd
>>         <http://www.springframework.org/schema/osgi/spring-osgi.xsd>
>>         http://www.springframework.__org/schema/beans
>>         <http://www.springframework.org/schema/beans>
>>         http://www.springframework.__org/schema/beans/spring-beans.__xsd
>>
>>         <http://www.springframework.org/schema/beans/spring-beans.xsd>">
>>              ...
>>              </blueprint>
>>
>>              I've tried to :
>>              - install feature spring-dm
>>              - add a spring.handlers in my bundle
>>              - use Spring 3.2 or 3.1
>>
>>              None of these attempts worked.
>>              Does anyone got this problem and succeeded to fix it ?
>>
>>              Thanks in advance
>>              Mat
>>
>>
>>
>>
>>         --
>>
>>         Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>         OPS4J Pax Web <http://wiki.ops4j.org/__display/paxweb/Pax+Web/
>>
>>         <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer
>>         & Project Lead
>>         blog <http://notizblog.nierbeck.de/__>
>>
>>
>>         Software Architect / Project Manager / Scrum Master
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     jbonofre@apache.org <ma...@apache.org>
>>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Bundle is waiting for namespace handlers

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Matthieu,

Yes, you can use Spring "only", just by installing the spring feature.

With Spring feature, you can use beans XML in your bundle (in 
META-INF/spring folder), or directly by dropping the beans XML in the 
deploy folder.

Regards
JB

On 04/01/2014 01:57 PM, Matthieu Vincent wrote:
> I've tried to install gemini feature (btw it's gemini-blueprint :) ) and
> got this error (using Spring 3.2) :
>
> Caused by: java.lang.NoSuchFieldError: NULL
>          at
> org.eclipse.gemini.blueprint.blueprint.container.SpringBlueprintConverterService.convert(SpringBlueprintConverterService.java:93)
>          at
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:161)
>          at
> org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448)
>          at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494)
>          at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488)
>          at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1433)
>          at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1392)
>          at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
>          at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>
> Maybe I can switch to spring only namespaces ? or inversely may I use
> only blueprint ?
>
> Rgs
> Mat
>
>
> 2014-04-01 13:40 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
>     And install the gemini feature (feature:install gemini).
>
>     Regards
>     JB
>
>
>     On 04/01/2014 12:52 PM, Achim Nierbeck wrote:
>
>         Looks like you'll need to use the gemini blueprint, cause the defaul
>         Aries Blueprint doesn't work with mixed blueprint and spring
>         namespaces.
>         To have gemini blueprint successfully running in Karaf 3.0
>         you'll need
>         to run regions too.
>
>         Regards, Achim
>
>
>         2014-04-01 11:31 GMT+02:00 Matthieu Vincent
>         <mvincent.it@gmail.com <ma...@gmail.com>
>         <mailto:mvincent.it@gmail.com <ma...@gmail.com>>__>:
>
>
>              Hello
>
>                  I'm trying to migrate to Karaf 3.0.0, when I deploy my
>         bundles I
>              got the following "error" :
>
>              Bundle XXXX is waiting for namespace handlers
>              [http://www.springframework.__org/schema/context
>         <http://www.springframework.org/schema/context>,
>         http://www.springframework.__org/schema/beans
>         <http://www.springframework.org/schema/beans>,
>         http://www.springframework.__org/schema/osgi
>         <http://www.springframework.org/schema/osgi>]
>
>              My bundle already imports the spring packages :
>              Import-Package:
>              org.springframework.aop,\
>              org.springframework.aop.__config,\
>              org.springframework.aop.scope,__\
>              org.springframework.aop.__framework,\
>              org.springframework.aop.__aspectj.annotation,\
>              org.springframework.context.__config,\
>              org.springframework.beans.__factory.xml,\
>              *
>
>              and my blueprint.xml header looks like this :
>              <blueprint
>         xmlns="http://www.osgi.org/__xmlns/blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>"
>              xmlns:xsi="http://www.w3.org/__2001/XMLSchema-instance
>         <http://www.w3.org/2001/XMLSchema-instance>"
>              xmlns:aop="http://www.__springframework.org/schema/aop
>         <http://www.springframework.org/schema/aop>__"
>              xmlns:bean="http://www.__springframework.org/schema/__beans
>         <http://www.springframework.org/schema/beans>"
>              xmlns:osgi="http://www.__springframework.org/schema/__osgi
>         <http://www.springframework.org/schema/osgi>"
>
>         xmlns:context="http://www.__springframework.org/schema/__context
>         <http://www.springframework.org/schema/context>"
>
>         xsi:schemaLocation="http://__www.osgi.org/xmlns/blueprint/__v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>
>         http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>
>         http://www.osgi.org/xmlns/__blueprint/v1.0.0
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0>
>         http://www.osgi.org/xmlns/__blueprint/v1.0.0/blueprint.xsd
>         <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd>
>         http://www.springframework.__org/schema/aop
>         <http://www.springframework.org/schema/aop>
>         http://www.springframework.__org/schema/aop/spring-aop.xsd
>         <http://www.springframework.org/schema/aop/spring-aop.xsd>
>         http://www.springframework.__org/schema/context
>         <http://www.springframework.org/schema/context>
>         http://www.springframework.__org/schema/context/spring-__context.xsd
>         <http://www.springframework.org/schema/context/spring-context.xsd>
>         http://www.springframework.__org/schema/osgi
>         <http://www.springframework.org/schema/osgi>
>         http://www.springframework.__org/schema/osgi/spring-osgi.__xsd
>         <http://www.springframework.org/schema/osgi/spring-osgi.xsd>
>         http://www.springframework.__org/schema/beans
>         <http://www.springframework.org/schema/beans>
>         http://www.springframework.__org/schema/beans/spring-beans.__xsd
>         <http://www.springframework.org/schema/beans/spring-beans.xsd>">
>              ...
>              </blueprint>
>
>              I've tried to :
>              - install feature spring-dm
>              - add a spring.handlers in my bundle
>              - use Spring 3.2 or 3.1
>
>              None of these attempts worked.
>              Does anyone got this problem and succeeded to fix it ?
>
>              Thanks in advance
>              Mat
>
>
>
>
>         --
>
>         Apache Karaf <http://karaf.apache.org/> Committer & PMC
>         OPS4J Pax Web <http://wiki.ops4j.org/__display/paxweb/Pax+Web/
>         <http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer
>         & Project Lead
>         blog <http://notizblog.nierbeck.de/__>
>
>         Software Architect / Project Manager / Scrum Master
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <ma...@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Bundle is waiting for namespace handlers

Posted by Matthieu Vincent <mv...@gmail.com>.
I've tried to install gemini feature (btw it's gemini-blueprint :) ) and
got this error (using Spring 3.2) :

Caused by: java.lang.NoSuchFieldError: NULL
        at
org.eclipse.gemini.blueprint.blueprint.container.SpringBlueprintConverterService.convert(SpringBlueprintConverterService.java:93)
        at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:161)
        at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448)
        at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494)
        at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1433)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1392)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

Maybe I can switch to spring only namespaces ? or inversely may I use only
blueprint ?

Rgs
Mat


2014-04-01 13:40 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> And install the gemini feature (feature:install gemini).
>
> Regards
> JB
>
>
> On 04/01/2014 12:52 PM, Achim Nierbeck wrote:
>
>> Looks like you'll need to use the gemini blueprint, cause the defaul
>> Aries Blueprint doesn't work with mixed blueprint and spring namespaces.
>> To have gemini blueprint successfully running in Karaf 3.0 you'll need
>> to run regions too.
>>
>> Regards, Achim
>>
>>
>> 2014-04-01 11:31 GMT+02:00 Matthieu Vincent <mvincent.it@gmail.com
>> <ma...@gmail.com>>:
>>
>>
>>     Hello
>>
>>         I'm trying to migrate to Karaf 3.0.0, when I deploy my bundles I
>>     got the following "error" :
>>
>>     Bundle XXXX is waiting for namespace handlers
>>     [http://www.springframework.org/schema/context,
>>     http://www.springframework.org/schema/beans,
>>     http://www.springframework.org/schema/osgi]
>>
>>     My bundle already imports the spring packages :
>>     Import-Package:
>>     org.springframework.aop,\
>>     org.springframework.aop.config,\
>>     org.springframework.aop.scope,\
>>     org.springframework.aop.framework,\
>>     org.springframework.aop.aspectj.annotation,\
>>     org.springframework.context.config,\
>>     org.springframework.beans.factory.xml,\
>>     *
>>
>>     and my blueprint.xml header looks like this :
>>     <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>     xmlns:aop="http://www.springframework.org/schema/aop"
>>     xmlns:bean="http://www.springframework.org/schema/beans"
>>     xmlns:osgi="http://www.springframework.org/schema/osgi"
>>     xmlns:context="http://www.springframework.org/schema/context"
>>     xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
>>     http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>>     http://www.osgi.org/xmlns/blueprint/v1.0.0
>>     http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>>     http://www.springframework.org/schema/aop
>>     http://www.springframework.org/schema/aop/spring-aop.xsd
>>     http://www.springframework.org/schema/context
>>     http://www.springframework.org/schema/context/spring-context.xsd
>>     http://www.springframework.org/schema/osgi
>>     http://www.springframework.org/schema/osgi/spring-osgi.xsd
>>     http://www.springframework.org/schema/beans
>>     http://www.springframework.org/schema/beans/spring-beans.xsd">
>>     ...
>>     </blueprint>
>>
>>     I've tried to :
>>     - install feature spring-dm
>>     - add a spring.handlers in my bundle
>>     - use Spring 3.2 or 3.1
>>
>>     None of these attempts worked.
>>     Does anyone got this problem and succeeded to fix it ?
>>
>>     Thanks in advance
>>     Mat
>>
>>
>>
>>
>> --
>>
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: Bundle is waiting for namespace handlers

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
And install the gemini feature (feature:install gemini).

Regards
JB

On 04/01/2014 12:52 PM, Achim Nierbeck wrote:
> Looks like you'll need to use the gemini blueprint, cause the defaul
> Aries Blueprint doesn't work with mixed blueprint and spring namespaces.
> To have gemini blueprint successfully running in Karaf 3.0 you'll need
> to run regions too.
>
> Regards, Achim
>
>
> 2014-04-01 11:31 GMT+02:00 Matthieu Vincent <mvincent.it@gmail.com
> <ma...@gmail.com>>:
>
>     Hello
>
>         I'm trying to migrate to Karaf 3.0.0, when I deploy my bundles I
>     got the following "error" :
>
>     Bundle XXXX is waiting for namespace handlers
>     [http://www.springframework.org/schema/context,
>     http://www.springframework.org/schema/beans,
>     http://www.springframework.org/schema/osgi]
>
>     My bundle already imports the spring packages :
>     Import-Package:
>     org.springframework.aop,\
>     org.springframework.aop.config,\
>     org.springframework.aop.scope,\
>     org.springframework.aop.framework,\
>     org.springframework.aop.aspectj.annotation,\
>     org.springframework.context.config,\
>     org.springframework.beans.factory.xml,\
>     *
>
>     and my blueprint.xml header looks like this :
>     <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns:aop="http://www.springframework.org/schema/aop"
>     xmlns:bean="http://www.springframework.org/schema/beans"
>     xmlns:osgi="http://www.springframework.org/schema/osgi"
>     xmlns:context="http://www.springframework.org/schema/context"
>     xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
>     http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>     http://www.osgi.org/xmlns/blueprint/v1.0.0
>     http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>     http://www.springframework.org/schema/aop
>     http://www.springframework.org/schema/aop/spring-aop.xsd
>     http://www.springframework.org/schema/context
>     http://www.springframework.org/schema/context/spring-context.xsd
>     http://www.springframework.org/schema/osgi
>     http://www.springframework.org/schema/osgi/spring-osgi.xsd
>     http://www.springframework.org/schema/beans
>     http://www.springframework.org/schema/beans/spring-beans.xsd">
>     ...
>     </blueprint>
>
>     I've tried to :
>     - install feature spring-dm
>     - add a spring.handlers in my bundle
>     - use Spring 3.2 or 3.1
>
>     None of these attempts worked.
>     Does anyone got this problem and succeeded to fix it ?
>
>     Thanks in advance
>     Mat
>
>
>
>
> --
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Bundle is waiting for namespace handlers

Posted by Achim Nierbeck <bc...@googlemail.com>.
Looks like you'll need to use the gemini blueprint, cause the defaul Aries
Blueprint doesn't work with mixed blueprint and spring namespaces.
To have gemini blueprint successfully running in Karaf 3.0 you'll need to
run regions too.

Regards, Achim


2014-04-01 11:31 GMT+02:00 Matthieu Vincent <mv...@gmail.com>:

> Hello
>
>    I'm trying to migrate to Karaf 3.0.0, when I deploy my bundles I got
> the following "error" :
>
> Bundle XXXX is waiting for namespace handlers [
> http://www.springframework.org/schema/context,
> http://www.springframework.org/schema/beans,
> http://www.springframework.org/schema/osgi]
>
> My bundle already imports the spring packages :
> Import-Package:
> org.springframework.aop,\
> org.springframework.aop.config,\
>  org.springframework.aop.scope,\
> org.springframework.aop.framework,\
> org.springframework.aop.aspectj.annotation,\
>  org.springframework.context.config,\
> org.springframework.beans.factory.xml,\
> *
>
> and my blueprint.xml header looks like this :
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="
> http://www.springframework.org/schema/aop"
>  xmlns:bean="http://www.springframework.org/schema/beans" xmlns:osgi="
> http://www.springframework.org/schema/osgi"
>  xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>  http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>  http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop.xsd
>  http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context.xsd
>  http://www.springframework.org/schema/osgi
> http://www.springframework.org/schema/osgi/spring-osgi.xsd
>  http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd">
> ...
> </blueprint>
>
> I've tried to :
> - install feature spring-dm
> - add a spring.handlers in my bundle
> - use Spring 3.2 or 3.1
>
> None of these attempts worked.
> Does anyone got this problem and succeeded to fix it ?
>
> Thanks in advance
> Mat
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master