glassfish: while deploying the app IOException: invalid zip file
问题 In deploying the EAR through the CLI, this error occurs: Exception while deploying the app [EnterpriseLegacy] : java.io.IOException: invalid zip file: file:/home/thufir/glassfish-4.1/glassfish/domains/domain1/application /EnterpriseLegacy/lib/RemoteEJB.jar and yet, Netbeans deploys the same EAR fine from within the IDE. I think the problem is that the EJB module depends on a remote interface, RemoteEJB which builds as a JAR. This JAR is included with the EAR, but I don't believe that's