I've been getting this intermittent error, "Could not expand entry META-INF\MANIFEST.MF into destination", when deploying simple EJB Module projects to GlassFish. I can browse to the location and extract the file just fine. I've tried moving my tmp directory to different locations and partitions, thinking maybe it had something to do with my disk, but no luck. I'm running with JDK6. I've tried JDK5 with the same results. It's very frustrating (especially when showing GlassFish to a crowd). Any ideas? Below is the relevant portion of the error log:
[#|2007-03-12T17:08:55.546+0000|INFO|sun-appserver-pe9.0|javax.enterprise.system.core.classloading|_ThreadID=11;_ThreadName=httpWorkerThread-4848-0;HelloEJBWS;|LDR5010: All ejb(s) of [HelloEJBWS] loaded successfully!|#]
[#|2007-03-12T17:12:09.718+0000|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=11;_ThreadName=httpWorkerThread-4848-0;HelloEJBWS;|CORE5024: EJB module [HelloEJBWS] unloaded successfully!|#]
[#|2007-03-12T17:12:10.000+0000|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=13;_ThreadName=httpWorkerThread-4848-1;D:\tmp\s1astempdomain1server-867388250\HelloEJBWS.jar;|ADM1064:The upload file at [D:\tmp\s1astempdomain1server-867388250\HelloEJBWS.jar] exists and will be overwritten.|#]
[#|2007-03-12T17:12:10.000+0000|INFO|sun-appserver-pe9.0|javax.enterprise.system.tools.admin|_ThreadID=13;_ThreadName=httpWorkerThread-4848-1;D:\tmp\s1astempdomain1server-867388250\HelloEJBWS.jar;|ADM1006:Uploading the file to:[D:\tmp\s1astempdomain1server-867388250\HelloEJBWS.jar]|#]
[#|2007-03-12T17:12:10.046+0000|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=16;_ThreadName=Thread-34;_RequestID=c160a0b8-b5f4-412e-82b6-d341afab8593;|Could not expand entry META-INF\MANIFEST.MF into destination D:\Sun\AppServer\domains\domain1\applications\j2ee-modules\HelloEJBWS
java.io.IOException: Error expanding archive D:\tmp\s1astempdomain1server-867388250\HelloEJBWS.jar; please see the server log file for more information
at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:346)
at com.sun.enterprise.deployment.backend.EjbModuleDeployer.preDeploy(EjbModuleDeployer.java:121)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:152)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
Caused by: java.io.FileNotFoundException: D:\Sun\AppServer\domains\domain1\applications\j2ee-modules\HelloEJBWS\META-INF\MANIFEST.MF (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:318)
... 9 more
|#]
[#|2007-03-12T17:12:10.046+0000|WARNING|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=16;_ThreadName=Thread-34;_RequestID=c160a0b8-b5f4-412e-82b6-d341afab8593;|Can't delete module Directory -- it isn't a directory: D:\Sun\AppServer\domains\domain1\applications\j2ee-modules\HelloEJBWS|#]
[#|2007-03-12T17:12:10.046+0000|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=16;_ThreadName=Thread-34;_RequestID=c160a0b8-b5f4-412e-82b6-d341afab8593;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: java.io.IOException: Error expanding archive D:\tmp\s1astempdomain1server-867388250\HelloEJBWS.jar; please see the server log file for more information -- Error expanding archive D:\tmp\s1astempdomain1server-867388250\HelloEJBWS.jar; please see the server log file for more information
at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:346)
at com.sun.enterprise.deployment.backend.EjbModuleDeployer.preDeploy(EjbModuleDeployer.java:121)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:152)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
|#]
[Message sent by forum member 'bleonard' (bleonard)]
http://forums.java.net/jive/thread.jspa?messageID=207466