tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Fan (JIRA)" <>
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
             Project: OpenEJB
          Issue Type: Bug
          Components: deployment
    Affects Versions: 4.5.2
            Reporter: Apache Fan


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, which
is picked up properly according to the logs.

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(
	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(
	at com.bankapp.service.blacklist.BlackListEJB$LocalBeanProxy.addToBlackList(com/bankapp/service/blacklist/
	at com.bankapp.servlet.AddToBlackListServlet.doGet(
	... 19 more

See the attachment for the webapp to reproduce the problem.
The relevant Tomee config files can be found at src/test/resources/tomee.

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:

View raw message