gt; > 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?).
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?
> > > >
> >
ow 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
e this
> > problem at all (or am I fooling myself here?).
> >
> > /Bengt
> >
> >
> >
> > 2011/5/11 mikevan
> >
> >
> > Confirmed. I use an antlr-hibernate fragment to allow Hibernate to play
> > well with mysql, and I always load the
/Bengt
>
>
>
> 2011/5/11 mikevan
>
>
> 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
>
quot;mikevan"
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
2.2.0,
/Bengt
Den 11 maj 2011 17.18 skrev "Achim Nierbeck" :
liard [via Karaf]"
To: "mikevan"
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
/Hibernate-in-Karaf-tp2920368p2923736.html
Sent from the Karaf - User mailing list archive at Nabble.com.
ms suggestions. If this works, can you
>> provide a short guide for using Hibernate in Karaf ?
>>
>> Thanks and Regards,
>> Michael
>>
>> 2011/5/10 Bengt Rodehav
>>>
>>> Thanks Achim - I'll give it a try,
>>> /Bengt
>>&
stions. If this works, can you
> provide a short guide for using Hibernate in Karaf ?
>
> Thanks and Regards,
> Michael
>
> 2011/5/10 Bengt Rodehav
>>
>> Thanks Achim - I'll give it a try,
>> /Bengt
>>
>> 2011/5/10 Achim Nierbeck
>&g
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
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 fra
Using spring AOP + Weaving is certainly the most difficult thing to do
on OSGI platform. Personally, I use OpenJPA (instead of Hibernate),
Spring ORM and annotations or Spring Proxy Tx class to declare the
transactions.
On Tue, May 10, 2011 at 1:08 PM, Bengt Rodehav wrote:
> Thanks for your repl
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.
Thanks a lot for your quick reply Achim. I do use the
org.springframework.orm package via spring-hibernate3. However, currently
those packages are included in my client bundle (as private packages). Maybe
that's part of my problem. I'll try to do it your way and see if it helps.
/Bengt
2011/5/9 A
Hi Bengt,
from your Stacktrace I can guess you try to use Hibernate with Spring,
possibly also with spring-orm, right?
Well since Spring-ORM is probably already started it's not able to "see"
the corresponding Hibernate packages
since those are imported optionally. To get those optionally packages
I forgot to mention that I use Karaf 2.2.0.
/Bengt
2011/5/9 Bengt Rodehav
> I'm trying to use Hibernate within Karaf. I've managed to get it to work if
> I deploy Hibernate and its dependencies by dropping the jar's in the deploy
> folder. However, I cannot get it to work using Karaf features (
I'm trying to use Hibernate within Karaf. I've managed to get it to work if
I deploy Hibernate and its dependencies by dropping the jar's in the deploy
folder. However, I cannot get it to work using Karaf features (which I would
like to). I get the following exception:
*2011-05-09 22:23:23,069 | E
19 matches
Mail list logo