2 Replies Latest reply on Oct 22, 2014 6:58 AM by Aboo salimon

    Wildfly with multiple instance

    Aboo salimon Newbie

      Hello All,


      I would like to create multiple instance for wildfly and i am have done following changes:


      1. i created folder called foo and it just another copy of standalone folder inside wildfly. i will keep standlone folder as golden master copy.


      i.e  standalone is instance 1 AND foo is instance 2 .


      2. i created two file called foo.bat and foo.conf inside bin folder . ( see attachment)


      3.i have changed the port numbers in foo--> standalone.xml ( see attachment)


      now when i start the foo.bat i am getting exception as


      11:46:34,287 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.undertow.listener.default: org.jboss.msc.service.StartException in service jboss.undertow.listener.default: Could not start http listener

        at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:132)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-


      Query 1:


      i am not sure am i going in right direction because no document available in uncle google for this.


      Query 2:




      1. in log i can see this when i start foo.bat (instance 2) JBAS015012: Started FileSystemDeploymentService for directory D:\Test_Multi_inst\wildfly-8.0.0.Final\standalone\deployments


      so where i can change this to D:\Test_Multi_inst\wildfly-8.0.0.Final\foo\deployments


      Can you anyone help me list of place that need to be changed so that it will helpful for all users.

        • 1. Re: Wildfly with multiple instance
          John Whitley Newbie

          You can use the following parameter setting to achieve this:


          basedir = /opt/wildfly/foo/

          Copy standalone*.xml to /opt/wildfly/foo foo.xml

          Change ownership if required


          portoffset=100*n where n is 1 to however many instances you require


          sh -x $jboss/bin/standalone.sh \

          -Djboss.server.base.dir=$basedir -Djboss.socket.binding.port-offset=$portoffset \



          This was derived from a forum response a few years back

          1 of 1 people found this helpful
          • 2. Re: Wildfly with multiple instance
            Aboo salimon Newbie

            Hello John,


            Thanx for prompt reply and i have made starting my foo.conf.bat with this line :


            set "JAVA_OPTS=%JAVA_OPTS%  -Djboss.server.base.dir=D:\Test_Multi_inst\wildfly-8.0.0.Final\foo "


            it was working . if anyone try this with multiple instance please make sure you have reviewed my change in intial attachments.