The error is pretty clear:
java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream
You should include the antlr bundle in you osgi container :)
Cheers
On Tue, Jan 3, 2012 at 7:38 AM, jjmartinez <jesusjmm(a)gmail.com> wrote:
Hi Salaboy,
I followed your advice, and I have almost what I wanted.
Now, my application shows me this error, and I don't know because.
java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream
[stderr] at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:394)
[stderr] at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:587)
[stderr] at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:41)
[stderr] at
drools.ejemplos.DroolsTest.readKnowledgeBase(DroolsTest.java:52)
[stderr] at drools.ejemplos.DroolsTest.execute(DroolsTest.java:35)
[stderr] at drools.ejemplos.DroolsTest.<init>(DroolsTest.java:29)
[stderr] at drools.ejemplos.Activator.start(Activator.java:14)
[stderr] at
org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:356)
[stderr] at
org.knopflerfish.framework.BundleThread.run(BundleThread.java:107)
[stderr] Caused by: java.lang.ClassNotFoundException:
org.antlr.runtime.CharStream
[stderr] at
org.knopflerfish.framework.BundleClassLoader.findClass(BundleClassLoader.java:235)
[stderr] at
org.knopflerfish.framework.BundleClassLoader.loadClass(BundleClassLoader.java:349)
[stderr] at java.lang.ClassLoader.loadClass(Unknown Source)
[stderr] ... 9 more
Do you have any idea about this?
Thanks in advance,
Jesús
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-bundle-in-OSGi-tp3626307p3628689...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- CTO @
http://www.plugtree.com
- MyJourney @
http://salaboy.wordpress.com
- Co-Founder @
http://www.jugargentina.org
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -