tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roman Mikhailov <>
Subject <context-param><param-value> question
Date Fri, 04 Jan 2002 18:58:10 GMT
Hi guys,
the following piece of code from the web.xml file always gives me
"Apache Tomcat/4.0.1-HTTP Status 404 - /chat/servlet/ChatAdminServlet" 
when I run it on Linux and (?!) works fine on Windows
How can I fix it ? Can anyone give me advice how can I make it work on 
Thanks in advance

Roman Mikhailov









import javax.servlet.*;
import javax.servlet.http.*;

import java.util.*;

public class ChatAdminServlet extends HttpServlet {

   String chatRoomPath;
   String listRoomsPath;
   String chatAdminPath;

   public void init() {
     ServletContext context = getServletContext();

------->>> I guess it breaks somewhere here

     chatRoomPath = context.getInitParameter("CHATROOM_PATH");
     listRoomsPath = context.getInitParameter("LISTROOMS_PATH");
     chatAdminPath = context.getInitParameter("ADMIN_PATH");

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message