i m recently deploying my projects in jboss7 i m also getting same error.
In jboss7 eveything should be added in ear module, so if we want to add external jar just create one lib folder in ear projects and in application.xml add
<module>
<java>commons-codec-1.5.jar</java>
</module>