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

Rick McGuire commented on GERONIMO-5553:
----------------------------------------

I did a little experimentation on this, and I believe this is probably working 
the way it was intended.  Debugging the geronimo transformer wrapper, I'm 
seeing the transformer getting called on the Book class and all other classes 
of this application, so it looks like the javaagent hook is working correctly. 

I deployed this application on 2.2 to see what would happen, and it gave a 
similar (but different) error, which leads me to believe this really can be 
closed: 

<openjpa-1.2.1-r752877:753278 fatal user error> org.apache.openjpa.persistence.A
rgumentException: No metadata was found for type "class org.apache.sample.entiti
es.Book". The class does not appear in the list of persistent types: [org.apache
.geronimo.sample.entities.Book].
        at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataReposi
tory.java:303)
        at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2426)
        at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2280)
        at org.apache.openjpa.kernel.DelegatingBroker.persist(DelegatingBroker.j
ava:1021)
        at org.apache.openjpa.persistence.EntityManagerImpl.persist(EntityManage
rImpl.java:645)
        at org.apache.sample.bean.Facade.createBook(Facade.java:21)
        at org.apache.sample.action.AddBook.doPost(AddBook.java:48)
        at org.apache.sample.action.AddBook.doGet(AddBook.java:33)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)



> 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.

Reply via email to