You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Vivek Singh <vs...@gmail.com> on 2007/10/17 20:27:26 UTC

TOmcat Engine Issue with netscaler

Hi I have an issue with running netscaler with HTTP connetor on 8080.

Before the netscaler arrived, I had an apache setup with mod _jk to talk to
the two tomcat <HOST> below 10.7.0.62 and 10.7.0.63 using 8009 connector(
Listed is the server.xml of the tomcat box with 10.7.0.61 as primary
interface), the Engine defaulthost was 10.7.0.63, and all was working
smooth.

Now, I created two new <Hosts> on tomcat of the same two applications above
- 10.7.0.62 and 10.7.0.63 ( As I did not wanted to disturb the existing
flow, till I get the netscaler working)

The two new hosts below are 10.7.0.58 ( same application as 10.7.0.63) and
10.7.0.66 ( same applicatioin as 10.7.0.62), I also brought upto virtual
interfaces for them on eth0:1 and eth0:2 with ips 10.7.0.58 and 10.7.0.66. I
also changed the defaulthost in the engine to 10.7.0.66.

Now the connection between netscaler and tomcats works fine but both
applications follow the defaulthost listed under Engine defaulthost which is
10.7.0.66, if I change that to 10.7.0.58, they go to 10.7.0.58. In
otherwords, they follow whatever is in defaulthost.

Please tell me what I am doing wrong here.

<!-- Define an Apache-Connector Service -->



  <Service name="Tomcat-Apache">





   <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->

    <Connector className="org.apache.coyote.tomcat5.CoyoteConnector"

               port="8009" minProcessors="5" maxProcessors="150"

               enableLookups="true" redirectPort="8443"

               acceptCount="10" debug="0" connectionTimeout="0"

               useURIValidationHack="false"

               protocolHandlerClassName="
org.apache.jk.server.JkCoyoteHandler"/>



    <Connector port="8080"

               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

               enableLookups="true" redirectPort="8443" acceptCount="100"

               debug="0" connectionTimeout="20000"

               disableUploadTimeout="true" />



   <!--     <Engine name="Tomcat-Apache"
defaultHost="10.7.0.63<http://10.7.0.66/>"
debug="0"> -->

        <Engine name="Tomcat-Apache" defaultHost="10.7.0.66" debug="0">



        <Logger className="org.apache.catalina.logger.FileLogger"

              prefix="apache_log." suffix=".txt"

              timestamp="true"/>

          <!-- Access log processes all requests for this virtual host. -->

      <Valve className="org.apache.catalina.valves.AccessLogValve"

                 directory="logs"  prefix="localhost_access_log."
suffix=".txt"

                 pattern="common" resolveHosts="false"/>



 <Host name="10.7.0.63" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/webapps/RO
OT/xxholdings">

                <Alias>10.7.0.61</Alias>

                <Context path="" docBase="" debug="1"/>

               <Valve className="org.apache.catalina.valves.AccessLogValve"
dire
ctory="logs"  prefix="home_access_log." suffix=".txt" pattern="common"
resolveHo
sts="false"/>

        </Host>



        <Host name="10.7.0.62" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/web

apps/ROOT/mycompany">

                <Alias>10.7.0.61</Alias>

                <Context path="" docBase="" debug="1"/>

                <Valve className="org.apache.catalina.valves.AccessLogValve"
dir
ectory="logs"  prefix="home_access_log." suffix=".txt" pattern="common"
resolveH
osts="false"/>

        </Host>



        <Host name="10.7.0.64" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/web
apps/ROOT/legal">

                <Alias>10.7.0.64</Alias>

                <Context path="" docBase="" debug="1"/>

                <Valve className="org.apache.catalina.valves.AccessLogValve"
dir
ectory="logs"  prefix="home_access_log." suffix=".txt" pattern="common"
resolveH
osts="false"/>

        </Host>



    <Host name="10.7.0.58" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/webapps
                      /ROOT/xxholdings">

                                <Alias>10.7.0.58</Alias>

                <Context path="" docBase="" debug="1"/>

        </Host>



        <Host name="10.7.0.66" debug="0"
appBase="/opt/jakarta-tomcat-5.0.18/web

 apps/ROOT/mycompany">

                                <Alias>10.7.0.66</Alias>

                <Context path="" docBase="" debug="1"/>

             </Host>

      </Engine>



  </Service>



</Server>