You can change your structure to replace class file.
Place ear in exploded format in Jboss_home\server\deploy.
In ear place class files directly.
So your final structure looks like
$JBOSS_HOME
--server
----$profile
------deploy
--------app.ear
----------com
------------a.class
----------app.war
----------META-INF
------------application.xml
Now you can replace the class file(a.class) directly inside app.ear.
Note: Method signature, member variable changes are not reflected.
Make sure your deployment scanner is on.
If you have IDE like eclipse u can also create link of class folder inside app.ear so that you dont have to copy the changed class file manually.