In deploying the EAR through the CLI, this error occurs:
Exception while deploying the app [EnterpriseLegacy] : java.io.IOException: invalid zip file: file:/home
I had this problem right now and it was being caused by a wrong JDBC resource name. Once I fixed this in persistence.xml the .ear deployed successfully.