[
https://issues.apache.org/jira/browse/GERONIMO-5553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903442#action_12903442
]
Donald Woods commented on GERONIMO-5553:
----------------------------------------
OK, so this dual personality is really confusing... Looking back at ARIES-320,
you added and them removed code to enable the javaagent support and instead in
geronimo-aries-jpa created "GeronimoManagedPersistenceUnitInfoFactory extends
ManagedPersistenceUnitInfoFactoryImpl". How did this enable the javaagent for
Aries apps???
Guess I'm wondering, if the app is being loaded as a bundle, is OpenJPA being
loaded as a bundle? We have tons of places in OpenJPA where we're looking up
classloaders, but only one place (broker factory creation) that we try to use
the bundle context if available (which was OPENJPA-1491 for Aries.) So, if the
OpenJPA transformer uses the bundle context, what is the runtime using and are
we seeing two copies of the class, one enhanced and one not....?
> 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.b...@97781f" to PersistenceCapable failed.
> Ensure that it has been enhanced.
> FailedObject: org.apache.sample.entities.b...@97781f
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.