When I start up tomcat, I get the following error in my logs:

org.xml.sax.SAXParseException: The content of element type "web-app" must match 
"(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)

Here is my web.xml:

<?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>
  <display-name>Networld News Alerts</display-name>
  <description>
    This web application allows administration of HTML/text
    email alerts.
  </description>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <context-param>
    <param-name>test</param-name>
    <param-value>value</param-value>
  </context-param>
</web-app>


The problem seems to be the context-param element. When I take it out,
things start up fine. I know context-param is valid, and it is even
mentioned in the error, so what gives?

Later,
-- 
\ Craig Patrick McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to