[rules-users] Drools web project in eclipse - Drools Library issue
Hello, I started to write web app using drools decision table. Here is what I have in my web project in eclipse 3.3, drools 4.0: 1. A Jsp page that takes input and pass it on to a servlet that fires the rules. 2. Servlet class has import statements: import org.drools.RuleBase; import org.drools.RuleBaseFactory; import org.drools.StatefulSession; import org.drools.StatelessSession; import org.drools.WorkingMemory; and so on.. 3. When I run the jsp on tomcat, it starts but when i hit submit it throws the exception: java.lang.NoClassDefFoundError: org/drools/RuleBase 4. I have drools jar files added under project properties - build path- add external jars from C:\wtp_all_in_one\eclipse\configuration\org.eclipse.osgi\bundles\503\1\.cp\lib. This is showing all drools jar files under Libraries hierarchy. Could anyone please suggest what to do to resolve this error? Thanks and Regards, Malika -- View this message in context: http://www.nabble.com/Drools-web-project-in-eclipse---Drools-Library-issue-tf4564565.html#a13028564 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools web project in eclipse - Drools Library issue
Hi, You can check the drools insurance example http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-insurance/ Regards On 10/3/07, Malika [EMAIL PROTECTED] wrote: Hello, I started to write web app using drools decision table. Here is what I have in my web project in eclipse 3.3, drools 4.0: 1. A Jsp page that takes input and pass it on to a servlet that fires the rules. 2. Servlet class has import statements: import org.drools.RuleBase; import org.drools.RuleBaseFactory; import org.drools.StatefulSession; import org.drools.StatelessSession; import org.drools.WorkingMemory; and so on.. 3. When I run the jsp on tomcat, it starts but when i hit submit it throws the exception: java.lang.NoClassDefFoundError: org/drools/RuleBase 4. I have drools jar files added under project properties - build path- add external jars from C:\wtp_all_in_one\eclipse\configuration\org.eclipse.osgi\bundles\503\1\.cp\lib. This is showing all drools jar files under Libraries hierarchy. Could anyone please suggest what to do to resolve this error? Thanks and Regards, Malika -- View this message in context: http://www.nabble.com/Drools-web-project-in-eclipse---Drools-Library-issue-tf4564565.html#a13028564 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools web project in eclipse - Drools Library issue
I added jars to J2ee module dependencies and it worked fine. Thanks a lot! Regards, Malika Steven Williams-5 wrote: Make sure the drools jars end up in your WEB-INF/lib directory. cheers Steve On 10/4/07, Malika [EMAIL PROTECTED] wrote: Hello, I started to write web app using drools decision table. Here is what I have in my web project in eclipse 3.3, drools 4.0: 1. A Jsp page that takes input and pass it on to a servlet that fires the rules. 2. Servlet class has import statements: import org.drools.RuleBase; import org.drools.RuleBaseFactory; import org.drools.StatefulSession; import org.drools.StatelessSession; import org.drools.WorkingMemory; and so on.. 3. When I run the jsp on tomcat, it starts but when i hit submit it throws the exception: java.lang.NoClassDefFoundError: org/drools/RuleBase 4. I have drools jar files added under project properties - build path- add external jars from C:\wtp_all_in_one\eclipse\configuration\org.eclipse.osgi\bundles\503\1\.cp\lib. This is showing all drools jar files under Libraries hierarchy. Could anyone please suggest what to do to resolve this error? Thanks and Regards, Malika -- View this message in context: http://www.nabble.com/Drools-web-project-in-eclipse---Drools-Library-issue-tf4564565.html#a13028564 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Steven Williams Supervising Consultant Object Consulting Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501 [EMAIL PROTECTED] www.objectconsulting.com.au consulting | development | training | support our experience makes the difference ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://www.nabble.com/Re%3A-Drools-web-project-in-eclipse---Drools-Library-issue-tf4565053.html#a13032223 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users