diff --git a/src/main/webapp/WEB-INF/applicationContext-jpa.xml b/src/main/webapp/WEB-INF/applicationContext-jpa.xml index 080351116d754ae40aadea83a520a59ab335a92d..01ebfa01cb754bb6d574741e4d2f9ca92aa09dad 100644 --- a/src/main/webapp/WEB-INF/applicationContext-jpa.xml +++ b/src/main/webapp/WEB-INF/applicationContext-jpa.xml @@ -42,6 +42,7 @@ p:database="${jpa.database}" p:showSql="${jpa.showSql}"/> --> </property> + <property name="persistenceXmlLocation" value="classpath:META-INF/jpa-persistence.xml"/> </bean> <!-- Transaction manager for a single JPA EntityManagerFactory (alternative to JTA) --> @@ -62,8 +63,10 @@ <!-- Instruct Spring to perform declarative transaction management automatically on annotated classes. + + for mode="aspectj"/ see SPR-6392 --> - <tx:annotation-driven mode="aspectj"/> + <tx:annotation-driven/> <!-- Simply defining this bean will cause requests to owner names to be saved. diff --git a/src/main/webapp/WEB-INF/classes/META-INF/persistence.xml b/src/main/webapp/WEB-INF/classes/META-INF/jpa-persistence.xml similarity index 100% rename from src/main/webapp/WEB-INF/classes/META-INF/persistence.xml rename to src/main/webapp/WEB-INF/classes/META-INF/jpa-persistence.xml