]
Scott Marlow updated AS7-2046:
------------------------------
Fix Version/s: 7.1.0.Beta1
Git Pull Request:
org.jboss.as.jpa.processor.PersistenceProviderProcessor does not
handle multiple persistence providers
------------------------------------------------------------------------------------------------------
Key: AS7-2046
URL:
https://issues.jboss.org/browse/AS7-2046
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 7.0.2.Final
Reporter: Hardy Ferentschik
Assignee: Scott Marlow
Fix For: 7.1.0.Beta1
When more then one persistence provider is found in an application an exception is thrown
even if _persistence.xml_ explicitly specifies the provider to be used:
{code}
// collect list of persistence providers packaged with the application
final List<String> providerNames =
servicesAttachment.getServiceImplementations(PersistenceProvider.class.getName());
if (providerNames.size() > 1) { // TODO: support more than one
provider to be packaged, which requires
// knowing which adapter belongs with it.
throw MESSAGES.onlyOnePersistenceProviderAllowed(providerNames);
}
{code}
The solution could be to attach the of persistence provider classes and integration
adaptors classes to _PersistenceProviderDeploymentHolder_
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: