Ahhh, excuse me Mauricio.<div><br></div><div>Thanks! I'm going to try<br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 5:58 PM, Mauricio Salatino <span dir="ltr"><<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You should add it as an OSGI bundle (inside the OSGI container)right<br>
next the one that you are creating with that pom.xml file.<br>
Cheers<br>
<br>
2012/1/3 jjmartinez <<a href="mailto:jesusjmm@gmail.com">jesusjmm@gmail.com</a>>:<br>
<div><div class="h5">> I can not solve the problem. This is a part of my pom file<br>
><br>
> <build><br>
> <plugins><br>
> <plugin><br>
> <groupId>org.apache.maven.plugins</groupId><br>
> <artifactId>maven-compiler-plugin</artifactId><br>
> <version>2.0</version><br>
> <configuration><br>
> <source>1.5</source><br>
> <target>1.5</target><br>
> </configuration><br>
> </plugin><br>
> <plugin><br>
> <groupId>org.apache.felix</groupId><br>
> <artifactId>maven-bundle-plugin</artifactId><br>
> <extensions>true</extensions><br>
> <configuration><br>
> <manifestLocation>META-INF</manifestLocation><br>
> <instructions><br>
> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName><br>
> <Bundle-Name>${pom.artifactId}</Bundle-Name><br>
> <Bundle-Activator>drools.ejemplos.Activator</Bundle-Activator><br>
> <Export-Package><br>
> org.drools.*;-split-package:=merge-last<br>
> </Export-Package><br>
> <Import-Package><br>
> !org.drools.*;<br>
> </Import-Package><br>
> <DynamicImport-Package>*</DynamicImport-Package><br>
> </instructions><br>
> </configuration><br>
> </plugin><br>
> </plugins><br>
> </build><br>
><br>
> <properties><br>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding><br>
> </properties><br>
><br>
> <repositories><br>
> <repository><br>
> <id>Knopflerfish</id><br>
> <name>Knopflerfish Releases Repository</name><br>
> <url><a href="http://www.knopflerfish.org/maven2" target="_blank">http://www.knopflerfish.org/maven2</a></url><br>
> <layout>default</layout><br>
> </repository><br>
><br>
> <repository><br>
> <id>JBOSS</id><br>
> <name>JBoss Repository</name><br>
> <url><a href="https://repository.jboss.org/nexus/content/groups/public" target="_blank">https://repository.jboss.org/nexus/content/groups/public</a></url><br>
> </repository><br>
> </repositories><br>
><br>
> <dependencies><br>
> <dependency><br>
> <groupId>org.drools</groupId><br>
> <artifactId>knowledge-api</artifactId><br>
> <version>5.4.0-SNAPSHOT</version><br>
> </dependency><br>
> <dependency><br>
> <groupId>org.drools</groupId><br>
> <artifactId>drools-compiler</artifactId><br>
> <version>5.4.0-SNAPSHOT</version><br>
> </dependency><br>
> <dependency><br>
> <groupId>org.drools</groupId><br>
> <artifactId>drools-core</artifactId><br>
> <version>5.4.0-SNAPSHOT</version><br>
> </dependency><br>
> <dependency><br>
> <groupId>org.drools</groupId><br>
> <artifactId>drools-grid-impl</artifactId><br>
> <version>5.4.0-SNAPSHOT</version><br>
> </dependency><br>
> <dependency><br>
> <groupId>org.knopflerfish</groupId><br>
> <artifactId>framework</artifactId><br>
> <version>5.1.6</version><br>
> </dependency><br>
> </dependencies><br>
><br>
> Can anyone help me? Where I should include the antlr bundle? Because I tried<br>
> to include it in a dependecy, I added it in the build path and always the<br>
> result is the same<br>
><br>
</div></div>> On Tue, Jan 3, 2012 at 11:45 AM, salaboy [via Drools] <[hidden email]><br>
<div><div class="h5">> wrote:<br>
>><br>
>> The error is pretty clear:<br>
>> java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream<br>
>> You should include the antlr bundle in you osgi container :)<br>
>> Cheers<br>
>><br>
>> On Tue, Jan 3, 2012 at 7:38 AM, jjmartinez <[hidden email]> wrote:<br>
>><br>
>> > Hi Salaboy,<br>
>> ><br>
>> > I followed your advice, and I have almost what I wanted.<br>
>> ><br>
>> > Now, my application shows me this error, and I don't know because.<br>
>> ><br>
>> > java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream<br>
>> > [stderr] at<br>
>> ><br>
>> > org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:394)<br>
>> > [stderr] at<br>
>> ><br>
>> > org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:587)<br>
>> > [stderr] at<br>
>> ><br>
>> > org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:41)<br>
>> > [stderr] at<br>
>> > drools.ejemplos.DroolsTest.readKnowledgeBase(DroolsTest.java:52)<br>
>> > [stderr] at<br>
>> > drools.ejemplos.DroolsTest.execute(DroolsTest.java:35)<br>
>> > [stderr] at drools.ejemplos.DroolsTest.<init>(DroolsTest.java:29)<br>
>> > [stderr] at drools.ejemplos.Activator.start(Activator.java:14)<br>
>> > [stderr] at<br>
>> > org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:356)<br>
>> > [stderr] at<br>
>> > org.knopflerfish.framework.BundleThread.run(BundleThread.java:107)<br>
>> > [stderr] Caused by: java.lang.ClassNotFoundException:<br>
>> > org.antlr.runtime.CharStream<br>
>> > [stderr] at<br>
>> ><br>
>> > org.knopflerfish.framework.BundleClassLoader.findClass(BundleClassLoader.java:235)<br>
>> > [stderr] at<br>
>> ><br>
>> > org.knopflerfish.framework.BundleClassLoader.loadClass(BundleClassLoader.java:349)<br>
>> > [stderr] at java.lang.ClassLoader.loadClass(Unknown Source)<br>
>> > [stderr] ... 9 more<br>
>> ><br>
>> > Do you have any idea about this?<br>
>> ><br>
>> > Thanks in advance,<br>
>> ><br>
>> > Jesús<br>
>> ><br>
>> > --<br>
>> > View this message in context:<br>
>> > <a href="http://drools.46999.n3.nabble.com/Drools-bundle-in-OSGi-tp3626307p3628689.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-bundle-in-OSGi-tp3626307p3628689.html</a><br>
>><br>
>> > Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
>> ><br>
>> > _______________________________________________<br>
>> > rules-users mailing list<br>
>> > [hidden email]<br>
>> > <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
>> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
>> - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
>> - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
>><br>
>> - Salatino "Salaboy" Mauricio -<br>
>><br>
>> _______________________________________________<br>
>> rules-users mailing list<br>
>> [hidden email]<br>
>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>><br>
>><br>
>> ________________________________<br>
>> If you reply to this email, your message will be added to the discussion<br>
>> below:<br>
>><br>
>> <a href="http://drools.46999.n3.nabble.com/Drools-bundle-in-OSGi-tp3626307p3628698.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-bundle-in-OSGi-tp3626307p3628698.html</a><br>
>> To unsubscribe from Drools bundle in OSGi, click here.<br>
>> NAML<br>
><br>
><br>
><br>
><br>
> --<br>
> Jesús-----------------------------------------<br>
><br>
><br>
><br>
><br>
</div></div><div class="im">> ________________________________<br>
> View this message in context: Re: [rules-users] Drools bundle in OSGi<br>
><br>
</div><div class="im">> Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
</div>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<div class="im">> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
<br>
<br>
<br>
--<br>
- CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
- MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
- Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
<br>
- Salatino "Salaboy" Mauricio -<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
</div><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jesús-----------------------------------------<br><br><br><br>
</div>