what's wrong with this web.xml file ??

Discussions

Web tier: servlets, JSP, Web frameworks: what's wrong with this web.xml file ??

  1. what's wrong with this web.xml file ?? (1 messages)

    Hi, could you please tell me what's wrong in this web.xml file, tomcat does not want to be started when I have this file :

    <?xml version="1.0" encoding="ISO-8859-1"?>

    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
        "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

    <web-app>


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

        <display-name>Superdistribution Inc.</display-name>
        <description>
          This is version 1.0 of an application to support
    the superdistribution business process, based on servlets.
    It was written by Brad Cox (bcox at superdistribution dot com),
    who should be contacted for more information.
        </description>

        
        <context-param>
          <param-name>webmaster</param-name>
          <param-value>bcox at superdistribution dot com</param-value>
          <description>
            The EMAIL address of the administrator to whom questions
            and comments about this application should be addressed.
          </description>
        </context-param>
    <servlet>
    <servlet-name>demo</servlet-name>
    <description>WAP Demo WebApp</description>
    <servlet-class>com.sdi.wap.demo.site.DemoSite</servlet-class>
                      <load-on-startup>5</load-on-startup>
    </servlet>
        <servlet-mapping>
          <servlet-name>demo</servlet-name>
          <url-pattern>/demo</url-pattern>
        </servlet-mapping>
        <session-config>
          <session-timeout>60</session-timeout> <!-- 60 minutes -->
        </session-config>

      <welcome-file>index.html</welcome-file>

    </web-app>


    Thanks
  2. Try this for your welcome file:

    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
    </welcome-file-list>

    Everything else looks ok. What kind of error is Tomcat giving you?

    Andy