tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lott, Carey" <carey.l...@eds.com>
Subject RE: Parse error in application web.xml
Date Fri, 17 Jan 2003 18:57:49 GMT
That was it. Thanks
I placed welcome-file-list element at the bottom and then grouped all of the
servlet elements together and underneath it all of the servlet-mapping
elements.  It finally started up with out an error.

Thanks Again.  If anybody is interested below is my corrected version.

web.xml file:

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

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

<web-app>

  <servlet>
    <servlet-name>DDSMenu</servlet-name>
    <servlet-class>DDSMenu</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>DDSHome</servlet-name>
    <servlet-class>DDSHome</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>DDSLogin</servlet-name>
    <servlet-class>DDSLogin</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>DDSLog</servlet-name>
    <servlet-class>DDSLog</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>DDSMenu</servlet-name>
    <url-pattern>/DDSMenu</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>DDSHome</servlet-name>
    <url-pattern>/DDSHome</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>DDSLogin</servlet-name>
    <url-pattern>/DDSLogin</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>DDSLog</servlet-name>
    <url-pattern>/DDSLog</url-pattern>
  </servlet-mapping>

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

</web-app>

-----Original Message-----
From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
Sent: Friday, January 17, 2003 1:37 PM
To: Tomcat Users List
Subject: RE: Parse error in application web.xml


Hi,

>Instead of depending on the invoker servlet, I have added our servlets
to

Good.

>2003-01-17 13:07:51 ContextConfig[/esd] Parse error in application
web.xml
>org.xml.sax.SAXParseException: The content of element type "web-app"
must
>match
>"(icon?,display-name?,description?,distributable?,context-
>param*,filter*,fil
>ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-
>mappin
>g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-
>ref*,se
>curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb
-
>loca
>l-ref*)".
>
>I have validated the web.xml file using IE.  No errors are apparent.
The

You may have viewed the file using IE, not validated it ;) ;)

IE would not check against the scheme.  The error reported suggests you
have elements in the wrong order.  It tells you what the right order is.
For example, <welcome-file-list> cannot come before <servlet>.

Reorganize your web.xml file according to the spec, i.e. in the order
shown above, and the error will go away.

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message