Make sure the drools jars end up in your WEB-INF/lib directory.

cheers
Steve

On 10/4/07, Malika <nu_age_gal@yahoo.com > 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
steven.williams@objectconsulting.com.au
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference