You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alberto A C A S Magalhães <al...@bnc.pt> on 2003/04/01 18:26:21 UTC
RE: Deployment trouble: Directory Listing For /
**********************************************************************
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique Redes@bnc.pt
Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.
www.mimesweeper.com
***********************************************************************
Do u have defined your servlet in web.xml of news context?
-----Original Message-----
From: Philip S. Wachtel [mailto:skeeve@cnsmail.com]
Sent: terça-feira, 1 de Abril de 2003 17:29
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, please
forgive me.
I'm using Tomcat 4.1 on Redhat 7.3. I know that the server is working as
the admin application seems to work, although it mangles the server.xml file
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 deployed
because debugging information in the init() method is showing up in the
logs.
When I go to the url: http://myserver.com:8080/news?rdfFileName=healthcare
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 same
on, but with an extra slash:
http://nagios.cnsmail.com:8080/news/?rdfFileName=moreover_healthcare)
The log shows:
2003-04-01 11:18:09 StandardContext[/news]: Mapping contextPath='/news' with
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 'default'
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"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<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>
</web-app>
Why, oh, why is this happening?
I appreciate your suggestions.
Regards,
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org