2 Replies Latest reply on Feb 19, 2007 12:14 PM by peterj

    CAnnot deploy exploded war

    dplass

      I'm running a Tomcat-only install of JBoss 4.0.5GA.
      I cannot deploy an exploded war. I always get "Exception fixing docBase: {0}
      java.util.zip.ZipException: The system cannot find the path specified"
      even with a (nearly) empty war directory - it still gives this message. There are only 3 files: a simple html file (.jsp), WEB-INF/web.xml and WEB-INF/jboss-web.xml.

      Any clues?!

        • 1. Re: CAnnot deploy exploded war

          I have a same problem. My exploded war resides outside jboss's deploy directory and is linked to be deployed in jboss-service.xml

          <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
           name="jboss.deployment:type=DeploymentScanner,flavor=URL">
          
          ...
           <attribute name="URLs">
           deploy/,file:/ws/default/SCB_US/Engineering/selenium-test.war
           </attribute>


          I have tried also to put / character at the end (.../selenium-test.war/). Exception disappeared, but war was not deployed.

          • 2. Re: CAnnot deploy exploded war
            peterj

            mailinator, you should have created a new post, not appended to an existing one.

            But to answer your question, set URLs to:

            deploy/,file:/ws/default/SCB_US/Engineering/

            The key is that any URLs entry ending in '/' is trated as a direcotry and that directory is scanned for things to deploy (both files and exploded directories). Anything that does not end in a '/' must be a file, which means that the war would have to be packaged.