4 Replies Latest reply on Nov 27, 2002 3:17 PM by mikeklem

    Change the catalina http port

    templth

      Hello,

      I used the distribution JBoss 2.4.4 & Tomcat 4.0.1. It's work fine but I want to know if it is possible to change the default port of Catalina 8080 to 80?
      Thanks for your answer
      Templ

        • 1. Re: Change the catalina http port
          klaust

          add an attribut for the port in jboss.jcml:


          80


          hope this helps
          klaus

          • 2. Re: Change the catalina http port
            per_nyfelt

            Any idea how this would look like in 3.0?

            It does not look like changes to tomcat $jboss.home/jakarta-tomcat-4.0.2/conf/server.xml has any effect.

            Is the idea to create a tomcat-service.xml and stick it in the deploy dir? If so any samples available?

            • 3. Re: Change the catalina http port
              per_nyfelt

              I've figured it out. I got it working by moving tomcat4-service.sar to lib/ext as tomcat4-service.jar. Then created a tomcat-service.xml that i put in the deploy dir with the following content:

              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE server [<!ENTITY catalina.home "../jakarta-tomcat-4.0.2">] >








              &catalina.home;
              80



              • 4. Re: Change the catalina http port

                I am using JBoss 2.4.4 with Catalina 4.0.1. It does not appear as though you can kill the inital socket creation. Only move it around. I wanted HTTP 1.1 protocol on port 8080. I had to move the inital http port creation to 8081 and then create what I wanted on 8080. Here's the info from my jboss.jcml file:


                <!-- Move the default port to 8081 so it is out of the way. -->
                8081

                <!-- Create HTTP 1.1 Coyote Connector on port 8080 -->