[
https://issues.jboss.org/browse/AS7-5063?page=com.atlassian.jira.plugin.s...
]
Scott Marlow commented on AS7-5063:
-----------------------------------
It looks like you have the right class name specified in the META-INF / services /
org.jboss.as.jpa.spi.PersistenceProviderAdaptor
(id.au.ringerc.as7.eclipselinkintegration.EclipseLinkPersistenceProviderAdaptor).
I would check two things:
1. You should have a static module under AS7/modules for the
id.au.ringerc.as7.eclipselinkintegration classes (similar to
as7/modules/org/jboss/as/jpa/hibernate/4/ for Hibernate 4 integration classes.
2. That the EclipseLink module (under as7/modules) contains a dependency on the
eclipselinkintegration integration classes module (from #1 above). See
as7/modules/org/hibernate/main/modules.xml to see how the Hibernate 4 module depends on
the integration module.
If its still not working, attach a server.log with TRACE enabled for org.jboss.as.jpa.
In case its helpful as another example for your efforts, I started hacking together a
DataNucleus persistence provider integration module
[
here|https://github.com/scottmarlow/jboss-as/tree/datanucleus_capedwarf_2]. A few more
changes are needed (need to remove build dependencies on DataNucleus).
AS7 should pass the property "eclipselink.target-server =
JBoss" to persistence providers, or at least EclipseLink
------------------------------------------------------------------------------------------------------------------
Key: AS7-5063
URL:
https://issues.jboss.org/browse/AS7-5063
Project: Application Server 7
Issue Type: Enhancement
Components: JPA / Hibernate
Affects Versions: 7.1.1.Final
Reporter: Craig Ringer
Assignee: Scott Marlow
Priority: Minor
Labels: eclipselink, jpa
Fix For: 7.2.0.Alpha1
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:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira