Thanks for your candid reply. I’m just diving into OSGi and am experiencing the same WTF. Hopefully, I’ll be able to stay on this project for a bit and actually get somewhere, but it doesn’t look good right now. Good news… GE Healthcare may be opening the door and allowing us to participate in the Open Source community. If that happens, I may be able to pitch in.
Thanks for the pointers.
- Dan
From: Mark Proctor [via Drools] [mailto:[hidden email]]
Sent: Monday, October 01, 2012 9:42 PM
To: Seaver, Daniel (GE Healthcare)
Subject: Re: [rules-users] Deploy Drools in AS7 as OSGi bundles
Our OSGi stuff is best effort - working on OSGi was like sticking needles directly into the back of my eyeball, not fun. tbh I find OSGi a real PITA. Too many of our dependencies do not have real OSGi bundles available, so we have to resort to the spring repository - where the versions almost never match our original target version. Further when it fails it's almost freaking impossible to determine why it fails.
We use the spring test module, we provide it all the dependencies that you see, and run the tests. Other than suggesting to look at the spring OSGi test executions, I can't really offer more help. But it will nearly always boil down to wrong jars or wrong versions of jars - figuring out which of those are the problem, is not easy. Either it works, of it doesn't. If it doesn't, there is no simple way to debug why OSGi doesn't work. Generally I have to take it back to the last version that worked and keep incrementally changing it until I find out specifically doesn't work, so I can address it.
You might find it useful to look at the bundle context that spring osgi creates, here is all the bundles and their versions necessary for the unit tests to run:
https://github.com/droolsjbpm/droolsjbpm-build-distribution/blob/master/drools-osgi-bundles/org.drools.osgi.test/src/test/filtered-resources/boot-bundles.properties
good luck :) Please document any helpers you find, and submit as pull requests.
Mark
On 1 Oct 2012, at 21:26, Dan Seaver <[hidden email]> wrote: