<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma,new york,times,serif;font-size:10pt"><div>As an update: I tried several things to remedy this problem. I tried adding the classloader to the JPA classes to the RuleBaseConfiguration but that had no effect. After much code digging, debugging and research I decided to setShadowProxy(false) on the RuleBaseConfiguration and low-and-behold things worked. No sure why Drools can't create the proxies for the JPA classes. I will save that for the next rainy day.<br><br>Earnie1<br></div><div style="font-family: tahoma,new york,times,serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Earnest Dyke &lt;earniedyke@yahoo.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> JBoss Rules
 &lt;rules-users@lists.jboss.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, May 6, 2009 11:15:10 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [rules-users] Drools and OpenJPA<br></font><br>
<div style="font-family: tahoma,new york,times,serif; font-size: 10pt;"><div>Greetings all,<br><br>I am trying to use Drools 4.0.7 with objects that are retrieved via OpenJPA. So I have a Person entity which is in the package <a target="_blank" href="http://com.my">com.my</a>.company.entity. When I retrieve it via OpenJPA what I get, and subsequently insert into working memory, is a org.apache.openjpa.enhance.com$my$company$entity$Person$pcsubclass. I have tried casting before inserting into working memory but that does not change things. Drools is throwing <span style="font-weight: bold;">java.lang.NoClassDefFoundError: org/apache/openjpa/enhance/com$my$company$entity$Person$pcsubclass</span> exception. <br><br>Any ideas of how to get around this? I really don't want to have to declare the concrete (OpenJPA) classes in my rules if I can help it.<br><br>Thanks in advance for any and all
 help!<br><br>Earnie!<br><br><br></div></div></div></div></div></body></html>