1 Reply Latest reply on Jun 6, 2009 1:52 PM by Rob Weingruber

    bundle-context.xml ignored

    Rob Weingruber Newbie

      Hi There -

       

      I am using Fuse ESB 4.1.0.0, trying to package up/expose my CXF services into an OSGI bundle. For some reason, my Spring beans are not being created and the META-INF/bundle-context.xml is being ignored completely.

      My BundleActivator is notified, but the bundle remains 'Active' and not started.

       

      Any ideas come to mind (before I send the whole project)?  What am I missing? Seemingly no error/log messages are produced...

       

      Except for this exception thrown on servicemix start up. Dunno if this has anything to do with it:

       

      smx@root:log> display-exception

      java.lang.NullPointerException

              at org.apache.servicemix.kernel.gshell.features.management.ManagedFeaturesRegistry.register(ManagedFeaturesRegistry.java:154)

              at org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:132)

              at org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.start(FeaturesServiceImpl.java:392)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

              at java.security.AccessController.doPrivileged(Native Method)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

      .......

       

      thanks in advance

       

      Edited by: weingrub on May 29, 2009 3:33 PM