DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17749>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17749

Order of <Service> tag in server.xml matters for tomcat 5.

           Summary: Order of <Service> tag in server.xml matters for tomcat
                    5.
           Product: Tomcat 5
           Version: 5.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When I have more than one <Service> element in the server.xml if I don't put
localhost as the first one the server comes up with no context initialized.
However if I put localhost first and then the other virtual host second then it
seems to work fine. This works fine with tomcat 4.1.x. It is a regression in
tomcat 5.

For example

<Service name="foo">

    <Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
               port="8080" minProcessors="5" maxProcessors="100"
               enableLookups="true" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000"
               disableUploadTimeout="true" />
<Engine name="StandAlone" defaultHost="localhost" debug="0">


      <Realm   className="org.apache.catalina.realm.UserDatabaseRealm"
            resourceName="UserDatabase"
                   debug="0"/>

      <!-- Define the default virtual host -->
      <Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="false" autoDeploy="true">

      </Host>

    </Engine>
</Service>
<Service name="bar">

    <Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
               port="8081" minProcessors="5" maxProcessors="100"
               enableLookups="true" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000"
               disableUploadTimeout="true" />

    <Engine name="NewEngine" defaultHost="bar" debug="0">

      <!-- Define the default virtual host -->
      <Host name="jwsdp-services" debug="0" appBase="foo/webapps"
       unpackWARs="false" autoDeploy="true">

      </Host>

    </Engine>

  </Service>

This works but if you reverse the order of the <Service> elements it doesn't.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to