3 Replies Latest reply on Jun 23, 2010 10:01 AM by dan.j.allen

    Deployment not found in test.war

    cosminmartinconi

      Hi,

       

      I have a small issue while working with Arquillian. Let's take for instance the RandomTestCase example you provided in the trunk, while running the test either from an IDE or from cmd, I get the folowing error:

       

      2010-06-21 18:57:35,110 WARN  [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (HDScanner) Failed to add deployment: vfs:///D:/GSoCWorkspace/jboss-as-distribution/jboss-6.0.0.20100429-M3/server/default/deploy/test.war: org.jboss.deployers.spi.DeploymentException: Failed to mount archive: "/D:/GSoCWorkspace/jboss-as-distribution/jboss-6.0.0.20100429-M3/server/default/deploy/test.war"
          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.Alpha4]
          at org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.mountArchive(AbstractVFSArchiveStructureDeployer.java:132) [:2.2.0.Alpha4]
          at org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.determineStructure(AbstractVFSArchiveStructureDeployer.java:55) [:2.2.0.Alpha4]
          at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73) [:2.2.0.Alpha4]
          at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:197) [:2.2.0.Alpha4]
          at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:222) [:2.2.0.Alpha4]
          at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77) [:2.2.0.Alpha4]
          at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1106) [:2.2.0.Alpha4]
          at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:417) [:2.2.0.Alpha4]
          at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:367) [:2.2.0.Alpha4]
          at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:277) [:2.2.0.Alpha4]
          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86) [:6.0.0.20100429-M3]
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:385) [:6.0.0.20100429-M3]
          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294) [:6.0.0.20100429-M3]
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_20]
          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_20]
          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_20]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_20]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_20]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_20]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
          at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
      Caused by: java.util.zip.ZipException: error in opening zip file
          at java.util.zip.ZipFile.open(Native Method) [:1.6.0_20]
          at java.util.zip.ZipFile.<init>(ZipFile.java:114) [:1.6.0_20]

       

       

       

      I had Arquillian working, it just happend suddently. I tried a fresh new copy of JBoss and new SVN checkouts of Arquillian examples but it does not seem to work. I'm out of ideas ... but it could be just something obvious that I'm missing ... if you guys have any idea about what could be the cause of this, or some pointers on what should be checked to get rid of this problem, I would greatly appreciate it.

       

      Thanks in advance,

      Cosmin

        • 1. Re: Deployment not found in test.war
          cosminmartinconi

          Hi,

           

          I found a workaround for the issue, it seems the JBoss server was the problem I was using 6.0.0.M3 but I tried the 6.0.0.M2 version and it works fine. So I assume it's a JBoss server bug or something.

           

          Cheers,

          Cosmin

          • 2. Re: Deployment not found in test.war
            aslak

            There is a issue with M3 around opening a Zip, but that is related to jsf and web-fragments/faces-config in library jars I believe. The examples work in M3.

            • 3. Re: Deployment not found in test.war
              dan.j.allen

              My feeling is that you should just stay away from JBoss AS 6.0.0.M3. It just has too many issues. I recommend either using a snapshot, M4 (when it's ready) or go back to M2. The snapshots are working quite nicely. Sorry that you got stuck with M3. Keep hope alive

               

              I'd like to point out that Arquillian has proven to be very effective in uncovering compliance issues and our feedback has already helped make JBoss AS more compliant and reliable. So it should give you the same benefits for whatever technology you are using Arquillian to test