I'm a relative Tomcat newbie. I have built an application with ant and was using it under Tomcat 5.5.9 for several weeks, and then it suddenly broke. All request to JSP pages now display the 404 error (the requested resource is not available). I was making only very minor changes to the Java code. The HTML pages still work.

There are no errors in catalina.out and localhost.log. I've tried to configure log4j logging by placing the log4j.properties file into common/classes (and the commons-logging and log4j jars into common/lib, but the log file I specified there is not even created.

Finally, I was never able to make my application work with the web.xml file generated by ant. It only worked after I delete the file. The file is pretty basic, but I attach it in case there is an obvious error there.

I'll be grateful for any suggestions.


Simon (Vsevolod ILyushchenko)   [EMAIL PROTECTED]

Terrorism is a tactic and so to declare war on terrorism
is equivalent to Roosevelt's declaring war on blitzkrieg.

Zbigniew Brzezinski, U.S. national security advisor, 1977-81
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app 
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 


    <!-- General description of your web application -->

    <display-name>My Web Application</display-name>
      This is version X.X of an application to perform
      a wild and wonderful task, based on servlets and
      JSP pages.  It was written by Dave Developer
      ([EMAIL PROTECTED]), who should be contacted for
      more information.

    <!-- Context initialization parameters that define shared
         String constants used within your application, which
         can be customized by the system administrator who is
         installing your application.  The values actually
         assigned to these parameters can be retrieved in a
         servlet or JSP page by calling:

             String value =

         where "name" matches the <param-name> element of
         one of these initialization parameters.

         You can define any number of context initialization
         parameters, including zero.

      <param-value>[EMAIL PROTECTED]</param-value>
        The EMAIL address of the administrator to whom questions
        and comments about this application should be addressed.

    <!-- Servlet definitions for the servlets that make up
         your web application, including initialization
         parameters.  With Tomcat, you can also send requests
         to servlets not listed here with a request like this:


         but this usage is not guaranteed to be portable.  It also
         makes relative references to images and other resources
         required by your servlet more complicated, so defining
         all of your servlets (and defining a mapping to them with
         a servlet-mapping element) is recommended.

         Servlet initialization parameters can be retrieved in a
         servlet or JSP page by calling:

             String value =

         where "name" matches the <param-name> element of
         one of these initialization parameters.

         You can define any number of servlets, including zero.

        This servlet plays the "controller" role in the MVC architecture
        used in this application.  It is generally mapped to the ".do"
        filename extension with a servlet-mapping element, and all form
        submits in the app will be submitted to a request URI like
        "saveCustomer.do", which will therefore be mapped to this servlet.

        The initialization parameter namess for this servlet are the
        "servlet path" that will be received by this servlet (after the
        filename extension is removed).  The corresponding value is the
        name of the action class that will be used to process this request.
      <!-- Load this servlet at server startup time -->

        This servlet produces GIF images that are dynamically generated
        graphs, based on the input parameters included on the request.
        It is generally mapped to a specific request URI like "/graph".

    <!-- Define mappings that are used by the servlet container to
         translate a particular request URI (context-relative) to a
         particular servlet.  The examples below correspond to the
         servlet descriptions above.  Thus, a request URI like:


         will be mapped to the "graph" servlet, while a request like:


         will be mapped to the "controller" servlet.

         You may define any number of servlet mappings, including zero.
         It is also legal to define more than one mapping for the same
         servlet, if you wish to.

    <!-- JSPC servlet mappings start -->


...More servlets here...


...More servlet-mappings here...

<!-- JSPC servlet mappings end -->



    <!-- Define the default session timeout for your application,
         in minutes.  From a servlet or JSP page, you can modify
         the timeout for a particular session dynamically by using
         HttpSession.getMaxInactiveInterval(). -->

      <session-timeout>30</session-timeout>    <!-- 30 minutes -->


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

Reply via email to