1 Reply Latest reply on Oct 15, 2005 4:59 AM by v v

    configuring rmiPort and jnpPort (Jboss-3.2.7)

    qa qa Newbie

      Hi. I have tried reconfiguring the RMI Port - 1099- that JBoss listens on since I have another application that uses this port. I have made the changes in ...server\default\conf\jboss-service.xml and ...\server\all\conf\jboss-service.xml. So now, jboss starts ok and uses the new port numbers but when I try to it down from another command prompt, I get a

      "javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099"

      In shutting it down, it still looks for 1099. What is the proper way of reconfiguring the rmiPort? Can someone help? Thanks in advance.

        • 1. Re: configuring rmiPort and jnpPort (Jboss-3.2.7)
          v v Newbie

          Hello Armine,

          Any changes made to the jboss-service.xml file will take effect only at the startup. And by default, the shutdown program will look only at the default jnp port 1099. It does not reference the jboss-service.xml file. The best way to force a non-default jnp port number is to specify it as a command-line argument, as shown below:

          # ./shutdown.sh -s jnp://localhost:10999 -S

          This assumes that your jboss-service.xml file contained something like what is shown below:

          jboss-service.xml :
          <!-- jnp port specification -->

          (i.e. JBoss was started with jnp port number 10999).

          ViSolve Consulting Group
          Email: support@visolve.com