*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EAR deplyment error in glassfish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EAR deplyment error in glassfish" Watch "EAR deplyment error in glassfish" New topic
Author

EAR deplyment error in glassfish

bhaskaritp naidu
Ranch Hand

Joined: May 21, 2007
Posts: 45
Hi ,

I wrote one sample ejb program.

while i am deploying ear , i am geting this exception.

Please give me suggestion , how to resolve this.

I am using glasfish

[#|2010-04-24T14:59:06.887+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Thread-27;_RequestID=1528b18f-ff85-4975-b3ce-50ce45395211;|Could not expand entry null into destination C:\glassfish\domains\domain1\applications\j2ee-apps\StatelessSessionProjectEAR\StatelessSessionProject_jar
java.io.IOException: Error expanding archive C:\glassfish\domains\domain1\applications\j2ee-apps\StatelessSessionProjectEAR\StatelessSessionProject.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.J2EEModuleExploder.explodeEar(J2EEModuleExploder.java:283)
at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:323)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:182)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129)
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.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:298)
... 11 more
|#]

[#|2010-04-24T14:59:06.934+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=13;_ThreadName=Thread-27;_RequestID=1528b18f-ff85-4975-b3ce-50ce45395211;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error expanding archive C:\glassfish\domains\domain1\applications\j2ee-apps\StatelessSessionProjectEAR\StatelessSessionProject.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.J2EEModuleExploder.explodeEar(J2EEModuleExploder.java:283)
at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:323)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:182)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:129)
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)
|#]



Thanks
Bhaskar
Hany Shafik
Ranch Hand

Joined: Jun 21, 2008
Posts: 80
Not sure, but I guess your file is corrupted try opening it using Winrar or any like tools. You may use the jar command packaged in the java installation.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EAR deplyment error in glassfish
 
Similar Threads
Error deploying EJB Model
Sun One Application Server 8.2 - error on deployment
Glassfish Deployment Problem
Issue while deploying web service jwstutorial example CLI171
Glassfish v2.1 Deployment of Jar problem