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=26452>.
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=26452

Welcome-file not forwarding to servlet

           Summary: Welcome-file not forwarding to servlet
           Product: Tomcat 5
           Version: 5.0.18
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello,

I've read the servlet spec chapters relevant to this problem, and searched the
mailing list.  I think I might have exposed a certain condition where the
welcome-file functionality isn't working correctly.

JDK: 1.4.2
Linux: 2.6.1
Tomcat: 5.0.18
Struts: 1.1

Here is my web.xml sections I believe are relevant:

----------------------------

 <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
</servlet>

    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.x</url-pattern>
  </servlet-mapping>

... cut ...

        <welcome-file-list>
                <welcome-file>index.x</welcome-file>
        </welcome-file-list>

----------------------------

When I go to:

http://localhost:8080/appContext/

I see an empty directory listing.  (this is because all my jsp files are in WEB-INF)

When I go to:

http://localhost:8080/appContext/index.x

I see the correct page.

I believe, according to servlet 2.4, I should be able to place a mapping to a
servlet in the welcome-file.

I can't see any error in catalina.out or the localhost-DATE.log file.

I have no other servlets declared, and no default servlet declared.

Any ideas or tips?

Thanks very much,
Seth

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

Reply via email to