4 Replies Latest reply on Jul 3, 2003 4:52 AM by sysuser1

    want to Deploy a ear in any folder other than default

    sysuser1

      How can i deploy an ear in folder other than JBoss's default
      deployment folder. (JBOSS_home\server\default\deploy) i want to deploy it in c:\Myfolder. i copied all the content of JBoss\default folder into myfolder & then gave the command run -c c:\myfolder
      but server on this command is giving error.
      (i'm using Jboss-tomcat.3.2)
      Please help me how can i do this.

        • 1. Re: want to Deploy a ear in any folder other than default
          jonlee

          If you want to add deployment directories, you need to change the URLs attribute in the MBean for org.jboss.deployment.scanner.URLDeploymentScanner found in server/instance/conf/jboss-service.xml of your JBoss distribution where instance is the JBoss instance you are running. It is normally default. The attribute setting is currently set for scanning just the deploy directory of the instance.
          e.g.

          deploy/


          Read the information in the xml on acceptable formats.

          The command you have given (in your posting) specifies the JBoss instance. Therefore your instance "c:\myfolder" is not a valid instance.

          Normally valid instances are:

          run -c default
          run -c all
          run -c minimal

          "run" is the equivalent to "run -c default".

          • 2. Re: want to Deploy a ear in any folder other than default
            sysuser1

            can u please give some example as to how to
            write url in jboss-service.xml.
            As i'm new to this.
            this wud be of gr8 help to me

            Thanks

            • 3. Re: want to Deploy a ear in any folder other than default
              jonlee

              As per the description, the URLs are comma-delimited and an ending slash specifies a scan of the entire specified URL space, so for your original requirement for c:\myFolder, assuming JBoss is also installed on c:\


              deploy/,file:/myFolder


              You probably don't want to stop scanning the original deploy directory that holds much of the JBoss services - such as the servlet container (Jetty or Tomcat), the message queue services and so on.

              • 4. Re: want to Deploy a ear in any folder other than default
                sysuser1

                i did the same but cannot deploy the ejb from c:\check.
                my task is to deploy a ejb from a folder other than /server/default/deploy directory which can c:\myfolder\myejb.ear