tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Fan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENEJB-2035) Tomee+OpenEJB+OpenJPA: deployment-time JPA enhancement trouble
Date Mon, 12 Aug 2013 08:50:47 GMT

    [ https://issues.apache.org/jira/browse/OPENEJB-2035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736691#comment-13736691
] 

Apache Fan commented on OPENEJB-2035:
-------------------------------------

Oh yes, sorry, it was my bad. It is working now. :)
                
> Tomee+OpenEJB+OpenJPA: deployment-time JPA enhancement trouble
> --------------------------------------------------------------
>
>                 Key: OPENEJB-2035
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-2035
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 4.5.2
>            Reporter: Apache Fan
>         Attachments: ejb-jpa2.zip, ejb-jpa.zip
>
>
> Hello,
> I am struggling to get JPA working with deployment-time enhancement.
> When I attempt to persist an entity I receive the exception below.
> I have added 'openejb.jpa.deploy-time-enhancement=true' to Tomee's catalina.property,
which is picked up properly according to the logs.
> {code}
> Caused by: javax.ejb.EJBException: The bean encountered a non-application exception;
nested exception is: 
> 	<openjpa-2.2.0-r422266:1244990 nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
Attempt to cast instance "1234 [java.lang.String]" to PersistenceCapable failed.  Ensure that
it has been enhanced.
> FailedObject: 1234 [java.lang.String]
> 	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:363)
> 	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:283)
> 	at com.bankapp.service.blacklist.BlackListEJB$LocalBeanProxy.addToBlackList(com/bankapp/service/blacklist/BlackListEJB.java)
> 	at com.bankapp.servlet.AddToBlackListServlet.doGet(AddToBlackListServlet.java:40)
> 	... 19 more
> {code}
> See the attachment for the webapp to reproduce the problem.
> The relevant Tomee config files can be found at src/test/resources/tomee.
> Environment:
> Tomee:1.5.2 Plus
> OpenEJB: 4.5.2
> OpenJPA: 2.2.0
> JDK: 1.7.0_21, Windows 7, 64 bit
> H2DB: 1.3.170

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message