tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From his...@hadv.nl
Subject REPOST Please help! Virtual hosts on Tomcat4-3b
Date Wed, 30 May 2001 09:39:55 GMT




Hi,

I'm trying to run two virtual hosts on Tomcat4-3b on RH Linux 7.0. I try to give
each host a default Context (ie a Context for path="") but I keep getting the
error message:

StandardContext[]: Error initializing naming context for context

in the logs and

HTTP Status 503 - This application is not currently available

in the browser.

If I comment out one of the hosts the other works fine. I have tried to strip
server.xml down to a bare minimum, but  without any success. It seems paths in
separate virtual hosts can conflict...

Any ideas??

Regards,

Wilko Hische

=== server.xml ===
<Server port="8005" shutdown="SHUTDOWN" debug="0">

  <Service name="Tomcat-Standalone">
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="80" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0" connectionTimeout="60000"/>

    <Engine name="Standalone" defaultHost="localhost" debug="0">
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <Host name="localhost" debug="0" appBase="test">
        <Context path="" docBase="examples" debug="0"
                 reloadable="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="localhost_examples_log." suffix=".txt"
                  timestamp="true"/>
        </Context>
      </Host>

      <Host name="host2" debug="0" appBase="test2">
        <Context path="" docBase="examples" debug="0"
                 reloadable="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="localhost_examples_log." suffix=".txt"
                  timestamp="true"/>
        </Context>
      </Host>

    </Engine>
  </Service>


</Server>
=======







Mime
View raw message