geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (GERONIMO-5553) Fail to enchance entities on Geronimo
Date Thu, 26 Aug 2010 19:45:55 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-5553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Donald Woods reassigned GERONIMO-5553:
--------------------------------------

    Assignee: Rick McGuire  (was: Donald Woods)

Both of these are registering transformers -
openjpa2/geronimo-aries-jpa/src/main/java/org/apache/geronimo/aries/jpa/GeronimoPersistenceUnitInfo.java
openjpa2/geronimo-persistence-jpa20/src/main/java/org/apache/geronimo/persistence/PersistenceUnitGBean.java

So, are all WAR files being turned into WAB files and run as OSGi bundles in 3.0?  If so,
then using JPA in WAR files is going to require Aries and the geronimo-aries-jpa code, which
knows about bundle context, while the normal geronimo-persistence-jpa20 code has no knowledge
of bundles and how to access their classloaders???


> 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