Thanks jai ,
Surely this was a mistake. I corrected it as per you said but still this is giving me the same error, so I changed this file to :
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <class-loading java2ClassLoadingCompliance="false"> <loader-repository> org.myapp:loader=myproject-webapp-1.0-SNAPSHOT.war <loader-repository-config>java2ParentDelegation=false</loader-repository-config> </loader-repository> </class-loading> </jboss-web>