tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Deployment trouble: Directory Listing For /
Date Tue, 01 Apr 2003 16:40:56 GMT

Is the web.xml you quoted in the ROOT context or in your own context?
The url-pattern in web.xml is relative to the context root.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Philip S. Wachtel []
>Sent: Tuesday, April 01, 2003 11:29 AM
>To: Tomcat Users List
>Subject: Deployment trouble: Directory Listing For /
>Hi there,
>I just joined the list, so if this question has been asked recently,
>forgive me.
>I'm using Tomcat 4.1 on Redhat 7.3.  I know that the server is working
>the admin application seems to work, although it mangles the server.xml
>pretty good.
>The trouble I'm having is that although I can see that my servlet is
>deployed, I can't make the mapping work.  I know the servelt is
>because debugging information in the init() method is showing up in the
>When I go to the url:
>I just get: Directory Listing For / ... with no files in the list.
>(Note: When I press enter, the browser replaces the url with almost the
>on, but with an extra slash:
>The log shows:
>2003-04-01 11:18:09 StandardContext[/news]: Mapping contextPath='/news'
>requestURI='/news/' and relativeURI='/'
>2003-04-01 11:18:09 StandardContext[/news]:   Trying exact match
>2003-04-01 11:18:09 StandardContext[/news]:   Trying prefix match
>2003-04-01 11:18:09 StandardContext[/news]:   Trying extension match
>2003-04-01 11:18:09 StandardContext[/news]:   Trying default match
>2003-04-01 11:18:09 StandardContext[/news]:  Mapped to servlet
>with servlet path '/' and path info 'null' and update=true
>I did not add any special config in the server.xml file -- only in the
>web.xml file in the WEB-INF dir:
><?xml version="1.0" encoding="ISO-8859-1"?>
><!DOCTYPE web-app
>    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>    "">
>  <display-name>News Feed</display-name>
>  <description>
>    News Feed Application
>  </description>
>  <!-- Action Servlet Configuration -->
>  <servlet>
>    <servlet-name>news</servlet-name>
>    <servlet-class>
>      philservlet.PhilServlet
>    </servlet-class>
>    <load-on-startup>2</load-on-startup>
>  </servlet>
>  <!-- Action Servlet Mapping -->
>  <servlet-mapping>
>    <servlet-name>news</servlet-name>
>    <url-pattern>/news</url-pattern>
>  </servlet-mapping>
>Why, oh, why is this happening?
>I appreciate your suggestions.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message