Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 88944 invoked from network); 27 Aug 2010 15:55:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Aug 2010 15:55:20 -0000 Received: (qmail 40128 invoked by uid 500); 27 Aug 2010 15:55:19 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 39375 invoked by uid 500); 27 Aug 2010 15:55:19 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 39119 invoked by uid 99); 27 Aug 2010 15:55:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Aug 2010 15:55:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Aug 2010 15:55:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7RFstPA003508 for ; Fri, 27 Aug 2010 15:54:55 GMT Message-ID: <4269240.33291282924495024.JavaMail.jira@thor> Date: Fri, 27 Aug 2010 11:54:55 -0400 (EDT) From: "Jarek Gawor (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-5553) Fail to enchance entities on Geronimo In-Reply-To: <2123593.901282808572948.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-5553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903453#action_12903453 ] Jarek Gawor commented on GERONIMO-5553: --------------------------------------- Once again, the Aries JPA is not used in this case. So no need to worry about it. But if you are interested, this works in exactly the same way as it works for regular Java EE apps. OpenJPA calls PersistenceUntInfo.addTransfomer() which then registers the transformer with the agent which later on causes the enhancement to be done. Everything is a bundle in Geronimo 3.0. I'm pretty sure the PU provides the classloader it wants to use via PersistenceUnitInfo.getClassLoader(). > 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. > 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.