1 Reply Latest reply on Mar 14, 2003 2:14 PM by wemmick

    ServiceBindingManager with Tomcat

    wemmick

      Working from the example in JBOSS_HOME/docs/examples/binding-service/docs/examples/binding-service/sample-bindings.xml, I'm attempting to get the embedded catalina service to listen to a different port, but I'm having no luck. I consistently get the message that it can't bind to port 8080 (yes, it's being used by another instance... getting multiple instances running is the whole point of this exercise). The other services defined show up in the log messages with the proper new ports.

      Has anybody had success with this?

      Here's what I've added:

      <service-config name="jboss.web:service=JBossWebServer"
      delegateClass="org.jboss.services.binding.XSLTConfigDelegate">

      <delegate-config>
      <xslt-config configName="Config"><![CDATA[
      <xsl:stylesheet
      xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>

      <xsl:output method="xml" />
      <xsl:param name="port"/>
      <xsl:param name="redirectPort"/>

      <xsl:template match="/">
      <xsl:apply-templates/>
      </xsl:template>

      <xsl:template
      match="Connector[@class='org.apache.coyote.tomcat4.CoyoteConnector']">

      </xsl:template>

      <xsl:template match="*|@*">
      <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
      </xsl:copy>
      </xsl:template>
      </xsl:stylesheet>
      ]]>
      </xslt-config>
      </delegate-config>


      </service-config>

        • 1. Or even ServiceBindingManager with Jetty?
          wemmick

          I've now downloaded jboss-3.0.6 (binary w/jetty) and I get the same problem. The other ports are modified as requested, but the webserver port isn't modified -- and this is from the binding example file included with the distro.