|
View:
New views
16 Messages
—
Rating Filter:
Alert me
|
|
|
Drools OSGi BundleHi 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.apache.tomcat.util.buf)(version>=0.0.0)) Drools Bundle (&(package=org.apache.commons.collections)(version>=0.0.0)) Drools Bundle (&(package=javax.portlet)(version>=0.0.0)) Drools Bundle (&(package=org.codehaus.jettison.mapped)(version>=0.0.0)) Drools Bundle (&(package=org.apache.jackrabbit.uuid)(version>=0.0.0)) Drools Bundle (&(package=org.apache.tools.ant.types)(version>=0.0.0)) Drools Bundle (&(package=javax.jms)(version>=0.0.0)) Drools Bundle (&(package=ch.ethz.ssh2.crypto)(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=sun.misc)(version>=0.0.0)) Drools Bundle (&(package=org.apache.lucene.util)(version>=0.0.0)) Drools Bundle (&(package=org.apache.jackrabbit.test)(version>=0.0.0)) Drools Bundle (&(package=org.jdom.input)(version>=0.0.0)) Drools Bundle (&(package=javax.jcr.version)(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.jboss.util.id)(version>=0.0.0)) Drools Bundle (&(package=org.eclipse.core.runtime.preferences)(version>=0.0.0)) Drools Bundle (&(package=org.jboss.logging)(version>=0.0.0)) Drools Bundle (&(package=org.apache.commons.collections.iterators)(version>=0.0.0 )) Drools Bundle (&(package=org.eclipse.core.runtime.content)(version>=0.0.0)) Drools Bundle (&(package=net.sf.cglib.proxy)(version>=0.0.0)) Drools Bundle (&(package=org.jnp.interfaces)(version>=0.0.0)) Drools Bundle (&(package=org.dom4j)(version>=0.0.0)) Drools Bundle (&(package=org.jboss.serial.objectmetamodel)(version>=0.0.0)) Drools Bundle (&(package=org.joda.time)(version>=0.0.0)) Drools Bundle (&(package=EDU.oswego.cs.dl.util.concurrent)(version>=0.0.0)) Drools Bundle (&(package=org.jnp.server)(version>=0.0.0)) Drools Bundle (&(package=junit.textui)(version>=0.0.0)) Drools Bundle (&(package=org.jboss.serial.objectmetamodel.safecloning)(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 |
|
|
Re: Drools OSGi BundleHi,
I guess you created this drools bundle with Bnd. Bnd analysis the code and concludes that classes from these packages _could_ be needed and that's why it generates imports for it. If you are sure that these packages are not needed at runtime, you can tell bnd to exclude them from the import list. That leaves the risk that things go wrong at runtime of course, that is what bnd and felix try to protect you from. The best thing to do would be a thorough analysis of why these classes are found by static analysis if they aren't used at runtime. I've seen similar issues, where devevelopment tools and runtime environment were bundled in one jar. Hth, Peter. On 27 Jun , 2008, at 15:16 , Remi Barraquand wrote: > > 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: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: Drools OSGi BundleHi 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:nospam@...] > Envoyé : vendredi 27 juin 2008 15:16 > À : users@... > 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: users-unsubscribe@... > For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Drools OSGi BundleThanks for your reply,
Actually i'm using the maven-bundle-plugin as well as the maven-ipojo-felix plugin to create the bundle. The maven-bundle-plugin is using the Bnd if I remember well... >The best thing to do would be a thorough analysis of why these classes >are found by static analysis if they aren't used at runtime. I've no idea how to do it :) ________________________________________
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 |
|
|
Re: Drools OSGi BundleHi Loris,
Ali told me about your Jasmine Drools port, I've just looked it back again and i found your jasmine-drools-api.bnd ;) this will maybe save my life :) Ok i'll try it, i let you know ;) Cheer ________________________________________
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 |
|
|
How to run Felix in backgroundHi,
I'm a newbie with Felix. I just want to find out how to run Felix in background with my default profile. Something like this: *java -jar bin/felix.jar & *Is there a way? Thank you guys all. brs, Honnix --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How to run Felix in backgroundI guess you are concerned about Felix prompting you about the profile
name. If you set felix.cache.profile or felix.cache.profiledir property in config.property file, then Felix won't prompt you anything and the command you mentioned would be sufficient. Thanks, Sahoo honnix wrote: > Hi, > > I'm a newbie with Felix. I just want to find out how to run Felix in > background with my default profile. > > Something like this: *java -jar bin/felix.jar & > > *Is there a way? > > Thank you guys all. > > brs, > Honnix > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How to run Felix in backgroundSahoo wrote:
> I guess you are concerned about Felix prompting you about the profile > name. If you set felix.cache.profile or felix.cache.profiledir > property in config.property file, then Felix won't prompt you anything > and the command you mentioned would be sufficient. > > Thanks, > Sahoo > honnix wrote: >> Hi, >> >> I'm a newbie with Felix. I just want to find out how to run Felix in >> background with my default profile. >> >> Something like this: *java -jar bin/felix.jar & >> >> *Is there a way? >> >> Thank you guys all. >> >> brs, >> Honnix >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > using java -jar bin/felix.jar &, it will be suspended in the background, since it tries to get the input. See output below: shadow@shadow:~/Downloads/development/apache/felix-1.0.4 $ java -jar bin/felix.jar & [1] 173 shadow@shadow:~/Downloads/development/apache/felix-1.0.4 $ Welcome to Felix. ================= DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0 DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0 DEBUG: WIRE: 1.0 -> org.ungoverned.osgi.service.shell -> 1.0 DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 1.0 -> org.apache.felix.shell -> 1.0 DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0 DEBUG: WIRE: 3.0 -> org.osgi.service.obr -> 3.0 DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 -> [1]+ Stopped java -jar bin/felix.jar Then what if I don't want this terminal to be blocked, and only put Felix to the background? Is this possible? I can do this with Equinox by not giving -console argument. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How to run Felix in backgroundhonnix wrote:
> Thank you very much. I did as you said, but when I try to launch Felix > using java -jar bin/felix.jar &, it will be suspended in the > background, since it tries to get the input. See output below: > > shadow@shadow:~/Downloads/development/apache/felix-1.0.4 $ java -jar > bin/felix.jar & > [1] 173 > shadow@shadow:~/Downloads/development/apache/felix-1.0.4 $ > Welcome to Felix. > ================= > > DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0 > DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0 > DEBUG: WIRE: 1.0 -> org.ungoverned.osgi.service.shell -> 1.0 > DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 > DEBUG: WIRE: 1.0 -> org.apache.felix.shell -> 1.0 > DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 > DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0 > DEBUG: WIRE: 3.0 -> org.osgi.service.obr -> 3.0 > DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 > -> > > [1]+ Stopped java -jar bin/felix.jar > > Then what if I don't want this terminal to be blocked, and only put > Felix to the background? Is this possible? I can do this with Equinox > by not giving -console argument. Yes, you can do something similar using Felix. Just disable the org.apache.felix.shell.tui bundle in conf/config.properties. That's the one which is waiting for console I/O. Look for org.apache.felix.shell.tui*.jar in config.properties and remove that bundle from the autostart list. Thanks, Sahoo --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How to run Felix in backgroundSahoo wrote:
> honnix wrote: >> Thank you very much. I did as you said, but when I try to launch >> Felix using java -jar bin/felix.jar &, it will be suspended in the >> background, since it tries to get the input. See output below: >> >> shadow@shadow:~/Downloads/development/apache/felix-1.0.4 $ java -jar >> bin/felix.jar & >> [1] 173 >> shadow@shadow:~/Downloads/development/apache/felix-1.0.4 $ >> Welcome to Felix. >> ================= >> >> DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0 >> DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0 >> DEBUG: WIRE: 1.0 -> org.ungoverned.osgi.service.shell -> 1.0 >> DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 >> DEBUG: WIRE: 1.0 -> org.apache.felix.shell -> 1.0 >> DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0 >> DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0 >> DEBUG: WIRE: 3.0 -> org.osgi.service.obr -> 3.0 >> DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0 >> -> >> >> [1]+ Stopped java -jar bin/felix.jar >> >> Then what if I don't want this terminal to be blocked, and only put >> Felix to the background? Is this possible? I can do this with Equinox >> by not giving -console argument. > > Yes, you can do something similar using Felix. Just disable the > org.apache.felix.shell.tui bundle in conf/config.properties. That's > the one which is waiting for console I/O. Look for > org.apache.felix.shell.tui*.jar in config.properties and remove that > bundle from the autostart list. > > Thanks, > Sahoo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > conf/config.properties, and restarted Felix, tui was still running there, then I stopped it manually, and restarted Felix, and it was done. Now I can put it to background successfully. ;-) Thank you again. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Drools OSGi BundleHi again,
I managed to create my Drools Bundle by using a specific .bnd file like you said Loris, the bundle can be started and used to create a session. However i cannot compile any mvel package !! my drools-bundle.bnd looks like the following: ******************************************************************* -exportcontents org.drools.* -split-package:=merge-first Import-Package com.sun.*;resolution:=optional,\ COM.jrockit.*;resolution:=optional,\ jrockit.*;resolution:=optional,\ kaffe.*;resolution:=optional,\ org.antlr.stringtemplate;resolution:=optional,\ org.antlr.tool;resolution:=optional,\ org.apache.bcel.*;resolution:=optional,\ org.apache.bsf.*;resolution:=optional,\ org.apache.env.*;resolution:=optional,\ org.apache.xml.resolver.*;resolution:=optional,\ org.codehaus.jettison.mapped;resolution:=optional,\ org.eclipse.*;resolution:=optional,\ org.osgi.service.prefs.*;resolution:=optional,\ sun.rmi.rmic.*;resolution:=optional,\ sun.tools.javac.*;resolution:=optional,\ sun.reflect.*;resolution:=optional,\ sun.misc.*;resolution:=optional,\ !com.thoughtworks.xstream.*,\ org.mvel.*,\ * Export-Package org.drools,\ org.drools.agent,\ org.drools.asm,\ org.drools.asm.attrs,\ org.drools.asm.commons,\ org.drools.asm.signature,\ org.drools.asm.util,\ org.drools.asm.util.attrs,\ org.drools.audit,\ org.drools.audit.event,\ org.drools.base.*,\ org.drools.base.accumulators,\ org.drools.base.dataproviders,\ org.drools.base.evaluators,\ org.drools.base.extractors,\ org.drools.base.field,\ org.drools.base.mvel,\ org.drools.common,\ org.drools.concurrent,\ org.drools.conflict,\ org.drools.event,\ org.drools.facttemplates,\ org.drools.reteoo,\ org.drools.reteoo.builder,\ org.drools.rule.*,\ org.drools.ruleflow.*,\ org.drools.spi.*,\ org.drools.compiler.*,\ org.mvel.*,\ org.drools.rule.builder.dialect.mvel.*,\ Embed-Dependency ant,\ ant-nodeps,\ antlr-runtime,\ core,\ drools-analytics,\ drools-ant,\ drools-compiler,\ drools-core,\ drools-decisiontables,\ drools-jsr94,\ janino,\ jsr94,\ jxl,\ xpp3,\ mvel Bundle-ClassPath=. Embed-Transitive true ******************************************************************* When i open the generated jar bundle, i find all the needed jar dependency. I created a simple bundle project "PackageLoader" that uses this drools-bundle and creates a drools session, tries to create a PackageBuilder and add a drl file. Then inserts a simple fact and call fireAllRules on the session. But when i try to create my PackageBuilder, i get the following exception: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel' This exception look like Felix don't find the mvel-1.3.1-java1.4.jar, but this jar is in the drools-bundle.jar !! Does someone have any idea what the hell the error could come from ? thanks a lot for any help ;) ________________________________________
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 |
|
|
Re: How to run Felix in backgroundhonnix:
> Sahoo wrote: >> honnix: >>> Sahoo wrote: >>>> honnix wrote: >>>>> I'm a newbie with Felix. I just want to find out how to run Felix in >>>>> background with my default profile. >>>>> >>>>> Something like this: *java -jar bin/felix.jar & >>>>> >>>>> *Is there a way? >>>> >>>> I guess you are concerned about Felix prompting you about the profile >>>> name. If you set felix.cache.profile or felix.cache.profiledir property >>>> in config.property file, then Felix won't prompt you anything and the >>>> command you mentioned would be sufficient. >>> >>> Thank you very much. I did as you said, but when I try to launch >>> Felix using java -jar bin/felix.jar &, it will be suspended in the >>> background, since it tries to get the input. >>> [...] >>> Then what if I don't want this terminal to be blocked, and only put >>> Felix to the background? Is this possible? I can do this with Equinox >>> by not giving -console argument. >> >> Yes, you can do something similar using Felix. Just disable the >> org.apache.felix.shell.tui bundle in conf/config.properties. Look for >> org.apache.felix.shell.tui*.jar in config.properties and remove that >> bundle from the autostart list. > > Thanks very much for your kindly help. I removed tui from > conf/config.properties, and restarted Felix, tui was still running > there, then I stopped it manually, and restarted Felix, and it was > done. Now I can put it to background successfully. ;-) Is this the recommended way of running Felix as a daemon? Summary: * Disable shell.tui (by removing the autoload paramater) * Set felix profile (-Dfelix.cache.profile=<some-profile>) * Redirect stdout and stderr to some log file ( >> felix.out 2>&1 ) e.g: (cd ~/felix-trunk/main; java -Dfelix.cache.profile=myProfile -jar bin/felix.jar) >> /var/log/felix.log 2>&1 & Is there an init-script that does this (possibly in a cleaner way...)? -- Vegar Westerlund --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How to run Felix in backgroundVegar Westerlund wrote:
> honnix: > >> Sahoo wrote: >> >>> honnix: >>> >>>> Sahoo wrote: >>>> >>>>> honnix wrote: >>>>> >>>>>> I'm a newbie with Felix. I just want to find out how to run Felix in >>>>>> background with my default profile. >>>>>> >>>>>> Something like this: *java -jar bin/felix.jar & >>>>>> >>>>>> *Is there a way? >>>>>> >>>>> I guess you are concerned about Felix prompting you about the profile >>>>> name. If you set felix.cache.profile or felix.cache.profiledir property >>>>> in config.property file, then Felix won't prompt you anything and the >>>>> command you mentioned would be sufficient. >>>>> >>>> Thank you very much. I did as you said, but when I try to launch >>>> Felix using java -jar bin/felix.jar &, it will be suspended in the >>>> background, since it tries to get the input. >>>> [...] >>>> Then what if I don't want this terminal to be blocked, and only put >>>> Felix to the background? Is this possible? I can do this with Equinox >>>> by not giving -console argument. >>>> >>> Yes, you can do something similar using Felix. Just disable the >>> org.apache.felix.shell.tui bundle in conf/config.properties. Look for >>> org.apache.felix.shell.tui*.jar in config.properties and remove that >>> bundle from the autostart list. >>> >> Thanks very much for your kindly help. I removed tui from >> conf/config.properties, and restarted Felix, tui was still running >> there, then I stopped it manually, and restarted Felix, and it was >> done. Now I can put it to background successfully. ;-) >> > > Is this the recommended way of running Felix as a daemon? Summary: > > * Disable shell.tui (by removing the autoload paramater) > * Set felix profile (-Dfelix.cache.profile=<some-profile>) > * Redirect stdout and stderr to some log file ( >> felix.out 2>&1 ) > > e.g: > (cd ~/felix-trunk/main; java -Dfelix.cache.profile=myProfile -jar bin/felix.jar) >> /var/log/felix.log 2>&1 & > > Is there an init-script that does this (possibly in a cleaner way...)? > No, I think that is it. Now you might think about including shell.remote so you can remotely access the Felix shell (or the web console). Felix itself doesn't make any attempt to use stdin, but the simple launcher does (i.e., it assumes it can ask for a profile if one doesn't exist and is configured to autoload the shell.tui), but it is configurable to avoid doing these things. How would you like it to be cleaner? Do you mean having it set up as a daemon automatically? We have some work started on an installer that will automatically install Felix as a daemon, but unfortunately that has stalled. -> richard --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How to run Felix in backgroundRichard S. Hall:
> Vegar Westerlund wrote: >> Is this the recommended way of running Felix as a daemon? Summary: >> >> * Disable shell.tui (by removing the autoload paramater) >> * Set felix profile (-Dfelix.cache.profile=<some-profile>) >> * Redirect stdout and stderr to some log file ( >> felix.out 2>&1 ) >> >> e.g: >> (cd ~/felix-trunk/main; java -Dfelix.cache.profile=myProfile -jar >> bin/felix.jar) >> /var/log/felix.log 2>&1 & >> >> Is there an init-script that does this (possibly in a cleaner way...)? > > No, I think that is it. Now you might think about including shell.remote > so you can remotely access the Felix shell (or the web console). Sure. > Felix itself doesn't make any attempt to use stdin, but the simple > launcher does (i.e., it assumes it can ask for a profile if one doesn't > exist and is configured to autoload the shell.tui), but it is > configurable to avoid doing these things. «the simple laucher does...»? Is felix normally run from another application (like I guess it is when running Eclipse)? I would like to run Felix on a server to be a backend for business logic. And then I only want to start the Felix server. > How would you like it to be cleaner? Do you mean having it set up as a > daemon automatically? Most programs designed to run as a daemon will ensure that stdout and stderr are redirected to syslog (or a logfile) and stdout are closed before forking a process to run in the background. And possibly a debug mode where the console are kept as output. Thats what I was expecting, but didn't find. > We have some work started on an installer that will automatically > install Felix as a daemon, but unfortunately that has stalled. Yeah, I read about something in the archive from November 07 about using Java wrapper. I tried it out and it seems to work on our Linux server. -- Vegar Westerlund --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: How to run Felix in background |