1 Reply Latest reply on Feb 27, 2008 3:55 PM by asaf sh

    Deploying .EAR files fails with [HDScanner] Scan failed

    Guenther Starnberger Newbie

      Hello,

      I'm currently trying to create some simple template .ear file which I can use as a basis for further applications. Currently the file only contains a JSP page and a SOAP webservice. Ant is used as a make utility.

      In some of the cases deployment of the .ear file works fine. However in other cases I only get an "HDScanner Scan failed" error messages. So deploying the same file sometimes works and sometimes fails.

      I'm using JBoss 5 Beta 4 and the JDK 6U4. This is the output when deploying the file works:

      22:38:08,546 INFO [DefaultEndpointRegistry] register: jboss.ws:context=gtest,endpoint=HelloService
      22:38:08,740 INFO [TomcatDeployment] deploy, ctxPath=/gtest, vfsUrl=gtest.ear/gtest.war
      22:38:10,407 INFO [WSDLFilePublisher] WSDL published to: file:/home/gst/jboss/jboss-5.0.0.Beta4/server/default/data/wsdl/gtest.ear/gtest.war/HelloServiceService51396.wsdl
      


      And thats the output when it fails:

      21:59:33,878 WARN [HDScanner] Scan failed
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(gtest.ear)
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:743)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:280)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:237)
       at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:270)
       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: Error determining structure: gtest.ear
       at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:274)
       at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:65)
       at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:194)
       at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:218)
       at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
       ... 14 more
      Caused by: java.lang.NullPointerException
       at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:155)
       ... 18 more


      Any hints on what could be the cause of this problem? I've uploaded the source to http://virtual.sysfrog.org/~gst/gtest/gtest.zip and the compiled .ear file to http://virtual.sysfrog.org/~gst/gtest/gtest.ear. The strange thing is that the error does not occur in all of the cases.

      bye,
      Guenther