Re: [rules-users] JBossRules and JAVA Servlet / JSP (part2)
Hello; Thank you for your help; it's working now, i'm just trying to remove jars that i won't need, and then i'll make a small tutorial for servlets if it could help. Regards, Fernando Meyer wrote: Hi spilirit, Try copy all your dependencies to the WebContent/WEB-INF/lib instead referring in your project. The Eclipse IDE will automatically add these libs to your classpath and to your exported war. Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 23, 2007, at 5:33 AM, spilirit wrote: Hi, please find attached a copy of my Eclipse project, Thank you for your HelpTest.zip___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] JBossRules and JAVA Servlet / JSP (part2)
Hi Burr, That would be very kind from you, if you could send me the WAR, Thank you, ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] JBossRules and JAVA Servlet / JSP (part2)
Hi spilirit, Try copy all your dependencies to the WebContent/WEB-INF/lib instead referring in your project. The Eclipse IDE will automatically add these libs to your classpath and to your exported war. Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 23, 2007, at 5:33 AM, spilirit wrote: Hi, please find attached a copy of my Eclipse project, Thank you for your HelpTest.zip___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] JBossRules and JAVA Servlet / JSP (part2)
Please Mohamed, Attach your demo web project with scource code, then we can try to reproduce this problem. regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 20, 2007, at 11:48 AM, Mohammed JBossRules wrote: 2007/7/20, Mohammed JBossRules [EMAIL PROTECTED]: 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 [EMAIL PROTECTED]: 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@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] JBossRules and JAVA Servlet / JSP (part2)
2007/7/20, Mohammed JBossRules [EMAIL PROTECTED]: 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 [EMAIL PROTECTED]: 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.0Build 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@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] JBossRules and JAVA Servlet / JSP (part2)
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 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: 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 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: 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@lists.jboss.org mailto:rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users