JPA table generation fails on JTA datasources
---------------------------------------------
Key: GERONIMO-5451
URL: https://issues.apache.org/jira/browse/GERONIMO-5451
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Affects Versions: 2.1.6, 2.1.5
Environment: Vista using current Java 1.6 and embedded Derby
Reporter: Knut-HÃ¥vard Aksnes
I am calling a number of JPA beans from a local Web service implemented via
JAX-WS annotations and Stateless Session Bean.
Table creation fails due to some operations during table creation being run
outside a transaction context.
Workaround:
First set up the Database Pool and persistence.xml to use a Local(Non JTA)
setup. Table creation will succeed, but the rest of my code will fail.
Then uninstalling my EAR and removing the DBPool, but keeping the Local Derby
database.
Then creating new JTA enabled DB pool for the same underlaying database, fixing
the persistence.xml, rebuild the EAR, and reinstall.
As this has to be done everytime OpenJPA needs to update tables this is a major
hassle during development.
If the workaround hadn't required so much work this would have been a minor bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.