3 Replies Latest reply on Jun 3, 2005 4:49 AM by Darran Lofthouse

    Running multiple Jboss on one machine

    Bernhard Seiler Newbie

      Hi there!

      We are trying to install a second JBoss (not an instance, a full Server) for test-reasons on one AIX machine.

      JBoss-3.2.6 is running fine.

      After installing the JBoss-4.0.5 in a seperate directory, changing several ports, the logfile reads after starting with following error:

      16:00:34,358 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      16:00:34,662 INFO [WebService] Using RMI server codebase: http://xXxXxX:18083/
      16:00:35,593 INFO [NamingService] Started jndi bootstrap jnpPort=11099, rmiPort=11098, backlog=50, bindAddress=/, Client SocketFactory=null, Server
      16:00:36,289 ERROR [PooledInvoker] Starting failed jboss:service=invoker,type=pooled
      java.net.BindException: The socket name is already in use.

      Do I have forgotten to change some values @ the Ports ?
      Is it better to have the ports changed via binding.xml ?

      Thanks for reading.. and thanks in advance for an answer ;).


        • 1. Re: Running multiple Jboss on one machine
          Mohan Seenippandian Newbie

          Running multiple JBoss (with all config) on single machine would require a lot of changes.

          I hope you are using Jboss 3.2.X
          do these steps.

          <server-root>/conf/jboss-service.xml ==> in this uncomment the following line..

          <!-- Service Binding -->

          mbean code="org.jboss.services.binding.ServiceBindingManager"
          attribute name="ServerName">ports-01/attribute
          attribute name="StoreURL"../docs/examples/binding-manager/sample-bindings.xml/attribute
          attribute name="StoreFactoryClassName"
          As you could see the snipet, the server name is defined as port-01..and mapping file ../doc........check this sample-binding.xml with these server name, you will find the port details.

          Hope this helps.

          S. Mohan

          • 2. Re: Running multiple Jboss on one machine
            Bernhard Seiler Newbie


            I think we're talking of two different things: I want two complete seperate Servers on one machine, and I believe that your way is just the way to start multiple Server-Instances of one JBoss.

            In my case we need two complete seperate Servers, to test the differences between the releases.

            Thanks for your fast reply, maybe you got another clue for me ;).


            • 3. Re: Running multiple Jboss on one machine
              Darran Lofthouse Master

              You can still use the binding service on the second installation, it is not restricted to being used on a single instalation.

              All the binding service does is it changes the ports of the services it doesn't know anything about the other instances or installations.

              If 3.2.6 is already installed and running that one should be left as it is, the 4.0.? installation should have the binding service enabled and should be configured to use on of the binding configurations other than the default one.