I copied and pasted the maven plugin version from the openjpa website.  It was 
v1.0.  I have switched to 1.1, and it now works.

----- "Trenton D. Adams" <[email protected]> wrote:

> From: "Trenton D. Adams" <[email protected]>
> To: [email protected]
> Sent: Thursday, May 27, 2010 1:45:22 AM GMT -07:00 US/Canada Mountain
> Subject: Re: ClassNotFoundException enhancer
>
> This seems identical to another guy's problem, which was unresolved.
> http://openjpa.208410.n2.nabble.com/ClassNotFoundException-in-PCEnhancerTask-when-class-has-already-been-enhanced-td5010582.html
> 
> 
> ----- "Trenton D. Adams" <[email protected]> wrote:
> 
> > From: "Trenton D. Adams" <[email protected]>
> > To: "openjpa-users" <[email protected]>
> > Sent: Wednesday, May 26, 2010 2:54:11 PM GMT -07:00 US/Canada
> Mountain
> > Subject: ClassNotFoundException enhancer
> >
> > Caused by: java.lang.ClassNotFoundException:
> > org.adamsbros.rmi.ledger.datatypes.EntryType
> > 
> > public enum EntryType implements Serializable
> > {
> >     DEBIT,
> >     CREDIT
> > }
> > 
> > I have it setup to store these as strings.  The class that is using
> it
> > as this...
> > 
> >     @Column(name = "debitCredit")
> >     @Enumerated(EnumType.STRING)
> >     public EntryType getEntryType()
> >     {
> >         return entryType;
> >     }
> > 
> > Is the enhancer not loading it into the class path because there's
> a
> > missing annotation of some sort?  What would that be?  I though the
> > @Enumerated was all that is needed.
> > 
> > openjpa-1.2.1
> > 
> > Thanks.

Reply via email to