Yes, make sure the directory has the original extension.
Could u tell me what do u mean by maintain the original extension?
Please bear with me as i am new to JBoss.
If you are creating a war file, make the name of the directory as "test.war" and put ur exploded format within that.
Same for ear (Example: test.ear) and put the ear contents within that directory