9 Replies Latest reply on Jun 18, 2008 7:14 AM by lkafle

    Default Port

    integ

      How do i run JBoss3.0-Tomcat4.0 on the default port 80. I tried changing the port number in server.xml under C:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\conf from 8080 to 80. But my server still runs on 80. Cud somebody help.

        • 1. Re: Default Port
          integ

          Type above in the port number. Please ignore the one above and read this. How do i run JBoss3.0-Tomcat4.0 on the default port 80. I tried changing the port number in server.xml under C:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\conf from 8080 to 80. But my server still runs on 8080. Cud somebody help.

          • 2. Re: Default Port
            integ

            That was meant to be:

            Typo above in the port number.

            • 3. Re: Default Port

              The configuration for the integerated tomcat container
              is in the archive tomcat-service.sar

              To modify the configuration, take a copy of tomcat-service.sar and extract it
              jar -xf tomcat-service.sar
              You will find a file called META-INF/jboss-service.xml

              When you've changed the config, recreate the service
              jar -cf tomcat-service.sar *
              in your extracted directory.

              Copy the sar back into the deploy directory.
              There is no need to reboot, the tomcat service is
              hot-deployable in 3.0.

              Regards,
              Adrian

              • 4. Re: Default Port
                integ

                Thanx Warjort. That helped. One more question. How can i change the default SSL Port.

                • 5. Re: Default Port

                  There is information on this for 2.4.4
                  in this thread.

                  http://main.jboss.org/thread.jsp?forum=50&thread=3663&message=241807

                  If it mentions jboss.jcml, it is now called
                  jboss-service.xml

                  But you have the option to create
                  somename.xml and put it in deploy for new services.

                  The service will hot-deploy. This lets you change
                  the config without rebooting.

                  Regards,
                  Adrian

                  • 6. Re: Default Port
                    r0ckflite

                    The file I found on my beta (04/02/2002) was
                    called tomcat4-service.sar, but otherwise this
                    is perfect. Thanks!

                    • 7. Re: Default Port
                      craigday

                      just browsing through this thread, but does anyone else
                      find this to be a painful process just to change a port number on your webserver?

                      • 8. Re: Default Port

                        Yes,

                        The better method is to split tomcat4-service.sar
                        into a tomcat4.jar with the classes
                        and a tomcat4-service.xml with a

                        dependency.
                        Both are still in deploy.

                        This splits the deployment into the code and
                        configuration. This flexibility has one
                        downside. Removing tomcat requires removal of
                        two deployments instead of one.

                        It isn't really a big issue. You will mostly modify
                        it once and then you are done.

                        Regards,
                        Adrian

                        • 9. Re: Default Port
                          lkafle

                          Hi Adrian, I want to deploy multiple applications at multiple ports . What would be the shortcut idea?


                          Lava Kafle
                          Principal Engineer
                          D2hawkeyeServices.