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] [Created] (OPENEJB-2035) Tomee+OpenEJB+OpenJPA: deployment-time JPA enhancement trouble
Date Fri, 09 Aug 2013 07:10:50 GMT
Apache Fan created OPENEJB-2035:
-----------------------------------

             Summary: 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


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