org.apache.commons.digester.Digester error--- at tomcat startup...

2004-09-30 Thread Shilpa Nalgonda
I added some elements in web.xml on linux machine and i get this error, but
i cannot see any problem with web.xml, the same web.xml works fine on
windows...below is my web.xml...can someone please suggest


Sep 30, 2004 9:03:31 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 26 column 11: 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*).
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*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:236)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
2)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:38
0)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:31
4)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:2049)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9
33)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:1083)


web.xml...
!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-nameMyPub XmlRpc/display-name
description
  This is the container to hold the MLRPC calls
/description
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/mydb/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
servlet
servlet-nameXmlRpcServlet/servlet-name
servlet-classXmlRpcServlet/servlet-class
/servlet
servlet-mapping
servlet-nameXmlRpcServlet/servlet-name
url-pattern/rpc/url-pattern
/servlet-mapping
 /web-app
~


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: org.apache.commons.digester.Digester error--- at tomcat startup...

2004-09-30 Thread Shapira, Yoav

Hi,
As the error says pretty clearly, you can't put resource-ref before
servlet using your DTD.  So the same web.xml doesn't work on Windows
or any other platform.

Go validate your web.xml (using a tool like XMLSpy or one of the free
online validators) to see for yourself.  You can simply fix the element
order and stick with the 2.3 DTD, or move to the 2.4 schema  (if using
Tomcat 5.x) and then the element order doesn't matter.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 9:39 AM
To: Tomcat Users List
Subject: org.apache.commons.digester.Digester error--- at tomcat
startup...

I added some elements in web.xml on linux machine and i get this error,
but
i cannot see any problem with web.xml, the same web.xml works fine on
windows...below is my web.xml...can someone please suggest


Sep 30, 2004 9:03:31 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 26 column 11: 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*).
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*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro
rHan
d
lerWrapper.java:236)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja
va:1
7
2)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja
va:3
8
0)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja
va:3
1
4)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid
ator
.
java:2049)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j
ava:
9
33)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XM
LDoc
u
mentFragmentScannerImpl.java:1083)


web.xml...
!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-nameMyPub XmlRpc/display-name
description
  This is the container to hold the MLRPC calls
/description
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/mydb/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
servlet
servlet-nameXmlRpcServlet/servlet-name
servlet-classXmlRpcServlet/servlet-class
/servlet
servlet-mapping
servlet-nameXmlRpcServlet/servlet-name
url-pattern/rpc/url-pattern
/servlet-mapping
 /web-app
~


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]