6 Replies Latest reply on Oct 18, 2002 2:50 PM by jmoring

    Change Jetty ListenPort

    mischulze

      Hi!

      I´m using the JBoss-3.0.3-Jetty bundle and I´ve got a question according to the config-file in which I can change the listenPort for Jetty from 8080 to something else. Does anyone know where I can change this?

      Thanks in advance!

      Michael

        • 1. Re: Change Jetty ListenPort
          sodtom

          Edit the jboss-service.xml in
          JBOSS_HOME\server\SERVER_TYPE\deploy\jbossweb.sar\META-INF

          JBOSS_HOME = Directory where JBos was intalled
          SERVER_TYPE = Directory that implies your server type (e.g default)

          • 2. Re: Change Jetty ListenPort

            -Djetty.port=<Your Port> on the java command line also works

            • 3. Re: Change Jetty ListenPort
              hounce

              ... but for some reason -Djetty.port=<Your Port> doesn't
              work for the shutdown (property seems to be not evaluated, always 8080 is used), therefore you would need to kill JBoss manually.

              The other way (as sodtom stated) would be to modify jbossweb.sar/META-INF/jboss-service.xml: Simply search for 8080 (see page 107 of the QuickStart Guide). But I guess it has the same effect than setting the system property ...

              • 4. Re: Change Jetty ListenPort
                mischulze

                Thanks, i´ll try it!

                • 5. Re: Change Jetty ListenPort
                  lordy

                  > ... but for some reason -Djetty.port=<Your Port>
                  > doesn't
                  > work for the shutdown (property seems to be not
                  > evaluated, always 8080 is used), therefore you would
                  > need to kill JBoss manually.
                  >
                  Which on Solaris would be another reason not to use the -Xrs switch rather than making Jboss a group leader.

                  (see Shutdown CTRL-C thread for more details if you are using Solaris )

                  Lordy

                  • 6. Re: Change Jetty ListenPort

                    Shutdown uses port 8082