[jboss-jira] [JBoss JIRA] (AS7-2046) org.jboss.as.jpa.processor.PersistenceProviderProcessor does not handle multiple persistence providers
Scott Marlow (Updated) (JIRA)
jira-events at lists.jboss.org
Wed Nov 2 08:39:46 EDT 2011
[ https://issues.jboss.org/browse/AS7-2046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Marlow updated AS7-2046:
------------------------------
Fix Version/s: 7.1.0.Beta1
Git Pull Request: https://github.com/jbossas/jboss-as/pull/522 (was: https://github.com/jbossas/jboss-as/pull/522)
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list