6 Replies Latest reply on Jul 6, 2011 10:21 PM by itsamemario

    ssl port changes from 8443 to 9453

    itsamemario Newbie

      Hello,

       

      We are running JBoss 5.1.0.GA with a fairly complex war file.  We have configured and tested the browsers to run on ssl and this is viewed in the log:

       

      INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080

      INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009

      INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8443

       

      After we uninstall our war file and upgrade it to a new version we are finding that ssl works but only with port 9453 as seen below in the log:

       

      INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080

      INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-9453

      INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-9019

       

      We are setting redirects using IPTables for ports 80 and 443.

       

      I am unsure how and why this is happening, but we need to get this fixed. 

       

      Can anyone help us get our ports working as they were before we upgraded our app?

       

      Thanks

        • 1. Re: ssl port changes from 8443 to 9453
          Peter Johnson Master

          Have you checked the port numbers in these files:

          server/xxx/conf/bindingservice.beans/META-INF/binding-jboss-beans.xml

          server/xxx/deploy/jbossweb.sar/server.xml

          • 2. Re: ssl port changes from 8443 to 9453
            itsamemario Newbie

            Thanks Peter...

             

            The port numbers in the files are 8443 however a few lines above the 8443 tags in binding-jboss-beans.xml I see the following tag:

             

            <bean class="org.jboss.services.binding.ServiceBindingMetadata">

                           <property name="serviceName">jboss.web:service=WebServer</property>

                           <property name="port">9090</property>

                           <property name="description">JBoss Web HTTP connector socket; also drives the values for the HTTPS and AJP sockets</property>

             

            then a bit later in the file I see:

            &lt;xsl:variable name="portHttps" select="$port + 363"/&gt;

             

            so 9090+363 is 9453.

             

            The other thing I noticed is that apache has changed to

            apache2-2.2.3-16.29.2

            apache2-prefork-2.2.3-16.29.2

            from version:

            apache2-2.2.3-16.28.1

            apache2-prefork-2.2.3-16.28.1

             

             

            When we try to modify the iptables to adjust to the new ports we still are not able to redirect.

            • 3. Re: ssl port changes from 8443 to 9453
              itsamemario Newbie

              Did some more testing and determined that our application upgrade is causing the probem, we just don't understand how to fix it.

               

              Any thoughts?

              • 5. Re: ssl port changes from 8443 to 9453
                itsamemario Newbie

                I applied the patch to bindings-jboss-beans.xml then restarted JBoss but am still getting the same ports.

                 

                Here is a diff of the bindings-jboss-beans.xml:

                # /usr/local/tstv/jboss/server/default/conf/bindingservice.beans/META-INF # diff bindings-jboss-beans.xml bindings-jboss-beans.xml.original

                504c504

                <                   &lt;xsl:attribute name="port"&gt;&lt;xsl:value-of select="$port" /&gt;&lt;/xsl:attribute&gt;

                ---

                >                   &lt;xsl:attribute name="port"&gt;&lt;xsl:value-of select="$port" /&gt;&lt;/xsl:attribute&gt;

                509c509

                <                &lt;xsl:when test="(name() = 'redirectPort' and . = '8443')"&gt;

                ---

                >                &lt;xsl:when test="(name() = 'redirectPort')"&gt;

                # /usr/local/tstv/jboss/server/default/conf/bindingservice.beans/META-INF #

                 

                Here a snippet of the jboss.log file:

                10:51:10,674 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0

                10:51:10,675 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-9019

                10:51:10,675 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-9453

                .

                .

                .

                10:52:02,949 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0

                10:52:02,989 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-9019

                10:52:02,998 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-9453

                 

                Did I apply the patch correctly?

                • 6. Re: ssl port changes from 8443 to 9453
                  itsamemario Newbie

                  I applied the changes suggested in the patch to all levels of <JBoss>/server/<XXX>/conf/bindingservice.beans/META-INF/bindingservice.beans/META-INF but it still did not work.

                   

                  removed the changes to the patch and modified the values of AJP and SSL ports to 11009 and 11443 respectively and we now have the desired effect.