3 Replies Latest reply on Jun 24, 2008 4:00 PM by peterj

    Can I deploy a Folder other than a .WAR type in Windows mc/

    anandh1

      Hi All!

      I have an application which resides outside the JBOSS Server Folder.
      Ideally if i need to deploy the application i might have to move it into the server/default/deploy folder but i want it deployed from outside.

      I got the way out by specifying

       <attribute name="URLs">
       deploy/,
       file:/c:\user-21682\home\application\src\docroot.war
       </attribute>


      In the jboss-service.xml file under the URLDeploymentScanner setting.

      But the issue i am facing is that my folder name has to be docroot rather than a 'docroot.war'
      This is a restriction i would like to keep :-(

      But JBoss requires a .war. How can i get rid of this issue (In Windows)?

      In Unix machine i was able to create a link.
      In Windows i tried something similar using cygwin but it gave FileNotFound exception on the link (file:/c:\user-21682\home\application\src\docroot.war)

      I had linked docroot.war to docroot folder, but under Windows it is Not able to find the file(folder).

      Under Unix this trick works.

      Please Help!

      Thanks!
      Anand.


        • 1. Re: Can I deploy a Folder other than a .WAR type in Windows
          jaikiran

          Last time i had tried this, i used the following syntax:

          <attribute name="URLs">
           deploy/,file:///C:/user-21682/home/application/src/
          </attribute>


          Note that i am specifying the path till the folder (ending with a /) containing my war file.

          • 2. Re: Can I deploy a Folder other than a .WAR type in Windows
            anandh1

             

            "jaikiran" wrote:
            Last time i had tried this, i used the following syntax:
            <attribute name="URLs">
             deploy/,file:///C:/user-21682/home/application/src/
            </attribute>


            Note that i am specifying the path till the folder (ending with a /) containing my war file.


            Neah tried this, I am afraid this causes tmp folder to explode.
            My war is actually a folder docroot and not a .war file.
            If i just specify src/ which has the docroot... it will try to find all .jars inside the WEB-INF/lib of docroot folder and explode them to the server/default/lib directory.



            • 3. Re: Can I deploy a Folder other than a .WAR type in Windows
              peterj

              There is no way to get rid of the .war extension. JBossAS requires the extension so that it knows what kind of app it is so that the app can be deployed correctly. So to deploy to JBossAS, you are stuck with the name docroot.war.