error Caused by: java.util.zip.ZipException:

aprendiza
14 de Septiembre del 2009
Hola, he comprimido una aplicación .war en un archivo .rar y he intentado desplegarla en el servidor jboss, pero me dá el siguiente error:

"08:54:41,143 ERROR [ProfileDeployAction] Failed to add deployment:

PruebaOsiris.war.rar
org.jboss.deployers.spi.DeploymentException: Error determining structure:

PruebaOsiris.war.rar
at

org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(Depl

oymentExcept
ion.java:49)
at

org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determin

eStructure(D
eclaredStructure.java:89)
at

org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineS

tructure(Str
uctureDeployerWrapper.java:73)
at

org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDeterm

ineStructure
(VFSStructuralDeployersImpl.java:196)
at

org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determin

eStructure(V
FSStructuralDeployersImpl.java:221)
at

org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determi

neStructure(
AbstractStructuralDeployers.java:77)
at

org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDepl

oyerImpl.jav
a:1004)
at

org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(

MainDeployer
Impl.java:440)
at

org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerI

mpl.java:390
)
at

org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerI

mpl.java:300
)
at

org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDepl

oyment(MainD
eployerAdapter.java:86)
at

org.jboss.system.server.profileservice.repository.ProfileDeployAction.install

(ProfileDepl
oyAction.java:61)
at

org.jboss.system.server.profileservice.repository.AbstractProfileAction.insta

ll(AbstractP
rofileAction.java:53)
at

org.jboss.system.server.profileservice.repository.AbstractProfileService.inst

all(Abstract
ProfileService.java:361)
at

org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractContro

llerContext.
java:348)
at

org.jboss.dependency.plugins.AbstractController.install(AbstractController.ja

va:1631)
at

org.jboss.dependency.plugins.AbstractController.incrementState(AbstractContro

ller.java:93
4)
at

org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractContr

oller.java:1
082)
at

org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractContr

oller.java:9
84)
at

org.jboss.dependency.plugins.AbstractController.change(AbstractController.jav

a:822)
at

org.jboss.dependency.plugins.AbstractController.change(AbstractController.jav

a:553)
at

org.jboss.system.server.profileservice.repository.AbstractProfileService.acti

vateProfile(
AbstractProfileService.java:306)
at

org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileS

erviceBootst
rap.java:271)
at

org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in

opening zip file
at

org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesIn

itException(
AbstractExceptionHandler.java:39)
at

org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntr

iesInitExcep
tion(NamesExceptionHandler.java:63)
at

org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryC

ontext.java:
626)
at

org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntr

yContext.jav
a:773)
at

org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContex

t.java:817)
at

org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipE

ntryHandler.
java:191)
at

org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindCh

ild(Abstract
VirtualFileHandler.java:684)
at

org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandle

r.java:165)
at

org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandle

r.java:107)
at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
at

org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determin

eStructure(D
eclaredStructure.java:64)
... 25 more
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:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at

org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWra

pper.java:17
5)
at

org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.j

ava:245)
at

org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryCon

text.java:48
4)
at

org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryC

ontext.java:
619)
... 33 more"

No abre el archivo, ¿puede decirme alguien cual es el problema? Muchas gracias, un saludo

Damian
14 de Septiembre del 2009
Me pasa exactamente lo mismo ! Has podido resolver el problema ?
Muchas gracias