[jboss-jira] [JBoss JIRA] (WFLY-203) add modules for Hibernate versions (3.x, 4.1.x/4.2.x), OpenJPA, EclipseLink which contain the JipiJapa integration jars
Rich DiCroce (JIRA)
jira-events at lists.jboss.org
Mon Jun 17 12:14:21 EDT 2013
[ https://issues.jboss.org/browse/WFLY-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782111#comment-12782111 ]
Rich DiCroce commented on WFLY-203:
-----------------------------------
I just tried this with a WF8 Alpha2 snapshot (build 552 from https://ci.jboss.org/hudson/job/WildFly-latest-master/).
I started with an existing project that works on AS 7.2.0.Final, and made the following modifications:
- Built a new WF configuration file using standalone-full.xml as the starting point. The only changes I made were to define a system property to set the project stage for DeltaSpike and to change some logging output. The ArchiveFactory system property was NOT added.
- Removed the eclipselink.target-server and eclipselink.logging.logger persistence unit properties.
- Removed the EclipseLink integration classes I manually included in the project.
The WAR failed to deploy. The only explanation I got was this not especially helpful error message:
{noformat}
12:03:20,607 INFO [org.jboss.as.jpa] (MSC service thread 1-11) JBAS011401: Read persistence.xml for JSF_Framework_Test_PU
12:03:20,746 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "framework-test-war.war")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"framework-test-war.war#JSF_Framework_Test_PU\" is missing [jboss.deployment.unit.\"framework-test-war.war\".beanmanager]"]}
12:03:20,782 INFO [org.jboss.as.server] (ServerService Thread Pool -- 30) JBAS018559: Deployed "framework-test-war.war" (runtime-name : "framework-test-war.war")
12:03:20,783 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.unit."framework-test-war.war".beanmanager (missing) dependents: [service jboss.persistenceunit."framework-test-war.war#JSF_Framework_Test_PU"]
{noformat}
> add modules for Hibernate versions (3.x, 4.1.x/4.2.x), OpenJPA, EclipseLink which contain the JipiJapa integration jars
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-203
> URL: https://issues.jboss.org/browse/WFLY-203
> Project: WildFly
> Issue Type: Enhancement
> Components: JPA / Hibernate
> Reporter: Craig Ringer
> Assignee: Scott Marlow
> Priority: Minor
> Labels: eclipselink, jpa
> Fix For: 8.0.0.Alpha2
>
>
> For EclipseLink to properly identify the container and set up correct transaction integration, etc, it needs the property "eclipselink.target-server" to be set to "JBoss".
> There's an open issue asking EclipseLink to auto detect the container (https://bugs.eclipse.org/bugs/show_bug.cgi?id=383257) but right now, a simple solution to making EclipseLink work well on AS7 is for AS7 to pass that property to EclipseLink.
> That'll help prevent issues and confusion like this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=365704
> Users can set it as a system property right now as shown on bug 383257, but really it'd be best if JBoss passed it to the persistence unit during creation.
> Time permitting I'll give this a go.
--
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
More information about the jboss-jira
mailing list