Can you check if by any chance are you placing any "yyyy.war/WEB-INF/jboss-deployment-structure.xml" inside your WAR?
In case of EAR that file is expected to be placed inside the xxxx.ear/META-INF else it is ignored.
I did try that, but same result. Is there a way to give dependencies from WAR to EAR in deployment structure?
This is how it looks when moved to EAR
<?xml version="1.0" encoding="UTF-8"?>
<module name="com.oracle.ojdbc6-EJ" services="export" />
But error is coming when it starts deploying the war inside the ear and looking for spring ContextLoaderListener.