Cool, thanks everyone for the feedback. That pretty much nails it.
-FB
On Saturday, November 23, 2002, at 10:18 AM, james wrote:
I have the same problem before. this is because the order problem.
Check the order of elements between <web-app> and </web-app>, if you
do not
know the order, pls check the .dtd file in the very begginiing of
web.xml
James
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, November 23, 2002 11:07 AM
Subject: Newbie - configuring webapps with multiple servlets
Hi Everyone,
I believe I do not understand how to configure a servlet in the
webapp's web.xml hence need a hand conceptually. I get the following
error when I added an additional servlet to my webapp:
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-
param*,filter*,filter-mapping*,listener*,servlet*,servlet-
mapping*,session-config?,mime-mapping*,welcome-file-list?,error-
page*,taglib*,resource-env-ref*,resource-ref*,security-
constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-
local-
ref*)".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Err
or
HandlerWrapper.java:232)
Here's a snipplet of the webapp's web.xml:
<?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>
<display-name>Tomcat Examples</display-name>
<description>
Tomcat Example servlets and JSP pages.
</description>
<servlet>
<servlet-name>C2</servlet-name>
<servlet-class>C2</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>C2</servlet-name>
<url-pattern>/controller</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>C3</servlet-name>
<servlet-class>C3</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>C3</servlet-name>
<url-pattern>/helper</url-pattern>
</servlet-mapping>
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>