geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-5553) Fail to enchance entities on Geronimo
Date Fri, 27 Aug 2010 14:29:53 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903427#action_12903427
] 

Jarek Gawor commented on GERONIMO-5553:
---------------------------------------

First, let me correct something. Aries JPA kicks in when a bundle with Meta-Persistence header
is deployed. So it's not really about application being deployed as a wab. Either way, however,
Aries JPA will not be used when deploying a regular Java EE web application.

Second, everything is turned into a bundle during deployment so even a war module should have
a classloader that implements the BundleReference interface. But this is probably good place
to put a break point to see if transform() is being called.

Third, I know that JPA runtime enhancement is working fine in Geronimo for Aries applications
at least because the testsuites/aries-testsuites/jpa tests are passing.


> Fail to enchance entities on Geronimo
> -------------------------------------
>
>                 Key: GERONIMO-5553
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5553
>             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.


Mime
View raw message