Did anyone ever come up with an answer for this?  I've searched exhaustively
about this with no luck. Maybe I'm just missing something, but...

I am experiencing the same thing with Tomcat 4.0.2-LE / JVM 1.4.0 / Apache
1.3.23.  This is REALLY annoying, but if someone could tell me what I'm
doing wrong, I'd love to know.

Here is my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.d
td">
<web-app>
  <servlet>
    <servlet-name>PostMultipartServlet</servlet-name>
    <display-name>PostMultipartServlet</display-name>
    <description>multipart/form-data test servlet</description>

<servlet-class>org.athlonia.servlet.test.PostMultipartServlet</servlet-class
>
  </servlet>
  <servlet-mapping>
    <servlet-name>PostMultipartServlet</servlet-name>
    <url-pattern>/PostMultipartServlet</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>
      30
    </session-timeout>
  </session-config>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>

when I try to hit the page: http://localhost/multipart/

I get a page cannot be displayed error in IE 5.5, saying something about a
dns error.

If I do http://localhost/multipart/index.html, I get the desired page.

My httpd.conf mod_webapp section looks like this:

#
# Webapp: Tomcat (Catalina) 4.0 connector
#
<IfModule mod_webapp.c>
  WebAppConnection warpConnection warp localhost:8008

  WebAppDeploy examples warpConnection /examples/
  WebAppDeploy multipart warpConnection /multipart/
</IfModule>

Let's see.. what else...


My server.xml section looks like this:


-- snip --
  <!-- Define an Apache-Connector Service -->
  <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75" enableLookups="false"
appBase="/home/httpd/webapps" acceptCount="10" debug="0"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set
to -->
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" defaultHost="www.athlonia.org" debug="0">

      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/catalina" prefix="apache_catalina_" suffix=".log"
timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared
globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <!-- Define the default virtual host -->
      <Host name="localhost" debug="0" appBase="/home/httpd/webapps"
unpackWARs="false">
        <Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/var/log/catalina" prefix="localhost_access_" suffix=".log"
pattern="common"/>
        <Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/catalina" prefix="localhost_" suffix=".log"
timestamp="true"/>


        <!-- Multipart Test Webapp Context -->
        <Context path="/multipart" docBase="multipart.war" debug="0">
          <Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/catalina" prefix="webapp_localhost_multipart_"
suffix=".log" timestamp="true"/>
        </Context>

      </Host>

    </Service>

-- snip --

Also, I noticed that the web.xml for the examples doesn't have a
<welcome-file-list> section, but it's behavior seems correct, with the
exception that it's index.html is in a /jsp or /servlet subdirectory.  I
tried removing the <welcome-file-list> section from my web.xml and still got
the same incorrect behavior as with it in place.  So...

Any information would be much appreciated!  Thanks.

Kendal L. Montgomery
...the comPuter Wizard...
[EMAIL PROTECTED]
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Click here for Qwest's 5 cent State-to-State flat rate calling plan, plus
get your own 800 number at no charge!
http://qwesteferral.com/r.jsp?a=RyYO5xpYanlfVU541Lz2HA$$
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_

-----Original Message-----
From: Dom [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:15 PM
To: [EMAIL PROTECTED]; Tomcat Developer List
Subject: tomcat 4 & apache & mod_webapp welcome-file-list

Tomcat 4 + Apache + mod_webapp.so :
It looks like welcome-file-list in web.xml doesn't work with web
applications in virtual hosts ?

Dom


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

Reply via email to