Path: csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Why is my class not enhanced Date: Fri, 11 Sep 2015 21:48:30 -0400 Organization: Aioe.org NNTP Server Lines: 46 Message-ID: References: <871te4uc1s.fsf@Equus.decebal.nl> NNTP-Posting-Host: NIM2IeSPVd0kE3mU1mieXw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:32582 On 9/11/2015 12:59 PM, Cecil Westerhof wrote: > I can create an EntityMangerFactory and an EntityManger. But when I do > an em.find I get: > org.apache.openjpa.persistence.ArgumentException: The type "class nl.part1.part2.part3.NotifyMessage" has not been enhanced. > > But I have in my pom.xml: > > org.apache.openjpa > openjpa-maven-plugin > 2.2.0 > > nl/part1/part2/part3/**/*.class > > > > enhancer > process-classes > > enhance > > > > > > org.apache.openjpa > openjpa > ${version.openjpa} > > > > > So I would expect my classes to be enhanced, but they are not. What > could be the problem? > > I also tried to change: > nl/part1/part2/part3/**/*.class > to: > nl/part1/part2/part3/*.class > but that did not help. I don't know OpenJPA, but a wild guess: **/nl/part1/part2/part3/**/*.class Arne