Women in Technology

Hear us Roar

  Java Web Applications
Subject:   HTTP Status 404 - /
Date:   2006-08-25 12:01:14
From:   dmersino
Response to: HTTP Status 404 - /

I just had this same problem. The message I got was identical and the command prompt which had the logs showed no exceptions at all. What's strange is that it was working just fine an hour prior. I tried rebooting, recompiling, etc., etc.

Finally I remembered that I had changed the name of a Filter that I was using, that was referenced in the web.xml file. Once I corrected this in my web.xml, everything returned to normal.

Normally when a class defn is incorrect you'll get a classNotFound or other exception in the logs. I don't know if this is just a bug in Apache when loading filters or if it will happen with other classes.

So, you may want to try scanning your web.xml for any mis-spelled or missing classes that the server is trying to load.

Full Threads Newest First

Showing messages 1 through 2 of 2.

  • HTTP Status 404 - /
    2006-08-26 00:08:15  aadityasharma [View]

    type Status report

    message //

    description The requested resource (//) is not available.
    • HTTP Status 404 - /
      2007-02-13 07:37:14  ritanegi [View]

      this is the servlet i wanted to run

      import java.io.IOException;
      import java.io.PrintWriter;

      import javax.servlet.ServletException;
      import javax.servlet.http.HttpServlet;
      import javax.servlet.http.HttpServletRequest;
      import javax.servlet.http.HttpServletResponse;

      * Created on Jan 18, 2007
      * TODO To change the template for this generated file go to
      * Window - Preferences - Java - Code Style - Code Templates

      * @author Administrator
      * TODO To change the template for this generated type comment go to
      * Window - Preferences - Java - Code Style - Code Templates
      public class HelloServlet extends HttpServlet {
      public void doGet (HttpServletRequest req,
      HttpServletResponse res)
      throws ServletException, IOException
      PrintWriter out = res.getWriter();

      out.println("Hello, world!");
      this the web.xml file i created

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"

      this is the copy of manager saved by the name MyApp which is my project name too
      Context configuration file for the Tomcat Manager Web App

      $Id: manager.xml,v 1.2 2004/02/20 17:09:29 remm Exp $

      - <Context path="/Project" docBase="HelloServlet" debug="0" privileged="true">
      - <!-- Link to the user database we will get roles from
      <ResourceLink name="users" global="UserDatabase" type="org.apache.catalina.UserDatabase" />
      my query is dat do i need to create n html file to display my output.......i haven't done it till now....i just went to my browser which is IE....n i have tomcat 5.0 installed in my system entered the url given below

      but received n error report-http status 404 in the following form

      type Status report

      message /example/servlet/HelloServlet

      description The requested resource (/example/servlet/HelloServlet) is not available.

      kindly check my servlet file coding as well as the web.xml file coding whether i have correctly coded them....the error may be thr due to wrong assignment.....i m just the beginner in web services

      i'll be grateful to u
      rita negi