1 of 1 people found this helpful
Have you tried updating as7/standalone/configuration/standalone.xml to remove the jpa subsystem? Look for the following lines:
I don't like this solution as applications that use EE container managed JPA will not work but it might be something for you to try.
Thanks for the response Scott... I started going in the direction you suggested and made some progress. But I agree that changing the application server configuration to address this didn't sound good.
In the end, I changed the "persistence.xml" to "spring-persistence.xml" and configured the "MergingPersistenceUnitManager" to look for META-INF/spring-persistence.xml (instead of META-INF/persistence.xml) through the "persistenceXmlLocations" property. Since JBoss looks for META-INF/persistence.xml, it didn't load it.