4 Replies Latest reply on Aug 24, 2007 12:03 PM by peterj

    deploy a war file with Jboss to a permanent location

    mazarj

      hey, can anyone plz tell me how to deploy with jboss a war file in a permanent location coz i need to run my applicaton's own configurator;
      I'm using j2eesdk-1_4_03 and jboss4.0.0
      waiting for ur help as soon as possible
      thanks in advance

        • 1. Re: deploy a war file with Jboss to a permanent location
          peterj

          Look at the URLs attribute in the mbean at the end of server/default/conf/jboss-service.xml

          • 2. Re: deploy a war file with Jboss to a permanent location
            mazarj

            heyyy, thanks for helping
            I'm a little bit lost
            can u please help mewhat should I do?
            (my application is sabswing.war)
            I have this at the end of server/default/conf/jboss-service.xml

            <!-- URLs are comma separated and resolve relative to the server home URL
            unless the given path is absolute. If the URL ends in "/" it is
            considered a collection and scanned, otherwise it is simply deployed;
            this follows RFC2518 convention and allows discrimination between
            collections and directories that are simply unpacked archives.

            URLs may be local (file:) or remote (http:). Scanning is supported
            for remote URLs but unpacked deployment units are not.

            Example URLs:
            deploy/
            scans ${jboss.server.url}/deploy/, which is local or remote
            depending on the URL used to boot the server
            ${jboss.server.home}/deploy/
            scans ${jboss.server.home)/deploy, which is always local
            file:/var/opt/myapp.ear
            deploy myapp.ear from a local location
            file:/var/opt/apps/
            scans the specified directory
            http://www.test.com/netboot/myapp.ear
            deploys myapp.ear from a remote location
            http://www.test.com/netboot/apps/
            scans the specified WebDAV location
            -->

            deploy/


            <!-- Indicates if the scanner should recursively scan directories that
            contain no "." in their names. This can be used to group applications
            and services that must be deployed and that have the same
            logical function in the same directory i.e.
            deploy/JMX/
            deploy/JMS/
            ...
            -->

            True



            I need ur help
            thanks in advance

            • 3. Re: deploy a war file with Jboss to a permanent location
              mazarj

              file:/var/opt/myapp.ear
              deploy myapp.ear from a local location
              file:/var/opt/apps/
              scans the specified directory
              http://www.test.com/netboot/myapp.ear
              deploys myapp.ear from a remote location
              http://www.test.com/netboot/apps/
              scans the specified WebDAV location
              -->

              deploy/


              <!-- Indicates if the scanner should recursively scan directories that
              contain no "." in their names. This can be used to group applications
              and services that must be deployed and that have the same
              logical function in the same directory i.e.
              deploy/JMX/
              deploy/JMS/
              ...
              -->

              I need ur help
              thanks in advance

              • 4. Re: deploy a war file with Jboss to a permanent location
                peterj

                Please, when posting XML content, enclose it within [ code ]...[ /code ] brackets (without the spaces). Otherwise the browser interprets the XML as HTML and really screws up the output!

                I am not sure I can add to that the comments for URLs already says, but I will try.

                Let's say that you always build your war file at /home/foo/apps/sabswing.war

                Then change URLs to be:

                <attribute name="URLs">
                 deploy/,file:/home/foo/apps/
                 </attribute>


                You never said which OS you are running so I assumed Linux.