Do this:
1) Add jboss-classloading.xml to /src/main/webapp (I am using Maven):
content:
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0"
domain="$UNIQUE_DOMAIN_NAME"
export-all="NON_EMPTY"
import-all="false"
parent-first="false">
</classloading>
2) Modify $JBOSS_INSTALL_DIRECTORY/jboss-as/server/$PROFILE/conf/bootstrap/deployers.xml, and add the following at the end:
<bean name="IgnoreFilesDeployer"
class="org.jboss.deployers.vfs.spi.deployer.AbstractIgnoreFilesDeployer"
</bean>
3) Create a file JBOSS-IGNORE.TXT in the META-INF folder with following content:
WEB-INF/classes/META-INF/persistence.xml
4) I've renamed my persistence.xml to spring-persistence.xml and added this file in the context.xml as:
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceXmlLocation" value="classpath:/META-INF/spring-persistence.xml"/>
....
</bean>
5) I;ve also modified the spring-persistence.xml (saved persistence_2_0.xsd in webapp\META-INF folder) as
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="file:///persistence_2_0.xsd
http://java.sun.com/xml/ns/persistence">
....
</persistence>