Hi Remi, In the JASMINe project we provide a bundle of Drools that allows to add and remove dynamically some rules embedded into some other bundles. To see how we have resolved your problem, I propose you see here: http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/jasmine/jasmine/trunk/jasmine-control/DroolsResourceAdapter/
Best regards, Loris > -----Message d'origine----- > De : Remi Barraquand [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 27 juin 2008 15:16 > À : [email protected] > Objet : Drools OSGi Bundle > > > Hi there, > > I'm a newby with Felix, OSGi and all the stuff... and i try to create a > Bundle for the Drools library. > You can find the binary version of Drools over here : > http://www.jboss.org/drools/downloads.html > > Drools library is divided as follow: > > drools: > drools-jsr94-4.0.7.jar > drools-analytics-4.0.7.jar > drools-ant-4.0.7.jar > drools-compiler-4.0.7.jar > drools-core-4.0.7.jar > drools-decisiontables-4.0.7.jar > > drools-dependency > lib>ant-1.6.5.jar > lib>janino-2.5.10.jar > lib>xercesImpl-2.4.0.jar > lib>antlr-runtime-3.0.jar > lib>jsr94-1.1.jar > lib>xml-apis-1.0.b2.jar > lib>ant-nodeps-1.6.5.jar > lib>jxl-2.4.2.jar > lib>xpp3_min-1.1.3.4.O.jar > lib>core-3.2.3.v_686_R32x.jar > lib>mvel-1.3.1-java1.4.jar > lib>xstream-1.2.2.jar > > On the drools download page you can find as well the maven repository > with > the pom file to build the Drools Library using maven. I partially used > this > pom to create a bundle of this library. > > I have however a lot of difficulty... i managed to create the bundle, > but > when i start it using the obr start command, Felix shout me some error > saying that there is missing dependency.... > > Unsatisfied requirement(s): > --------------------------- > (&(package=org.eclipse.core.resources)(version>=0.0.0)) > Drools Bundle > (&(package=org.codehaus.jettison.mapped)(version>=0.0.0)) > Drools Bundle > (&(package=org.apache.tools.ant.types)(version>=0.0.0)) > Drools Bundle > (&(package=COM.jrockit.reflect)(version>=0.0.0)) > Drools Bundle > (&(package=org.eclipse.jface.text)(version>=0.0.0)) > Drools Bundle > (&(package=org.apache.tools.ant.taskdefs)(version>=0.0.0)) > Drools Bundle > (&(package=sun.misc)(version>=0.0.0)) > Drools Bundle > (&(package=org.jdom.input)(version>=0.0.0)) > Drools Bundle > (&(package=org.xmlpull.v1)(version>=0.0.0)) > Drools Bundle > (&(package=junit.framework)(version>=0.0.0)) > Drools Bundle > (&(package=org.jdom)(version>=0.0.0)) > Drools Bundle > (&(package=org.eclipse.core.runtime.preferences)(version>=0.0.0)) > Drools Bundle > (&(package=net.sf.cglib.proxy)(version>=0.0.0)) > Drools Bundle > (&(package=org.eclipse.core.runtime.content)(version>=0.0.0)) > Drools Bundle > (&(package=org.eclipse.core.runtime)(version>=0.0.0)) > Drools Bundle > (&(package=org.dom4j)(version>=0.0.0)) > Drools Bundle > (&(package=org.dom4j.tree)(version>=0.0.0)) > Drools Bundle > (&(package=org.drools.analytics)(version>=0.0.0)) > Drools Bundle > (&(package=org.xmlpull.mxp1)(version>=0.0.0)) > Drools Bundle > (&(package=org.joda.time)(version>=0.0.0)) > Drools Bundle > (&(package=org.apache.tools.ant.taskdefs.compilers)(version>=0.0.0 > ) > Drools Bundle > (&(package=org.eclipse.text.edits)(version>=0.0.0)) > Drools Bundle > (&(package=org.eclipse.core.runtime.jobs)(version>=0.0.0)) > Drools Bundle > (&(package=org.antlr.tool)(version>=0.0.0)) > Drools Bundle > (&(package=org.osgi.service.prefs)(version>=0.0.0)) > Drools Bundle > (&(package=junit.textui)(version>=0.0.0)) > Drools Bundle > (&(package=nu.xom)(version>=0.0.0)) > Drools Bundle > (&(package=org.antlr.stringtemplate)(version>=0.0.0)) > Drools Bundle > (&(package=jxl.read.biff)(version>=0.0.0)) > Drools Bundle > (&(package=org.eclipse.osgi.util)(version>=0.0.0)) > Drools Bundle > > Those dependency should be dependency needed by the jar library drools > is > using in the lib/ folder of Drools.... However when i'm using Drools as > a > normal library i don't have any problem of any kind !! > > Is the problem coming from making the bundle ? are is the problem > coming > from Felix classloading ? > I don't know really where to look... but i think i need to tell either > Maven > or Felix to not load dependency of dependency.... how to do that ? > > Could someone help ? > > thanks, > > ----- > ________________________________________ > Rémi Barraquand, PhD I.N.P.G > Projet PRIMA - Laboratoire LIG > INRIA Grenoble Rhones-Alpes Research Centre > 655 Ave de l'Europe > 38330 Montbonnot, France > -- > View this message in context: http://www.nabble.com/Drools-OSGi-Bundle- > tp18155012p18155012.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

