I think you'll have to remove the class-loading element from jboss-web.xml
This issue is addressed here:
https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7
under section "Create or modify files that control class loading in AS7"
I hope this helps