This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes Glassfish v2.1 Deployment of Jar problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Glassfish v2.1 Deployment of Jar problem" Watch "Glassfish v2.1 Deployment of Jar problem" New topic
Author

Glassfish v2.1 Deployment of Jar problem

sandeeprajsingh tandon
Ranch Hand

Joined: Mar 06, 2009
Posts: 70
Hi,
I have an employees.jar which has hibernate and other dependencies marked compile scoped in its pom.xml
When i deploy employees.jar it throws various classnotfound exceptions for the dependencies.
I then decided to use, the maven shaded plugin for packaging which successfully embedded all my dependencies in the employees.jar

However, no matter what i do, There is always the below error which stops me to deploy my jar as an ejb module in Glassfish v2.1
Exception is
[#|2010-08-03T16:29:42.854+0530|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_ThreadName=Thread-1125;_RequestID=fc40c7e3-2adf-4a7c-852a-6d623ea5ed52;|Could not expand entry LICENSE into destination C:\Wingas\softwares\glassfish\domains\dev\applications\j2ee-modules\Employees-0.0.1-SNAPSHOT
java.io.IOException: Error expanding archive C:\Documents and Settings\a161661\Local Settings\Temp\Employees-04212.0.1-SNAPSHOT.jar; please see the server log file for more information
at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:359)
at com.sun.enterprise.deployment.backend.EjbModuleDeployer.preDeploy(EjbModuleDeployer.java:124)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:174)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
Caused by: java.io.IOException
at com.sun.enterprise.util.io.FileUtils.openFileOutputStream(FileUtils.java:760)
at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:331)
... 9 more
Caused by: java.io.FileNotFoundException: C:\Wingas\softwares\glassfish\domains\dev\applications\j2ee-modules\Employees-0.0.1-SNAPSHOT\LICENSE (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.util.io.FileUtils$FileOutputStreamWork.run(FileUtils.java:1623)
at com.sun.enterprise.util.io.FileUtils.doWithRetry(FileUtils.java:798)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Glassfish v2.1 Deployment of Jar problem
 
Similar Threads
Sun One Application Server 8.2 - error on deployment
Glassfish Deployment Problem
Issue while deploying web service jwstutorial example CLI171
EAR deplyment error in glassfish
Deploying application in domain failed