Loaded/Resolved/Installed/Started etc, are more of osgi lifecycle than "karaf" 
pertaining.
In the end of the day, they are loaded into felix/equinox.

This whole discussion is also dependent on how you actually load classes, if 
you use spring and so on.
Something like slf4j's logback will pick up fragments after the host was loaded 
if you want, they actively 
check the classpath for changes.

http://gnodet.blogspot.com/2010/03/spring-dm-aries-blueprint-and-custom.html




On May 11, 2011, at 10:44 AM, Bengt Rodehav wrote:

> OK guys - so what is the collective wisdom here?
> 
> Seems like the fragment must be "loaded" before the host otherwise the host 
> must be refreshed after the fragment is loaded. Is that correct? That theory 
> supports my findings.
> 
> Then there is a question about what "loaded" really means. I have a feeling  
> that the important thing is that the host is not resolved before the fragment 
> is "available". Don't know what "available" means here but I gues "installed" 
> should do it - right?
> 
> The resolving process in Karaf is a bit of a mystery to me. It seems I can 
> install/start bundles in at least three ways in Karaf: startup.properties, 
> drop in deploy folder and using Karaf features. Then what bundles are 
> "available" when bundles in startup.properties are resolved? What bundles are 
> "available" when bundles in the deploy folder are resolved? What bundles are 
> "available" when bundles in Karaf features are resolved?
> 
> I would really appreciate if someone could explain this because I think it's 
> critical to know how this works when using Karaf.
> 
> Like I wrote in a previous post (same conversation I think), ideally Karaf 
> would install all bundles (from startup.properties, deploy folder, features) 
> before any of them were resolved. Then we wouldn't have this problem at all 
> (or am I fooling myself here?).
> 
> /Bengt
> 
> 
> 
> 2011/5/11 mikevan <[email protected]>
> 
> 
> Confirmed.  I use an antlr-hibernate fragment to allow Hibernate to play well 
> with mysql, and I always load the fragment first.  No real reason why, that's 
> just how I roll, yo. :-)
> 
> 
> 
> Mike Van
> 
> 
> ----- Original Message -----
> From: "Johan Edstrom-2 [via Karaf]" 
> <[email protected]>
> To: "mikevan" <[email protected]>
> Sent: Wednesday, May 11, 2011 11:54:03 AM
> Subject: Re: Hibernate in Karaf
> 
> You can load fragements after the host.
> 
> On May 11, 2011, at 9:34 AM, Achim Nierbeck wrote:
> 
> 
> > Ah, you're right forgot about the startlevel has no impact on
> > fragments since those are not start-able.
> > Never the less you need to make sure it is "loaded" before the host
> > bundle is started because to my
> > understanding the host-bundle takes care about attaching the fragment
> > to it, uncertain about this
> > but this is what I have seen so far.
> >
> > 2011/5/11 Bengt Rodehav < [hidden email] >:
> >> That was my understanding too. Can you elaborate? Is there an easy way to
> >> accomplish what I want?
> >>
> >> /Bengt
> >>
> >> Den 11 maj 2011 17.22 skrev "Charles Moulliard" < [hidden email] >:
> >>> start level is not relevant
> >>>
> >>>
> >>> On Wed, May 11, 2011 at 5:13 PM, Bengt Rodehav < [hidden email] > wrote:
> >>>> Achim,
> >>>> I tried giving the fragment start level 40 which I think is lower than
> >>>> the
> >>>> default for features but it doesn't help. Are you sure that the start
> >>>> level
> >>>> is relevant?
> >>>> /Bengt
> >>>>
> >>>> 2011/5/11 Bengt Rodehav < [hidden email] >
> >>>>>
> >>>>> Thanks a lot Achim - I'll give it a try.
> >>>>> I though start levels didn't matter. I had a feeling that it was the
> >>>>> resolving phase that was important...
> >>>>> /Bengt
> >>>>>
> >>>>> 2011/5/11 Achim Nierbeck < [hidden email] >
> >>>>>>
> >>>>>> Ok,
> >>>>>>
> >>>>>> another race here :-)
> >>>>>> for a fragment to be found by the hostbundle it needs to be available
> >>>>>> before the host is started. That's the only downside that just came to
> >>>>>> my mind.
> >>>>>> So to fix this in your fragment you need to make sure it has a
> >>>>>> slightly lower startlevel then your spring-orm bundle. For example set
> >>>>>> the startlevel of your
> >>>>>> fragment to 50 and the one of the spring-orm bundle to 51, that should
> >>>>>> pretty much solve it :-)
> >>>>>>
> >>>>>> Regards, Achim
> >>>>>>
> >>>>>> 2011/5/11 Bengt Rodehav < [hidden email] >:
> >>>>>>> Achim,
> >>>>>>> It turns out I need your trick anyway. I depend on spring-aop finding
> >>>>>>> aspectj stuff. I therefore created a fragment using your trick. It
> >>>>>>> works.
> >>>>>>> However, presently I hot deploy it in the deploy directory (seems to
> >>>>>>> be
> >>>>>>> resolved before the features if I do it that way...). But I would
> >>>>>>> like
> >>>>>>> to
> >>>>>>> deploy it using Karaf features like this:
> >>>>>>>>
> >>>>>>>>   <feature name="trs-persistence" version="${project.version}">
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> <bundle>mvn:se.digia.trs.persistence/spring-aop-fragment/${project.version}</bundle>
> >>>>>>>>     <feature version="${project.version}">trs-hibernate</feature>
> >>>>>>>>     <feature version="${project.version}">trs-util</feature>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> <bundle>wrap:mvn:sqlserver-2005/jdbc-driver/${sqlserver-2005-jdbc-version}</bundle>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> <bundle>mvn:commons-pool/commons-pool/${commons-pool-version}</bundle>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> <bundle>mvn:commons-dbcp/commons-dbcp/${commons-dbcp-version}</bundle>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> <bundle>mvn:org.springframework/spring-aop/${spring-version}</bundle>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> <bundle>mvn:org.springframework/spring-jdbc/${spring-version}</bundle>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> <bundle>mvn:org.springframework/spring-orm/${spring-version}</bundle>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> <bundle>mvn:org.springframework/spring-transaction/${spring-version}</bundle>
> >>>>>>>>     <bundle>mvn:joda-time/joda-time/${joda-time-version}</bundle>
> >>>>>>>>
> >>>>>>>> <bundle>mvn:se.digia.trs.persistence/tra/${project.version}</bundle>
> >>>>>>>>   </feature>
> >>>>>>>
> >>>>>>> The above doesn't work. It seems it is too late to deploy the
> >>>>>>> fragment
> >>>>>>> (spring-aop-fragment) here. Can you (or someone else) describe why
> >>>>>>> this
> >>>>>>> doesn't work and perhaps think of a way to make it work?
> >>>>>>> /Bengt
> >>>>>>>
> >>>>>>> 2011/5/10 Bengt Rodehav < [hidden email] >
> >>>>>>>>
> >>>>>>>> Thanks everyone for your help!
> >>>>>>>> When looking at Charles tutorial I noticed that he dynamically
> >>>>>>>> imported
> >>>>>>>> all packages (*). When I did the same it worked for me as well -
> >>>>>>>> even
> >>>>>>>> without the fragment (nice trick though Achim - will remember that
> >>>>>>>> for
> >>>>>>>> the
> >>>>>>>> future).
> >>>>>>>> However, I agree with you Johan that one is a lot better off with
> >>>>>>>> OpenJPA
> >>>>>>>> + Aries. I use that combination too when I have an option. In this
> >>>>>>>> case the
> >>>>>>>> timeframe of the project does not allow me to convert the legacy
> >>>>>>>> Hibernate
> >>>>>>>> application. I will do that in the future though.
> >>>>>>>> /Bengt
> >>>>>>>>
> >>>>>>>> 2011/5/10 mikevan < [hidden email] >
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Bengt, et alia,
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> I wrote a blog about a while ago on how to use hibernate with
> >>>>>>>>> Karaf.
> >>>>>>>>> Feel
> >>>>>>>>> free to peruse it:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> http://weblogs.java.net/blog/fossesi/archive/2010/09/16/deploy-hibernate-osgi-using-featuresxml-file
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> v/r,
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> mike Van
> >>>>>>>>> ----- Original Message -----
> >>>>>>>>> From: "Charles Moulliard [via Karaf]"
> >>>>>>>>> < [hidden email] >
> >>>>>>>>> To: "mikevan" < [hidden email] >
> >>>>>>>>> Sent: Tuesday, May 10, 2011 9:39:38 AM
> >>>>>>>>> Subject: Re: Hibernate in Karaf
> >>>>>>>>>
> >>>>>>>>> For those interested, I have created a tutorial 2 years ago -->
> >>>>>>>>> http://camel.apache.org/tutorial-osgi-camel-part2.html
> >>>>>>>>>
> >>>>>>>>> Remarks :
> >>>>>>>>>
> >>>>>>>>> - It is based on ServiceMix but could be adapted easily adapted for
> >>>>>>>>> its little brother Karaf,
> >>>>>>>>> - Next month, I will present two FuseSource webinars about
> >>>>>>>>> persistence
> >>>>>>>>> and camel (part 1 will cover camel and components while the second
> >>>>>>>>> part will focus on JPA, JTA using OpenJPA on ServiceMix)
> >>>>>>>>>
> >>>>>>>>> 2011/5/10 Michael Täschner < [hidden email] >:
> >>>>>>>>>
> >>>>>>>>>> Hi Bengt,
> >>>>>>>>>>
> >>>>>>>>>> I have been following this discussion very closely and would be
> >>>>>>>>>> very
> >>>>>>>>>> interested if you can integrate Achims suggestions. If this
> >>>>>>>>>> works,
> >>>>>>>>>> can
> >>>>>>>>>> you
> >>>>>>>>>> provide a short guide for using Hibernate in Karaf ?
> >>>>>>>>>>
> >>>>>>>>>> Thanks and Regards,
> >>>>>>>>>> Michael
> >>>>>>>>>>
> >>>>>>>>>> 2011/5/10 Bengt Rodehav < [hidden email] >
> >>>>>>>>>>>
> >>>>>>>>>>> Thanks Achim - I'll give it a try,
> >>>>>>>>>>> /Bengt
> >>>>>>>>>>>
> >>>>>>>>>>> 2011/5/10 Achim Nierbeck < [hidden email] >
> >>>>>>>>>>>>
> >>>>>>>>>>>> Bengt,
> >>>>>>>>>>>>
> >>>>>>>>>>>> sorry I don't have one around but it's quite simple.
> >>>>>>>>>>>>
> >>>>>>>>>>>> do a headers command on the spring-orm  bundle
> >>>>>>>>>>>> copy the imports for hibernate.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Now create a simple project where you create a manifest, in
> >>>>>>>>>>>> that
> >>>>>>>>>>>> manifest you declare
> >>>>>>>>>>>> imports-package: with the imports you just have copied from the
> >>>>>>>>>>>> headers command. Remove the optional part
> >>>>>>>>>>>> add a
> >>>>>>>>>>>> fragment-host: com.springsource.orm (the bundle id of the
> >>>>>>>>>>>> spring-orm
> >>>>>>>>>>>> jar)
> >>>>>>>>>>>>
> >>>>>>>>>>>> and that's it :-)
> >>>>>>>>>>>>
> >>>>>>>>>>>> regards, Achim
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> 2011/5/10 Bengt Rodehav < [hidden email] >:
> >>>>>>>>>>>>> Achim and Charles,
> >>>>>>>>>>>>> I also normally use OpenJPA but I'm trying to migrate an
> >>>>>>>>>>>>> existing
> >>>>>>>>>>>>> application (running on ServiceMix 3.X using JBI +
> >>>>>>>>>>>>> Spring/Hibernate) to
> >>>>>>>>>>>>> Apache Karaf + Camel. Long term I'd like to get rid of
> >>>>>>>>>>>>> Hibernate
> >>>>>>>>>>>>> but
> >>>>>>>>>>>>> it's
> >>>>>>>>>>>>> not possible to do it in the short timeframe that I have.
> >>>>>>>>>>>>> Achim, can you send me examples of how you create a fragment
> >>>>>>>>>>>>> bundle
> >>>>>>>>>>>>> to
> >>>>>>>>>>>>> change optional imports to mandatory? I've never done that
> >>>>>>>>>>>>> before.
> >>>>>>>>>>>>> /Bengt
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> 2011/5/10 Achim Nierbeck < [hidden email] >
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Bengt,
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> yes those Spring bundles do all kinds of optional imports,
> >>>>>>>>>>>>>> that's
> >>>>>>>>>>>>>> why
> >>>>>>>>>>>>>> you sometimes end up in this
> >>>>>>>>>>>>>> inconvenient position where you think you have all that
> >>>>>>>>>>>>>> needs
> >>>>>>>>>>>>>> to
> >>>>>>>>>>>>>> be
> >>>>>>>>>>>>>> provided available but still since
> >>>>>>>>>>>>>> one of those bundles is already resolved nothing works.
> >>>>>>>>>>>>>> That's why I made those extra fragments to switch optional
> >>>>>>>>>>>>>> imports
> >>>>>>>>>>>>>> into required ones.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> For investigation I recommend using package:imports/exports
> >>>>>>>>>>>>>> and
> >>>>>>>>>>>>>> headers on the Karaf shell for getting detailed
> >>>>>>>>>>>>>> informations.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> regards, Achim
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> 2011/5/10 Bengt Rodehav < [hidden email] >:
> >>>>>>>>>>>>>>> Thanks for your reply Charles,
> >>>>>>>>>>>>>>> Yes, the direct cause is the exception you specify.
> >>>>>>>>>>>>>>> However,
> >>>>>>>>>>>>>>> everything
> >>>>>>>>>>>>>>> works fine if I include spring-orm as a private package.
> >>>>>>>>>>>>>>> Thus,
> >>>>>>>>>>>>>>> there
> >>>>>>>>>>>>>>> is
> >>>>>>>>>>>>>>> nothing wrong with my spring context definition file per
> >>>>>>>>>>>>>>> se.
> >>>>>>>>>>>>>>> I'm
> >>>>>>>>>>>>>>> sure
> >>>>>>>>>>>>>>> the
> >>>>>>>>>>>>>>> problem has to do with classloading/bundle resolving
> >>>>>>>>>>>>>>> stuff.
> >>>>>>>>>>>>>>> Perhaps it's because spring-aop is already installed?
> >>>>>>>>>>>>>>> Maybe
> >>>>>>>>>>>>>>> it's
> >>>>>>>>>>>>>>> not
> >>>>>>>>>>>>>>> enough
> >>>>>>>>>>>>>>> delaying the resolving of spring-orm, perhaps spring-aop
> >>>>>>>>>>>>>>> must
> >>>>>>>>>>>>>>> also
> >>>>>>>>>>>>>>> resolve
> >>>>>>>>>>>>>>> after my classes are installed?
> >>>>>>>>>>>>>>> I'm using spring-aop to define transaction attributes for
> >>>>>>>>>>>>>>> my
> >>>>>>>>>>>>>>> spring
> >>>>>>>>>>>>>>> beans.
> >>>>>>>>>>>>>>> /Bengt
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> 2011/5/10 Charles Moulliard < [hidden email] >
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Hi Bengt,
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Your problem is linked to this error (from your
> >>>>>>>>>>>>>>>> stacktrace)
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Caused by: java.lang.IllegalStateException: Expecting raw
> >>>>>>>>>>>>>>>> type,
> >>>>>>>>>>>>>>>> not:
> >>>>>>>>>>>>>>>> org.springframework.beans.factory.FactoryBean
> >>>>>>>>>>>>>>>>        at
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> org.aspectj.weaver.TypeFactory.createParameterizedType(TypeFactory.java:37)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Regards,
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Charles Moulliard
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Sr. Principal Solution Architect - FuseSource
> >>>>>>>>>>>>>>>> Apache Committer
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Blog : http://cmoulliard.blogspot.com
> >>>>>>>>>>>>>>>> Twitter : http://twitter.com/cmoulliard
> >>>>>>>>>>>>>>>> Linkedin : http://www.linkedin.com/in/charlesmoulliard
> >>>>>>>>>>>>>>>> Skype: cmoulliard
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> On Tue, May 10, 2011 at 12:16 PM, Bengt Rodehav < [hidden
> >>>>>>>>>>>>>>>> email] >
> >>>>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>> Achim,
> >>>>>>>>>>>>>>>>> You're right that the problem concerns spring-orm. If I
> >>>>>>>>>>>>>>>>> specify
> >>>>>>>>>>>>>>>>> org.springframework.orm* as a private package (so that
> >>>>>>>>>>>>>>>>> it
> >>>>>>>>>>>>>>>>> is
> >>>>>>>>>>>>>>>>> included
> >>>>>>>>>>>>>>>>> in
> >>>>>>>>>>>>>>>>> my
> >>>>>>>>>>>>>>>>> bundle) and I also specify the following dynamic
> >>>>>>>>>>>>>>>>> imports:
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.aop,org.springframework.aop.*,org.aopalliance.aop,org.hibernate.*,net.sf.cglib.*
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> ...then it works. But I can't seem to find a way to use
> >>>>>>>>>>>>>>>>> an
> >>>>>>>>>>>>>>>>> already
> >>>>>>>>>>>>>>>>> installed
> >>>>>>>>>>>>>>>>> spring-orm bundle. So, it sounds like the problem you
> >>>>>>>>>>>>>>>>> describe
> >>>>>>>>>>>>>>>>> but in
> >>>>>>>>>>>>>>>>> my
> >>>>>>>>>>>>>>>>> case spring-orm is not installed until I install it as
> >>>>>>>>>>>>>>>>> part
> >>>>>>>>>>>>>>>>> of my
> >>>>>>>>>>>>>>>>> feature,
> >>>>>>>>>>>>>>>>> as follows:
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> ...
> >>>>>>>>>>>>>>>>>>   <feature name="trs-persistence"
> >>>>>>>>>>>>>>>>>> version="${project.version}">
> >>>>>>>>>>>>>>>>>>     <feature
> >>>>>>>>>>>>>>>>>> version="${project.version}">trs-util</feature>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> <bundle>mvn:org.springframework/spring-aop/${spring-version}</bundle>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> <bundle>mvn:org.springframework/spring-jdbc/${spring-version}</bundle>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> <bundle>mvn:org.springframework/spring-orm/${spring-version}</bundle>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> <bundle>mvn:org.springframework/spring-transaction/${spring-version}</bundle>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> <bundle>mvn:joda-time/joda-time/${joda-time-version}</bundle>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> <bundle>mvn:se.digia.trs.persistence/tra/${project.version}</bundle>
> >>>>>>>>>>>>>>>>>>   </feature>
> >>>>>>>>>>>>>>>>>> ...
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> Wouldn't my bundle (the "tra" bundle) be visible when
> >>>>>>>>>>>>>>>>> spring-orm
> >>>>>>>>>>>>>>>>> resolves?
> >>>>>>>>>>>>>>>>> How does this work? Can you explain?
> >>>>>>>>>>>>>>>>> From what I've understood, the bundles in
> >>>>>>>>>>>>>>>>> startup.properties
> >>>>>>>>>>>>>>>>> will
> >>>>>>>>>>>>>>>>> see
> >>>>>>>>>>>>>>>>> each
> >>>>>>>>>>>>>>>>> other at resolve time but they will not see bundles
> >>>>>>>>>>>>>>>>> loaded by
> >>>>>>>>>>>>>>>>> Karaf
> >>>>>>>>>>>>>>>>> features
> >>>>>>>>>>>>>>>>> - right? But, what bundles will the features see when
> >>>>>>>>>>>>>>>>> they
> >>>>>>>>>>>>>>>>> resolve?
> >>>>>>>>>>>>>>>>> Will
> >>>>>>>>>>>>>>>>> they see other bundles in the same feature? Bundles in
> >>>>>>>>>>>>>>>>> other
> >>>>>>>>>>>>>>>>> features?
> >>>>>>>>>>>>>>>>> Bundles in startup.properties?
> >>>>>>>>>>>>>>>>> This is pretty tricky - I think. Ideally, it shouldn't
> >>>>>>>>>>>>>>>>> matter
> >>>>>>>>>>>>>>>>> whether
> >>>>>>>>>>>>>>>>> I
> >>>>>>>>>>>>>>>>> provision Karaf using startup.properties or via
> >>>>>>>>>>>>>>>>> features
> >>>>>>>>>>>>>>>>> -
> >>>>>>>>>>>>>>>>> they
> >>>>>>>>>>>>>>>>> should
> >>>>>>>>>>>>>>>>> all
> >>>>>>>>>>>>>>>>> resolve against each other.
> >>>>>>>>>>>>>>>>> BTW, the exception I now get is the following:
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> 2011-05-10 12:01:01,826 | ERROR | ExtenderThread-2 |
> >>>>>>>>>>>>>>>>>> ContextLoaderListener
> >>>>>>>>>>>>>>>>>>            | BundleApplicationContextListener   50 |
> >>>>>>>>>>>>>>>>>> Application
> >>>>>>>>>>>>>>>>>> context
> >>>>>>>>>>>>>>>>>> refresh failed
> >>>>>>>>>>>>>>>>>> (OsgiBundleXmlApplicationContext(bundle=tra,
> >>>>>>>>>>>>>>>>>> config=osgibundle:/META-INF/spring/*.xml))
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error
> >>>>>>>>>>>>>>>>>> creating
> >>>>>>>>>>>>>>>>>> bean with name
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0':
> >>>>>>>>>>>>>>>>>> Invocation of init method failed; nested exception is
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error
> >>>>>>>>>>>>>>>>>> creating
> >>>>>>>>>>>>>>>>>> bean
> >>>>>>>>>>>>>>>>>> with name 'tra_traService' defined in URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]: Cannot
> >>>>>>>>>>>>>>>>>> resolve
> >>>>>>>>>>>>>>>>>> reference to
> >>>>>>>>>>>>>>>>>> bean 'tra_transactionDAO' while setting bean property
> >>>>>>>>>>>>>>>>>> 'transactionDAO';
> >>>>>>>>>>>>>>>>>> nested exception is
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error creating bean with name 'tra_transactionDAO'
> >>>>>>>>>>>>>>>>>> defined
> >>>>>>>>>>>>>>>>>> in
> >>>>>>>>>>>>>>>>>> URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]: Cannot
> >>>>>>>>>>>>>>>>>> resolve
> >>>>>>>>>>>>>>>>>> reference to
> >>>>>>>>>>>>>>>>>> bean 'tra_sessionFactory' while setting bean property
> >>>>>>>>>>>>>>>>>> 'sessionFactory';
> >>>>>>>>>>>>>>>>>> nested exception is
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error creating bean with name 'tra_sessionFactory'
> >>>>>>>>>>>>>>>>>> defined
> >>>>>>>>>>>>>>>>>> in
> >>>>>>>>>>>>>>>>>> URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]:
> >>>>>>>>>>>>>>>>>> Initialization
> >>>>>>>>>>>>>>>>>> of
> >>>>>>>>>>>>>>>>>> bean
> >>>>>>>>>>>>>>>>>> failed; nested exception is
> >>>>>>>>>>>>>>>>>> java.lang.IllegalStateException:
> >>>>>>>>>>>>>>>>>> Expecting
> >>>>>>>>>>>>>>>>>> raw
> >>>>>>>>>>>>>>>>>> type, not:
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.FactoryBean
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[89:org.springframework.context:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[98:org.springframework.osgi.core:1.2.1]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[98:org.springframework.osgi.core:1.2.1]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[98:org.springframework.osgi.core:1.2.1]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[98:org.springframework.osgi.core:1.2.1]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[99:org.springframework.osgi.extender:1.2.1]
> >>>>>>>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]
> >>>>>>>>>>>>>>>>>> Caused by:
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error
> >>>>>>>>>>>>>>>>>> creating bean with name 'tra_traService' defined in
> >>>>>>>>>>>>>>>>>> URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]: Cannot
> >>>>>>>>>>>>>>>>>> resolve
> >>>>>>>>>>>>>>>>>> reference to
> >>>>>>>>>>>>>>>>>> bean 'tra_transactionDAO' while setting bean property
> >>>>>>>>>>>>>>>>>> 'transactionDAO';
> >>>>>>>>>>>>>>>>>> nested exception is
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error creating bean with name 'tra_transactionDAO'
> >>>>>>>>>>>>>>>>>> defined
> >>>>>>>>>>>>>>>>>> in
> >>>>>>>>>>>>>>>>>> URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]: Cannot
> >>>>>>>>>>>>>>>>>> resolve
> >>>>>>>>>>>>>>>>>> reference to
> >>>>>>>>>>>>>>>>>> bean 'tra_sessionFactory' while setting bean property
> >>>>>>>>>>>>>>>>>> 'sessionFactory';
> >>>>>>>>>>>>>>>>>> nested exception is
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error creating bean with name 'tra_sessionFactory'
> >>>>>>>>>>>>>>>>>> defined
> >>>>>>>>>>>>>>>>>> in
> >>>>>>>>>>>>>>>>>> URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]:
> >>>>>>>>>>>>>>>>>> Initialization
> >>>>>>>>>>>>>>>>>> of
> >>>>>>>>>>>>>>>>>> bean
> >>>>>>>>>>>>>>>>>> failed; nested exception is
> >>>>>>>>>>>>>>>>>> java.lang.IllegalStateException:
> >>>>>>>>>>>>>>>>>> Expecting
> >>>>>>>>>>>>>>>>>> raw
> >>>>>>>>>>>>>>>>>> type, not:
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.FactoryBean
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.afterPropertiesSet(OsgiServiceFactoryBean.java:167)[98:org.springframework.osgi.core:1.2.1]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> ... 14 more
> >>>>>>>>>>>>>>>>>> Caused by:
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error
> >>>>>>>>>>>>>>>>>> creating bean with name 'tra_transactionDAO' defined
> >>>>>>>>>>>>>>>>>> in
> >>>>>>>>>>>>>>>>>> URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]: Cannot
> >>>>>>>>>>>>>>>>>> resolve
> >>>>>>>>>>>>>>>>>> reference to
> >>>>>>>>>>>>>>>>>> bean 'tra_sessionFactory' while setting bean property
> >>>>>>>>>>>>>>>>>> 'sessionFactory';
> >>>>>>>>>>>>>>>>>> nested exception is
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error creating bean with name 'tra_sessionFactory'
> >>>>>>>>>>>>>>>>>> defined
> >>>>>>>>>>>>>>>>>> in
> >>>>>>>>>>>>>>>>>> URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]:
> >>>>>>>>>>>>>>>>>> Initialization
> >>>>>>>>>>>>>>>>>> of
> >>>>>>>>>>>>>>>>>> bean
> >>>>>>>>>>>>>>>>>> failed; nested exception is
> >>>>>>>>>>>>>>>>>> java.lang.IllegalStateException:
> >>>>>>>>>>>>>>>>>> Expecting
> >>>>>>>>>>>>>>>>>> raw
> >>>>>>>>>>>>>>>>>> type, not:
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.FactoryBean
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> ... 26 more
> >>>>>>>>>>>>>>>>>> Caused by:
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.BeanCreationException:
> >>>>>>>>>>>>>>>>>> Error
> >>>>>>>>>>>>>>>>>> creating bean with name 'tra_sessionFactory' defined
> >>>>>>>>>>>>>>>>>> in
> >>>>>>>>>>>>>>>>>> URL
> >>>>>>>>>>>>>>>>>> [bundle://144.0:0/META-INF/spring/context.xml]:
> >>>>>>>>>>>>>>>>>> Initialization
> >>>>>>>>>>>>>>>>>> of
> >>>>>>>>>>>>>>>>>> bean
> >>>>>>>>>>>>>>>>>> failed; nested exception is
> >>>>>>>>>>>>>>>>>> java.lang.IllegalStateException:
> >>>>>>>>>>>>>>>>>> Expecting
> >>>>>>>>>>>>>>>>>> raw
> >>>>>>>>>>>>>>>>>> type, not:
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.FactoryBean
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)[87:org.springframework.beans:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> ... 36 more
> >>>>>>>>>>>>>>>>>> Caused by: java.lang.IllegalStateException: Expecting
> >>>>>>>>>>>>>>>>>> raw
> >>>>>>>>>>>>>>>>>> type,
> >>>>>>>>>>>>>>>>>> not:
> >>>>>>>>>>>>>>>>>> org.springframework.beans.factory.FactoryBean
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.TypeFactory.createParameterizedType(TypeFactory.java:37)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.reflect.JavaLangTypeToResolvedTypeConverter.fromType(JavaLangTypeToResolvedTypeConverter.java:75)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.reflect.JavaLangTypeToResolvedTypeConverter.fromTypes(JavaLangTypeToResolvedTypeConverter.java:123)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate.getDeclaredInterfaces(Java15ReflectionBasedReferenceTypeDelegate.java:126)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.ReferenceType.getDeclaredInterfaces(ReferenceType.java:594)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.ResolvedType.getDirectSupertypes(ResolvedType.java:66)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.JoinPointSignatureIterator.findSignaturesFromSupertypes(JoinPointSignatureIterator.java:183)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.JoinPointSignatureIterator.hasNext(JoinPointSignatureIterator.java:74)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.patterns.SignaturePattern.matches(SignaturePattern.java:291)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.patterns.KindedPointcut.matchInternal(KindedPointcut.java:106)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.patterns.Pointcut.match(Pointcut.java:146)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.internal.tools.PointcutExpressionImpl.getShadowMatch(PointcutExpressionImpl.java:235)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesExecution(PointcutExpressionImpl.java:101)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesMethodExecution(PointcutExpressionImpl.java:92)[47:com.springsource.org.aspectj.weaver:1.6.6.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.aop.aspectj.AspectJExpressionPointcut.getShadowMatch(AspectJExpressionPointcut.java:361)[88:org.springframework.aop:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(AspectJExpressionPointcut.java:249)[88:org.springframework.aop:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>>>> at
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>>> org.springframework.aop.support.AopUtils.canApply(AopUtils.java:216)[88:org.springframework.aop:3.0.5.RELEASE]
> >>>>>>>>>>>>>>>
> 
> -----
> Mike Van (aka karafman)
> Karaf Team (Contributor)
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Hibernate-in-Karaf-tp2920368p2927952.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
> 

Reply via email to