1 Reply Latest reply on Dec 11, 2008 1:57 AM by jaikiran pai

    org.jboss.deployers.spi.DeploymentException: Error determini

    karuna nidhi Newbie

      Hi All,

      I have JBoss 5.0.0CR2 running on my windows m/c.
      Build war using NetBeans Ide and deployed it on jboss/default server.

      Can any one give me suggestion what went wrong?



      10:38:56,383 WARN [HDScanner] Scan failed
      org.jboss.deployers.spi.DeploymentException: Error determining structure: Logger.war
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:87)
      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:845)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:303)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:260)
      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:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: Failed to read zip file: org.jboss.virtual.plugins.context.zip.ZipFileWrapper@1230afa - D:\jboss\jboss-5.0.0.CR2\server\default\deploy\Logger.war
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:491)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:619)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:663)
      at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:174)
      at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:537)
      at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:154)
      at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:106)
      at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:451)
      at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
      ... 18 more
      Caused by: java.io.FileNotFoundException: D:\jboss\jboss-5.0.0.CR2\server\default\deploy\Logger.war (The process cannot access the file because it is being used by another process)
      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:393)
      at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:486)
      ... 26 more

        • 1. Re: org.jboss.deployers.spi.DeploymentException: Error deter
          jaikiran pai Master

           

          Caused by: java.io.FileNotFoundException: D:\jboss\jboss-5.0.0.CR2\server\default\deploy\Logger.war (The process cannot access the file because it is being used by another process)


          As the message says, looks like the file is being used by some other process. Do you know which other process is using it? If yes, then kill the other process and restart JBoss

          An FYI - JBoss AS5 GA version has been released, so you might want to move to that.