3 Replies Latest reply on Sep 4, 2009 11:13 AM by peterj

    war file Deployment Exception in JBOSS. Please help !

    kunal99

      Hi everyone,
      I am trying to deploy my already running Tomcat Server application in JBOSS AS through NetBeans IDE.
      Please help me.

      I am getting the following exception. I will be very glad if you can help me to run my application successfully on JBOSS AS.

      Thanks & regards,
      Kunal


      10:41:56,953 WARN [HDScanner] Scan failed
      org.jboss.deployers.spi.DeploymentException: Error determining structure: [project-name].war
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:89)
      at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1000)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:267)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      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.handleZipEntriesInitException(AbstractExceptionHandler.java:39)
      at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:610)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:757)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:801)
      at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)
      at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:681)
      at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
      at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
      at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
      at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
      ... 19 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.(ZipFile.java:114)
      at java.util.zip.ZipFile.(ZipFile.java:131)
      at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)

      at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:470)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:603)
      ... 27 more

        • 1. Re: war file Deployment Exception in JBOSS. Please help !
          kunal99

          *bounce*
          plz help guys.

          • 2. Re: war file Deployment Exception in JBOSS. Please help !
            wolfgangknauf

            Hi,

            did you verify that your archive file is definitively not broken? Maybe there is some deployment descriptor which points to an invalid module file?

            By the way: give the community more reply time than just an hour before you start bouncing your post.

            Best regards

            Wolfgang

            • 3. Re: war file Deployment Exception in JBOSS. Please help !
              peterj

              I have often seen zip file errors if you have a very large archive file and the hot deployer runs before the archive file is fully copied over. I don't use NetBeans so I don't know how it coordinates deployment with the app server. In Eclipse, one mechanism used is that it places the archive file in a temporary location and calls the deployer MBean to deploy the archive, thus avoiding the issue I described.

              You might try manually moving the archive file into the deploy directory. If you still get the same error, then Wolfgang's assumption could be true and you will need figure out what is wrong with your archive.