Ahhh, excuse me Mauricio.
Thanks! I'm going to try
On Tue, Jan 3, 2012 at 5:58 PM, Mauricio Salatino <salaboy(a)gmail.com> wrote:
You should add it as an OSGI bundle (inside the OSGI container)right
next the one that you are creating with that pom.xml file.
Cheers
2012/1/3 jjmartinez <jesusjmm(a)gmail.com>:
> I can not solve the problem. This is a part of my pom file
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.0</version>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <extensions>true</extensions>
> <configuration>
> <manifestLocation>META-INF</manifestLocation>
> <instructions>
> <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
> <Bundle-Name>${pom.artifactId}</Bundle-Name>
> <Bundle-Activator>drools.ejemplos.Activator</Bundle-Activator>
> <Export-Package>
> org.drools.*;-split-package:=merge-last
> </Export-Package>
> <Import-Package>
> !org.drools.*;
> </Import-Package>
> <DynamicImport-Package>*</DynamicImport-Package>
> </instructions>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> <properties>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> </properties>
>
> <repositories>
> <repository>
> <id>Knopflerfish</id>
> <name>Knopflerfish Releases Repository</name>
> <
url>http://www.knopflerfish.org/maven2</url>
> <layout>default</layout>
> </repository>
>
> <repository>
> <id>JBOSS</id>
> <name>JBoss Repository</name>
> <
url>https://repository.jboss.org/nexus/content/groups/public</url>
> </repository>
> </repositories>
>
> <dependencies>
> <dependency>
> <groupId>org.drools</groupId>
> <artifactId>knowledge-api</artifactId>
> <version>5.4.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>org.drools</groupId>
> <artifactId>drools-compiler</artifactId>
> <version>5.4.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>org.drools</groupId>
> <artifactId>drools-core</artifactId>
> <version>5.4.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>org.drools</groupId>
> <artifactId>drools-grid-impl</artifactId>
> <version>5.4.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>org.knopflerfish</groupId>
> <artifactId>framework</artifactId>
> <version>5.1.6</version>
> </dependency>
> </dependencies>
>
> Can anyone help me? Where I should include the antlr bundle? Because I
tried
> to include it in a dependecy, I added it in the build path and always the
> result is the same
>
> On Tue, Jan 3, 2012 at 11:45 AM, salaboy [via Drools] <[hidden email]>
> wrote:
>>
>> 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 <[hidden email]> 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
>> > [hidden email]
>> >
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 -
>>
>> _______________________________________________
>> rules-users mailing list
>> [hidden email]
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>>
http://drools.46999.n3.nabble.com/Drools-bundle-in-OSGi-tp3626307p3628698...
>> To unsubscribe from Drools bundle in OSGi, click here.
>> NAML
>
>
>
>
> --
> Jesús-----------------------------------------
>
>
>
>
> ________________________________
> View this message in context: Re: [rules-users] Drools bundle in OSGi
>
> 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 -
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users