James,

Personally, I would recommend you to just add the offending features to the
boot features list instead - this may not even have to be your own
application, e.g. if your application uses Camel JPA, it is usually enough
to just add that component to the boot features list to avoid the problem.

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/


On Wed, May 2, 2012 at 2:10 PM, James Carman <[email protected]>wrote:

> Is Equinox what folks suggest in general?  We're going to be running this
> in a production environment, so if I'm going to switch it, I need to have
> good reason to do so and it would be quite an undertaking to "undo" what
> I've done. :)
>
>
> On Wed, May 2, 2012 at 8:05 AM, Gert Vanthienen
> <[email protected]>wrote:
>
> > James,
> >
> > This happens in ServiceMix 4.4.x when a feature installs a bundle that
> > triggers a refresh of the basic spring bundle (spring-core,
> > spring-beans,...) - typical examples that cause this are things like JPA.
> >  There are two known workaround for this problem:
> > - switch to equinox instead of felix - for this use case, equinox seems
> to
> > handle the bundle refresh better than Felix 3.x does, this problem is
> > solved in Felix 4.x so future versions of ServiceMix will use that
> instead
> > - add the features that trigger the refresh to the bootFeatures list:
> that
> > way, all bundles will get installed and resolved together at startup and
> > the additional refresh is no longer required
> >
> > Regards,
> >
> > Gert Vanthienen
> > ------------------------
> > FuseSource
> > Web: http://fusesource.com
> > Blog: http://gertvanthienen.blogspot.com/
> >
> >
> > On Wed, May 2, 2012 at 1:42 PM, James Carman <[email protected]
> > >wrote:
> >
> > > I've created my own feature.xml file that I'm trying to use to install
> > > everything we need for our application.  Simple enough, right? :)
>  That's
> > > what I thought.  However, when I use the features:install (after
> > > features:addurl to add it), it appears to have found all of my
> artifacts
> > > successfully.  Then, it starts down this path and the entire thing is
> > just
> > > hung up...
> > >
> > > 07:37:11,632 | INFO  | l Console Thread | FeaturesServiceImpl
> > > | 41 - org.apache.karaf.features.core - 2.2.2.fuse-04-06 | Bundles to
> > > refresh: org.springframework.beans (73),
> > > org.springframework.context (75), org.springframework.aop (79)
> > > 07:37:11,632 | INFO  | l Console Thread | FeaturesServiceImpl
> > > | 41 - org.apache.karaf.features.core - 2.2.2.fuse-04-06 | Refreshing
> > > bundles: org.springframework.beans (73),
> > > org.springframework.context (75), org.springframework.aop (79)
> > > 07:37:11,642 | INFO  | elixPackageAdmin | ComponentRegistryImpl
> > > | 147 - org.apache.servicemix.jbi.runtime - 1.5.1.fuse-03-06 | JBI
> > > component unregistered with properties: {NAM
> > > E=servicemix-scripting, objectClass=[Ljava.lang.String;@1e412161,
> > > service.id=432,
> > > TYPE=service-engine}
> > > 07:37:11,645 | INFO  | elixPackageAdmin | ManagementEndpointRegistry
> > > | 101 - org.apache.servicemix.nmr.management - 1.5.1.fuse-03-06 |
> > > Unregistering endpoint: org.apache.servicemix
> > > .nmr.core.InternalEndpointWrapper@253e2a4c with properties
> > > {NAME=servicemix-scripting, objectClass=[Ljava.lang.String;@fefb1c0,
> > > service.id=433, TYPE=service-engine}
> > > 07:37:11,650 | INFO  | elixPackageAdmin | ComponentImpl
> > > | 149 - org.apache.servicemix.jbi.deployer - 1.5.1.fuse-03-06 |
> Stopping
> > > component servicemix-scripting
> > > 07:37:11,653 | INFO  | elixPackageAdmin | ComponentImpl
> > > | 149 - org.apache.servicemix.jbi.deployer - 1.5.1.fuse-03-06 |
> Shutting
> > > down component servicemix-scripting
> > > 07:37:11,664 | INFO  | Timer-1          |
> OsgiBundleXmlApplicationContext
> > > | 75 - org.springframework.context - 3.0.5.RELEASE | Unpublishing
> > > application context OSGi service for bundle A
> > > pache CXF Bundle Jar (org.apache.cxf.bundle)
> > > 07:37:11,665 | INFO  | Timer-1          |
> OsgiBundleXmlApplicationContext
> > > | 75 - org.springframework.context - 3.0.5.RELEASE | Closing
> > > OsgiBundleXmlApplicationContext(bundle=org.apache.
> > > cxf.bundle, config=osgibundle:/META-INF/spring/*.xml): startup date
> [Wed
> > > May 02 07:35:54 EDT 2012]; root of context hierarchy
> > > 07:37:11,665 | INFO  | Timer-1          | DefaultListableBeanFactory
> > > | 73 - org.springframework.beans - 3.0.5.RELEASE | Destroying
> singletons
> > in
> > > org.springframework.beans.factory.s
> > > upport.DefaultListableBeanFactory@60204d14: defining beans
> > >
> > >
> >
> [cxfOsgiProperties,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,destinationRegistry,osgiServlet,org
> > >
> > >
> >
> .springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#1];
> > > root of factory hierarchy
> > > 07:37:11,666 | INFO  | Timer-1          | OsgiServiceFactoryBean
> > > | 81 - org.springframework.osgi.core - 1.2.1 | Unregistered service
> > > [ServiceRegistrationWrapper for org.apache.
> > > felix.framework.ServiceRegistrationImpl@22ae2593]
> > > 07:37:11,668 | INFO  | Timer-1          | OsgiServiceFactoryBean
> > > | 81 - org.springframework.osgi.core - 1.2.1 | Unregistered service
> > > [ServiceRegistrationWrapper for org.apache.
> > > felix.framework.ServiceRegistrationImpl@529bc5b]
> > > 07:37:11,668 | INFO  | Timer-1          | ContextLoaderListener
> > > | 84 - org.springframework.osgi.extender - 1.2.1 | Application context
> > > succesfully closed (OsgiBundleXmlApplica
> > > tionContext(bundle=org.apache.cxf.bundle,
> > > config=osgibundle:/META-INF/spring/*.xml))
> > > 07:37:11,685 | INFO  | elixPackageAdmin | OSGiExtensionLocator
> > > |  -  -  | Removed the extensions for bundle 142
> > > 07:37:11,686 | INFO  | elixPackageAdmin | OSGiExtensionLocator
> > > |  -  -  | Removed the extensions for bundle 189
> > > 07:37:11,686 | INFO  | elixPackageAdmin | OSGiExtensionLocator
> > > |  -  -  | Removed the extensions for bundle 188
> > > 07:37:11,690 | INFO  | elixPackageAdmin | HttpServiceFactoryImpl
> > > | 158 - org.ops4j.pax.web.pax-web-runtime - 1.0.3 | Unbinding bundle:
> > > [org.apache.cxf.bundle [132]]
> > > 07:37:11,693 | INFO  | elixPackageAdmin | JettyServerWrapper
> > > | 160 - org.ops4j.pax.web.pax-web-jetty - 1.0.3 | ServletContext
> service
> > > already removed
> > > 07:37:11,694 | INFO  | elixPackageAdmin | log
> > > | 116 - org.eclipse.jetty.util - 7.4.5.fuse20111017 | stopped
> > > HttpServiceContext{httpContext=DefaultHttpContext
> > > {bundle=org.apache.cxf.bundle [132]}}
> > > 07:37:11,729 | INFO  | elixPackageAdmin | ComponentImpl
> > > | 149 - org.apache.servicemix.jbi.deployer - 1.5.1.fuse-03-06 |
> Stopping
> > > component servicemix-cxf-se
> > > 07:37:11,731 | INFO  | elixPackageAdmin | ComponentImpl
> > > | 149 - org.apache.servicemix.jbi.deployer - 1.5.1.fuse-03-06 |
> Shutting
> > > down component servicemix-cxf-se
> > > 07:37:11,739 | INFO  | elixPackageAdmin | OsgiServiceFactoryBean
> > > | 81 - org.springframework.osgi.core - 1.2.1 | Unregistered service
> > > [ServiceRegistrationWrapper for org.apache.
> > > felix.framework.ServiceRegistrationImpl@502438db]
> > >
> >
>

Reply via email to