File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Glassfish v2.1 Deployment of Jar problem

 
sandeeprajsingh tandon
Ranch Hand
Posts: 79
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic