1 Reply Latest reply on Jun 1, 2012 7:16 AM by Robin Macharg

    How do I debug "ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata" exception?

    Bill Murphy Newbie

      I am trying test with a Tomcat Managed Container implementation.

       

      I am creating a war with ShrinkWrap out of a war file for a working web app.

       

      @Deployment

      public static WebArchive createDeployment() throws Archive(ImportException, IllegalArgumentException, ZipException, IOException {

             WebArchive war = ShrinkWrap.createFromZipFile(WebArchive.class,new File("C:"+File.separator+"viewer-web.war"));

             System.out.println(war.toString(true));

             return war;

      }

       

      I understand from other discussions that the exception signifies ...tomcat.ProtocolMetadataParser is unable to decipher the metadata during deploy.

       

      How should the metadata look? What files should I look at in the newly created war?  Unfortunately my test war file is removed from deploy area when the test completes.  Is there a way to stop the war from being undeployed when the test ends, or write out WebArchive to a backup file?

       

       

      Thanks,

      Bill