tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: Problem in Parsing - Error while doing lookup - HELP
Date Wed, 11 May 2005 15:29:56 GMT
Are the elements in the web.xml in order as listed in the exception
report below?  Since your web.xml is being validated against a DTD, the
elements have to be in order.

--David

Sanjeev Srivastava wrote:

>Hi All!,
>                  I saw your mail-id and response on
>Java Forum. I am stuck in some problem with web.xml,
>hope you can help me out. I am able to start the
>tomcat but web.xml is giving me problem " Error whiel
>doing lookup". I don't see anything wrong in web.xml.
>Please HELP.
>
>Please find below the logs:
>
>WebappClassLoader:
>validateJarFile(/var/ian/pdgm/tomcat/webapps/pdgm/WEB-INF/lib
>/javax.jar) - jar not loaded. See Servlet Spec 2.3,
>section 9.7.2. Offending cla
>ss: javax/servlet/Servlet.class
>[ERROR] Digester - -Parse Error at line 870 column 11:
>The content of element ty
>pe "web-app" must match
>"(icon?,display-name?,description?,distributable?,contex
>t-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-con
>fig?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,reso
>urce-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,
>ejb-local-ref*)". <org.xml.sax.SAXParseException: The
>content of element type "w
>eb-app" must match
>"(icon?,display-name?,description?,distributable?,context-par
>am*,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-l
>ocal-ref*)".>org.xml.sax.SAXParseException: The
>content of element type "web-app
>" must match
>"(icon?,display-name?,description?,distributable?,context-param*,fi
>lter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-m
>apping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,s
>ecurity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-r
>ef*)".
>        at
>org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
>known Source)
>        at
>org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
>Source)
>        at
>org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>Source)
>        at
>org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>Source)
>        at
>org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
>S
>ource)
>        at
>org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
>Source)
>        at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
>Unknown Source)
>        at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
>Dispatcher.dispatch(Unknown Source)
>        at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
>known Source)
>        at
>org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>        at
>org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
>Source)
>        at
>org.apache.xerces.parsers.XMLParser.parse(Unknown
>Source)
>        at
>org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>Source)
>        at
>org.apache.commons.digester.Digester.parse(Digester.java:1548)
>        at
>org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig
>.java:548)
>        at
>org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
>8)
>        at
>org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
>g.java:243)
>        at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>eSupport.java:166)
>        at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:3
>582)
>        at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>        at
>org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
>        at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>        at
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363
>)
>        at
>org.apache.catalina.core.StandardService.start(StandardService.java:4
>97)
>        at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:219
>0)
>        at
>org.apache.catalina.startup.Catalina.start(Catalina.java:512)
>                                                      
>       126,1-8       57%
>        at
>org.apache.catalina.core.StandardService.start(StandardService.java:4
>97)
>        at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:219
>0)
>        at
>org.apache.catalina.startup.Catalina.start(Catalina.java:512)
>        at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>        at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>        at java.lang.reflect.Method.invoke(Native
>Method)
>        at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>
>[ERROR] Digester - -Parse Error at line 55 column 11:
>The content of element typ
>e "web-app" must match
>"(icon?,display-name?,description?,distributable?,context
>-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-conf
>ig?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resou
>rce-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,e
>jb-local-ref*)". <org.xml.sax.SAXParseException: The
>content of element type "we
>b-app" must match
>"(icon?,display-name?,description?,distributable?,context-para
>m*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,m
>ime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-r
>ef*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-lo
>cal-ref*)".>org.xml.sax.SAXParseException: The content
>of element type "web-app"
> must match
>"(icon?,display-name?,description?,distributable?,context-param*,fil
>ter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-ma
>pping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
>curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-re
>f*)".
>        at
>org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
>known Source)
>        at
>org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
>Source)
>        at
>org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>Source)
>        at
>org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>Source)
>        at
>org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
>S
>ource)
>        at
>org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
>Source)
>        at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
>Unknown Source)
>        at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
>Dispatcher.dispatch(Unknown Source)
>        at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
>known Source)
>        at
>org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>        at
>org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
>Source)
>        at
>org.apache.xerces.parsers.XMLParser.parse(Unknown
>Source)
>        at
>org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>Source)
>        at
>org.apache.commons.digester.Digester.parse(Digester.java:1548)
>        at
>org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
>nfig.java:282)
>        at
>org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
>9)
>        at
>org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
>g.java:243)
>        at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>eSupport.java:166)
>        at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:3
>582)
>        at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>        at
>org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
>        at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>        at
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363
>)
>                                                      
>       155,1-8       75%
>
>
>
>
>
>Regards,
>Sanjeev
>
>
>		
>___________________________________________________________ 
>How much free photo storage do you get? Store your holiday 
>snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>


-- 
=======================================
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture & Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939



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


Mime
View raw message