RE: Trouble with my web.xml?

2002-02-18 Thread Randy Layman


You have a servlet-mapping before the last servlet.  With Tomcat 4
(and maybe 3.3) you have to have the elements in the right order.

Randy

 -Original Message-
 From: Greer, Darren (MED) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 18, 2002 1:09 PM
 To: '[EMAIL PROTECTED]'
 Subject: Trouble with my web.xml?
 
 
 Hey all.  While trying to run my application I am getting the 
 following
 err:
 #
 org.xml.sax.SAXParseException: The content of element type web-app
 must match
 (icon?,display-name?,description?,distributable?,context-para
 m*,filter*
 ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-c
 onfig?,mim
 e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env
 -ref*,reso
 urce-ref*,security-constraint*,login-config?,security-role*,en
 v-entry*,e
 jb-ref*,ejb-local-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.3//EN http://java.sun.com/dtd/web-app_2_3.dtd
 http://java.sun.com/dtd/web-app_2_3.dtd 
  
 web-app
 display-nameNod.to/display-name
 descriptionIndividuality/description
 context-param
 param-nameWebmaster/param-name
 param-value[EMAIL PROTECTED]/param-value
 /context-param
 servlet
 servlet-namedbConnect/servlet-name
 
 servlet-classto.nod.servlets.dbConnect/servlet-class
 load-on-startup1/load-on-startup
 /servlet
  
 servlet
 servlet-namelinksPortlet/servlet-name
  
 servlet-classto.nod.servlets.linksPortlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namelinksPortlet/servlet-name
 url-pattern/links/url-pattern
 /servlet-mapping
  
 servlet
 servlet-nameNod/servlet-name
 servlet-classto.nod.servlets.Nod/servlet-class
 /servlet
 servlet-mapping
 servlet-nameNod/servlet-name
 url-pattern/app/url-pattern
 /servlet-mapping
 /web-app
 ##
  
 As far as I know, everything I have in my web.xml is setup correctly.
 Any insight would be great,
  
 Darren
 

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




Re: Trouble with my web.xml?

2002-02-18 Thread nathan phillips

I believe you must define all your servlets before you define your servlet 
mappings.  Try it like this:


 servlet
  servlet-namedbConnect/servlet-name
  servlet-classto.nod.servlets.dbConnect/servlet-class
  load-on-startup1/load-on-startup
 /servlet

 servlet
 servlet-namelinksPortlet/servlet-name
 servlet-classto.nod.servlets.linksPortlet/servlet-class
 /servlet

 servlet
 servlet-nameNod/servlet-name
 servlet-classto.nod.servlets.Nod/servlet-class
 /servlet


 servlet-mapping
 servlet-namelinksPortlet/servlet-name
 url-pattern/links/url-pattern
 /servlet-mapping

 servlet-mapping
 servlet-nameNod/servlet-name
 url-pattern/app/url-pattern
 /servlet-mapping





From: Greer, Darren (MED) [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Trouble with my web.xml?
Date: Mon, 18 Feb 2002 12:09:10 -0600
MIME-Version: 1.0
Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
MHotMailBE3A8E69004F400431DFC0123183839F0; Mon, 18 Feb 2002 10:09:45 -0800
Received: (qmail 2817 invoked by uid 97); 18 Feb 2002 18:09:15 -
Received: (qmail 2753 invoked from network); 18 Feb 2002 18:09:14 -
From tomcat-user-return-11330-nathanpp Mon, 18 Feb 2002 10:09:56 -0800
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: 
[EMAIL PROTECTED]
X-Mailer: Internet Mail Service (5.5.2653.19)
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

Hey all.  While trying to run my application I am getting the following
err:
#
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?,mim
e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso
urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e
jb-ref*,ejb-local-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.3//EN http://java.sun.com/dtd/web-app_2_3.dtd
http://java.sun.com/dtd/web-app_2_3.dtd 

web-app
 display-nameNod.to/display-name
 descriptionIndividuality/description
 context-param
 param-nameWebmaster/param-name
 param-value[EMAIL PROTECTED]/param-value
 /context-param
 servlet
 servlet-namedbConnect/servlet-name
 servlet-classto.nod.servlets.dbConnect/servlet-class
 load-on-startup1/load-on-startup
 /servlet

 servlet
 servlet-namelinksPortlet/servlet-name

servlet-classto.nod.servlets.linksPortlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namelinksPortlet/servlet-name
 url-pattern/links/url-pattern
 /servlet-mapping

 servlet
 servlet-nameNod/servlet-name
 servlet-classto.nod.servlets.Nod/servlet-class
 /servlet
 servlet-mapping
 servlet-nameNod/servlet-name
 url-pattern/app/url-pattern
 /servlet-mapping
/web-app
##

As far as I know, everything I have in my web.xml is setup correctly.
Any insight would be great,

Darren




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Trouble with my web.xml?

2002-02-18 Thread sophie fischer

Hi,

Your xml file should first contain all servlet-tags, and then all
servlet-mapping-tags. The dtd does not allow you to first define a
servlet-part, than a servlet-mapping and then again a servlet part.

Hope this helps,

Sophie

Greer, Darren (MED) wrote:

 Hey all.  While trying to run my application I am getting the following
 err:
 #
 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?,mim
 e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso
 urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e
 jb-ref*,ejb-local-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.3//EN http://java.sun.com/dtd/web-app_2_3.dtd
 http://java.sun.com/dtd/web-app_2_3.dtd 

 web-app
 display-nameNod.to/display-name
 descriptionIndividuality/description
 context-param
 param-nameWebmaster/param-name
 param-value[EMAIL PROTECTED]/param-value
 /context-param
 servlet
 servlet-namedbConnect/servlet-name
 servlet-classto.nod.servlets.dbConnect/servlet-class
 load-on-startup1/load-on-startup
 /servlet

 servlet
 servlet-namelinksPortlet/servlet-name

 servlet-classto.nod.servlets.linksPortlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namelinksPortlet/servlet-name
 url-pattern/links/url-pattern
 /servlet-mapping

 servlet
 servlet-nameNod/servlet-name
 servlet-classto.nod.servlets.Nod/servlet-class
 /servlet
 servlet-mapping
 servlet-nameNod/servlet-name
 url-pattern/app/url-pattern
 /servlet-mapping
 /web-app
 ##

 As far as I know, everything I have in my web.xml is setup correctly.
 Any insight would be great,

 Darren


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




RE: Trouble with my web.xml?

2002-02-18 Thread Greer, Darren (MED)

Thanks all...  Worked Great!

-Original Message-
From: sophie fischer [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 18, 2002 12:26 PM
To: Tomcat Users List
Subject: Re: Trouble with my web.xml?


Hi,

Your xml file should first contain all servlet-tags, and then all
servlet-mapping-tags. The dtd does not allow you to first define a
servlet-part, than a servlet-mapping and then again a servlet
part.

Hope this helps,

Sophie

Greer, Darren (MED) wrote:

 Hey all.  While trying to run my application I am getting the 
 following
 err:
 #
 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?,mim

e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso

urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,e
 jb-ref*,ejb-local-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.3//EN http://java.sun.com/dtd/web-app_2_3.dtd
 http://java.sun.com/dtd/web-app_2_3.dtd 

 web-app
 display-nameNod.to/display-name
 descriptionIndividuality/description
 context-param
 param-nameWebmaster/param-name
 param-value[EMAIL PROTECTED]/param-value
 /context-param
 servlet
 servlet-namedbConnect/servlet-name

servlet-classto.nod.servlets.dbConnect/servlet-class
 load-on-startup1/load-on-startup
 /servlet

 servlet
 servlet-namelinksPortlet/servlet-name

 servlet-classto.nod.servlets.linksPortlet/servlet-class
 /servlet
 servlet-mapping
 servlet-namelinksPortlet/servlet-name
 url-pattern/links/url-pattern
 /servlet-mapping

 servlet
 servlet-nameNod/servlet-name
 servlet-classto.nod.servlets.Nod/servlet-class
 /servlet
 servlet-mapping
 servlet-nameNod/servlet-name
 url-pattern/app/url-pattern
 /servlet-mapping
 /web-app
 ##

 As far as I know, everything I have in my web.xml is setup correctly. 
 Any insight would be great,

 Darren


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

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