-
1. Re: web-app DTD version
jagadishm Apr 19, 2004 9:52 AM (in response to jagadishm)"jagadishm" wrote:
Hi
i am new to Jboos.i had created one war file.
in 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">
in that i am using listener elements.it is working on tomcat 4.*.
but in jboss it throws SAXParseException .
and i am using jboss-3.2.2RC1 version.
thankyou. -
2. Re: web-app DTD version
spiritualmechanic Apr 19, 2004 9:53 AM (in response to jagadishm)What does the SAXParseException say?
-
3. Re: web-app DTD version
jagadishm Apr 21, 2004 12:11 AM (in response to jagadishm)
org.xml.sax.SAXParseException: Element type "listener" must be decl
ared.
2004-04-19 13:57:40,437 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/export/home1/orga/jboss-3.2.2RC1/server/default/tmp/de
ploy/tmp41435wapapps.war/WEB-INF/web.xml line:175 col:25 : org.xml.sax.SAXParseException: Element type "listener-class" must b
e declared.
2004-04-19 13:57:40,442 WARN [org.jboss.jbossweb] WARNING: ERROR@file:/export/home1/orga/jboss-3.2.2RC1/server/default/tmp/de
ploy/tmp41435wapapps.war/WEB-INF/web.xml line:209 col:11 : 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-m
apping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-
ref*)".
2004-04-19 13:57:40,450 WARN [org.jboss.jbossweb] WARNING: Configuration error on file:/export/home1/orga/jboss-3.2.2RC1/serv
er/default/tmp/deploy/tmp41435wapapps.war/
org.xml.sax.SAXParseException: Element type "listener" must be declared.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:2874)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:792)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScanner
Impl.java:1454)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)