[jboss-user] [Installation, Configuration & DEPLOYMENT] - Can't deploy a struts2 application

JRookie_2402 do-not-reply at jboss.com
Thu Jun 11 10:12:54 EDT 2009


Hi all,
I try to deploy a struts2 example on jboss5.0 for quite a while and I can't find the error.
When I start jboss everything is fine unless I drop strus2inaction.war to the deploy directory. Please see below the error I got. I thought it looks like having a corrupt war file, but I checked it and it is free from errors.

The main error message (see listing below) seems to be:
Der Prozess kann nicht auf die Datei zugreifen, da sie von einem
      anderen Prozess verwendet wird
which means: The process can't access the file, as it is used by another process.
Before this there is a warning HD scanner failed. What can I do ?? Is it the inner structure of the war file? Does anyone knows anything??
Thanks in advance for any help
JRookie


  |       19:42:14,171 INFO [TomcatDeployment] deploy, ctxPath=/example2, vfsUrl=example2.ear/example2.war
  |       19:42:14,640 INFO [TomcatDeployment] deploy, ctxPath=/example3, vfsUrl=example3.ear/example3.war
  |       19:42:14,906 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
  |       19:42:14,953 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
  |       19:42:14,968 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 1m:17s:547ms
  |       19:48:38,343 WARN [HDScanner] Scan failed
  |       org.jboss.deployers.spi.DeploymentException: Error determining structure: Struts2InAction.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:853)
  |       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 at 1d7bd99 - F:\Entwicklung\JBoss_5.0\jboss-5.0.0.GA\server\default\deploy\
  |       truts2InAction.war
  |       at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:563)
  |       at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:693)
  |       at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:737)
  |       at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:175)
  |       at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:542)
  |       at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:155)
  |       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: F:\Entwicklung\JBoss_5.0\jboss-5.0.0.GA\server\default\deploy\Struts2InAction.war (Der Prozess kann nicht auf die Datei zugreifen, da sie von einem
  |       anderen Prozess verwendet wird)
  |       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:461)
  |       at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:554)
  |       ... 26 more
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237036#4237036

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237036



More information about the jboss-user mailing list