users@glassfish.java.net

Re: "Cannot write to an JAR archive open for reading" Exception?

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Mon, 26 Mar 2007 16:48:37 -0400

Hi, Edek
   It's hard to tell from the stack trace. Is there anything more in the
server.log which is related to this?
   Do you see this problem consistently when you tried to deploy your
archive or only intermittently? Is it possible you could share your
application or provide a small test case for us to look into this?
 
   Thanks,

- Hong

glassfish_at_javadesktop.org wrote:

>Hello,
>
>my EAR passed all verifier tests, but during deployment I get this exception.
>Does anyone have a clue what is wrong?
>
>This is AS 9.1 b33e-beta, on Linux, jdk 1.6.0
>
>[#|2007-03-26T22:25:17.146+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=33;_ThreadName=Thread-121;_RequestID=e5e13cb4-9b3f-4bc3-808b-c6b5b877ce65;|Exception occured in J2EEC Phase
>com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- Failed to save deployment descriptor for: XXXX
>cause: Cannot write to an JAR archive open for reading
> at com.sun.enterprise.instance.BaseManager.saveAppDescriptor(BaseManager.java:737)
> at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:285)
> at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:214)
> at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:299)
> at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:220)
> at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:132)
> at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:174)
> at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:892)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:761)
> at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
> at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
>|#]
>
>Thanks,
>Edek
>[Message sent by forum member 'edek234' (edek234)]
>
>http://forums.java.net/jive/thread.jspa?messageID=209937
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>