Re: Hibernate in Karaf

2011-05-12 Thread mikevan
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?).

Re: Hibernate in Karaf

2011-05-11 Thread Johan Edstrom
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? > > > > > >

Re: Hibernate in Karaf

2011-05-11 Thread Johan Edstrom
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

Re: Hibernate in Karaf

2011-05-11 Thread Johan Edstrom
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

Re: Hibernate in Karaf

2011-05-11 Thread Johan Edstrom
/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 >

Re: Hibernate in Karaf

2011-05-11 Thread mikevan
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

Re: Hibernate in Karaf

2011-05-11 Thread Bengt Rodehav
2.2.0, /Bengt Den 11 maj 2011 17.18 skrev "Achim Nierbeck" :

Re: Hibernate in Karaf

2011-05-10 Thread mikevan
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

Re: Hibernate in Karaf

2011-05-10 Thread mikevan
/Hibernate-in-Karaf-tp2920368p2923736.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Hibernate in Karaf

2011-05-10 Thread Johan Edstrom
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 >>&

Re: Hibernate in Karaf

2011-05-10 Thread Charles Moulliard
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

Re: Hibernate in Karaf

2011-05-10 Thread Achim Nierbeck
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

Re: Hibernate in Karaf

2011-05-10 Thread Achim Nierbeck
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

Re: Hibernate in Karaf

2011-05-10 Thread Charles Moulliard
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

Re: Hibernate in Karaf

2011-05-10 Thread Charles Moulliard
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.

Re: Hibernate in Karaf

2011-05-09 Thread Bengt Rodehav
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

Re: Hibernate in Karaf

2011-05-09 Thread Achim Nierbeck
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

Re: Hibernate in Karaf

2011-05-09 Thread Bengt Rodehav
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 (

Hibernate in Karaf

2011-05-09 Thread 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 (which I would like to). I get the following exception: *2011-05-09 22:23:23,069 | E