[rules-users] JBossRules and JAVA Servlet / JSP (part2)

Burr Sutter burr.sutter at redhat.com
Fri Jul 20 17:15:55 EDT 2007


I have a WAR with a working WS that uses Drools 3.0.1

Would that help?

If so, just let me know and I can ship it to you.

Burr

Mohammed JBossRules wrote:
>
>
> 2007/7/20, Mohammed JBossRules <jboss.lakehayli at gmail.com 
> <mailto:jboss.lakehayli at gmail.com>>:
>
>     Hi, 
>     an other question , when i'm trying to execute the same code in
>     the sample test java file provided  by the wizard, I get some
>     other errors :
>
>     java.lang.NoClassDefFoundError: org/drools/WorkingMemory
>         at java.lang.Class.getDeclaredConstructors0(Native Method)
>         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
>         at java.lang.Class.getConstructor0(Unknown Source)
>         at java.lang.Class.newInstance0 (Unknown Source)
>         at java.lang.Class.newInstance(Unknown Source)
>         at
>     org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)
>         at org.apache.catalina.core.StandardWrapper.allocate (
>     StandardWrapper.java:806)
>         at
>     org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
>         at
>     org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>         at
>     org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at
>     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>         at org.apache.catalina.core.StandardEngineValve.invoke
>     (StandardEngineValve.java:109)
>         at
>     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
>         at
>     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>         at
>     org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
>     (Http11Protocol.java:581)
>         at
>     org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>         at java.lang.Thread.run(Unknown Source)
>
>
>     it works fine if i'm using a simple class, but when i try to use
>     my servlet, it falls; 
>
>     and finally, is it possible to contribute withe a tutorial showing
>     how to set up drools on eclipse and running a DroolsTest sample
>     file,(arabic, english and frensh version)  that's all i can
>     propose for the moment.
>
>     thank you.
>
>
>
>
>
>
>     2007/7/20, Mohammed JBossRules < jboss.lakehayli at gmail.com
>     <mailto:jboss.lakehayli at gmail.com>>:
>
>         hello,
>         Thank you all for your replays; as you've suggested, what i should
>         import into my build path was not the core and compiler but
>         all the set
>         contained in the drools library, maybe that would help someone
>         later!
>         here is the list of jars
>         antlr-runtime.jar
>         drools-compiler.jar
>         drools-core.jar
>         drools-decisiontables.jar
>         drools-documentation.jar
>         drools-jsr94.jar
>         jsr94.jar
>         junit.jar
>         jxl.jar
>         mvel14.jar
>         xercesImpl.jar
>         xml-apis.jar
>         xpp3.jar
>         xstream.jar
>         Thankyou Mark for the link
>         with kind regards,
>
>         ps: tried many times to post this mail yesterday but seems that it
>         doesn't work, sorry if you received it more than once!
>         Mohammed JBossRules wrote:
>         > Hello,
>         >
>         > I'm a new user for JBossRules, and I'm feeling like turning
>         around
>         > since a while, so i thought that sole body could help...
>         > I'm using JBossRules( V4.0.0.12865MR3) on eclipse (Version:
>         3.3.0 Build
>         > id: I20070621-1340) on MS-Windows XP and  Java(TM) SE Runtime
>         > Environment (build 1.6.0_01-b06)
>         > now the problem is how to use my rules (simple rules in a DRL
>         file) in
>         > a dynamic project based on JSP/Servlets...
>         > i've imported the compiler, the core, jsr94, decisiontable,
>         and also
>         > the core 3.2.3 jars to my build path , but when i try to
>         execute the
>         > same code i'm having errors like:
>         > The import org.drools cannot be resolved
>         > but i have imported the core!!
>         > what's wrong? help please
>         >
>         > regards
>         > _______________________________________________
>         > rules-users mailing list
>         > rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
>         > https://lists.jboss.org/mailman/listinfo/rules-users
>         >
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070720/7ffbd273/attachment.html 


More information about the rules-users mailing list