geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Sun (JIRA)" <>
Subject [jira] Commented: (GERONIMO-5553) Fail to enchance entities on Geronimo
Date Fri, 27 Aug 2010 18:53:54 GMT


Lin Sun commented on GERONIMO-5553:


After some initial investigate, it turned out to be a user error in persistence.xml.   The
class should be:


while the one in the attached war has it configured as org.apache.geronimo.sample.entities.Book

This is causing the entity enhancement error as it was tried to enhance the wrong class.

After I made the above change, I am not seeing the entity didn't enhance error.  

P.S. This user case (a PU in war file) has to be a war file.  If it is a WAB, it won't work,
as the aries JPA doesn't support PU in WAB.

Please advise if this answer is satisfactory.  If so, you may close the bug.



> Fail to enchance entities on Geronimo
> -------------------------------------
>                 Key: GERONIMO-5553
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: persistence
>    Affects Versions: 3.0
>         Environment: OS:win xp
> Geronimo :3.0 20100824 build
>            Reporter: Lu Jiang
>            Assignee: Rick McGuire
>             Fix For: 3.0
>         Attachments: booknew.war
> I tried to deploy a simple jpa sample on geronimo.But when persist data into database.
> Following exception will occur.
> <openjpa-2.0.0-r422266:935683 nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
Attempt to cast instance "org.apache.sample.entities.Book@97781f" to PersistenceCapable failed.
 Ensure that it has been enhanced.
> FailedObject: org.apache.sample.entities.Book@97781f

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message