File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

Glassfish v2.1 Deployment of Jar problem

sandeeprajsingh tandon
Ranch Hand

Joined: Mar 06, 2009
Posts: 76
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||_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 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(
at com.sun.enterprise.deployment.backend.EjbModuleDeployer.preDeploy(
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(
Caused by:
at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(
... 9 more
Caused by: C:\Wingas\softwares\glassfish\domains\dev\applications\j2ee-modules\Employees-0.0.1-SNAPSHOT\LICENSE (Access is denied)
at Method)
I agree. Here's the link:
subject: Glassfish v2.1 Deployment of Jar problem
It's not a secret anymore!