tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Þór Hübner <rey...@hugsmidjan.is>
Subject Re: Error in web.xml
Date Thu, 25 Nov 2004 09:49:26 GMT
display-name block should be before listeners block.

hope it helps
-reynir


Allistair Crossley wrote:
> yes, so the error tells you that you ordering of elements is wrong. check the order against
(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*,ogin-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)
> 
> Allistair 
> 
> 
>>-----Original Message-----
>>From: akki [mailto:akki@bhelhwr.co.in]
>>Sent: 25 November 2004 09:31
>>To: Tomcat Users List
>>Subject: RE: Error in web.xml
>>
>>
>>
>>thanks for reply....
>>
>>the  error message what i m getting in log file
>>is
>>
>>Nov 25, 2004 2:30:36 PM org.apache.commons.digester.Digester error
>>SEVERE: Parse Error at line 95 column 11: 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-config?,mime-mapping*,welcome-file-list?,error-page*,
>>taglib*,resource-env-ref*,resource-ref*,security-constraint*,l
>>ogin-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
>>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-config?,mime-mapping*,welcome-file-list?,error-page*,
>>taglib*,resource-env-ref*,resource-ref*,security-constraint*,l
>>ogin-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
>>	at 
>>org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcep
>>tion(ErrorHandlerWrapper.java:232)
>>	at 
>>org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerW
>>rapper.java:173)
>>	at 
>>org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe
>>porter.java:371)
>>	at 
>>org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe
>>porter.java:305)
>>	at 
>>org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XM
>>LDTDValidator.java:1918)
>>	at 
>>org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDVa
>>lidator.java:851)
>>	at 
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE
>>lement(XMLDocumentFragmentScannerImpl.java:1008)
>>	at 
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
>>ContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
>>	at 
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
>>ment(XMLDocumentFragmentScannerImpl.java:329)
>>	at 
>>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat
>>ion.java:525)
>>	at 
>>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat
>>ion.java:581)
>>	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>>	at 
>>org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP
>>arser.java:1175)
>>	at 
>>org.apache.commons.digester.Digester.parse(Digester.java:1495)
>>	at 
>>org.apache.catalina.startup.ContextConfig.applicationConfig(Co
>>ntextConfig.java:282)
>>	at 
>>org.apache.catalina.startup.ContextConfig.start(ContextConfig.
>>java:639)
>>	at 
>>org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte
>>xtConfig.java:243)
>>	at 
>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
>>ifecycleSupport.java:166)
>>	at 
>>org.apache.catalina.core.StandardContext.start(StandardContext
>>.java:3567)
>>	at 
>>org.apache.catalina.core.ContainerBase.addChildInternal(Contai
>>nerBase.java:821)
>>	at 
>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
>>java:807)
>>	at 
>>org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>>	at 
>>org.apache.catalina.core.StandardHostDeployer.addChild(Standar
>>dHostDeployer.java:529)
>>	at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
>>	at 
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
>>odAccessorImpl.java:25)
>>	at java.lang.reflect.Method.invoke(Method.java:324)
>>	at 
>>org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUt
>>ils.java:228)
>>	at 
>>org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>>	at 
>>org.apache.commons.digester.Digester.endElement(Digester.java:1036)
>>	at 
>>org.apache.xerces.parsers.AbstractSAXParser.endElement(Abstrac
>>tSAXParser.java:585)
>>	at 
>>org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamesp
>>aceBinder.java:647)
>>	at 
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE
>>lement(XMLDocumentFragmentScannerImpl.java:1008)
>>	at 
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
>>ContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
>>	at 
>>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
>>ment(XMLDocumentFragmentScannerImpl.java:329)
>>	at 
>>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat
>>ion.java:525)
>>	at 
>>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfigurat
>>ion.java:581)
>>	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>>	at 
>>org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP
>>arser.java:1175)
>>	at 
>>org.apache.commons.digester.Digester.parse(Digester.java:1514)
>>	at 
>>org.apache.catalina.core.StandardHostDeployer.install(Standard
>>HostDeployer.java:335)
>>	at 
>>org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
>>	at 
>>org.apache.catalina.startup.HostConfig.deployDescriptors(HostC
>>onfig.java:452)
>>	at 
>>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
>>	at 
>>org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
>>	at 
>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
>>ig.java:368)
>>	at 
>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
>>ifecycleSupport.java:166)
>>	at 
>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
>>	at 
>>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>>	at 
>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>>	at 
>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>>	at 
>>org.apache.catalina.core.StandardService.start(StandardService
>>.java:497)
>>	at 
>>org.apache.catalina.core.StandardServer.start(StandardServer.j
>>ava:2189)
>>	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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>	at 
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
>>orImpl.java:39)
>>	at 
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
>>odAccessorImpl.java:25)
>>	at java.lang.reflect.Method.invoke(Method.java:324)
>>	at 
>>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>>
>>
>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
>>
>>Regards
>>  
>>Akki
>>Engineer
>>ITX 
>>BHEL,HARDWAR
>>Available at 5405,4553
>>"The greatest mistake you can make in life is to be 
>>continually fearing you will make one" 
>>
>>
>>
>>-----Original Message-----
>>From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com]
>>Sent: Thursday, November 25, 2004 2:50 PM
>>To: Tomcat Users List
>>Subject: RE: Error in web.xml
>>
>>
>>you will need to tell us why you believe it is *not* valid. 
>>have you an error message to share?
>>
>>Allistair 
>>
>>
>>>-----Original Message-----
>>>From: akki [mailto:akki@bhelhwr.co.in]
>>>Sent: 25 November 2004 09:08
>>>To: Tomcat Users List
>>>Subject: Error in web.xml
>>>
>>>
>>>hi all....
>>>
>>>i want to know whether there is some syntactical error
>>>
>>>in this web.xml file of my apps...
>>>
>>><?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>
>>><listener> 
>>>   <listener-class> 
>>>    com.cj.sesslist.statListener 
>>>   </listener-class> 
>>></listener> 
>>><listener> 
>>>   <listener-class> 
>>>    com.cj.sessadm.admListener 
>>>   </listener-class> 
>>></listener> 
>>>
>>>    
>>><display-name>Test Examples</display-name>
>>>    <description>
>>>      Testing Example servlets and JSP pages.
>>>    </description>
>>><servlet> 
>>>    <servlet-name>Search</servlet-name> 
>>>    <servlet-class>com.cj.search.SearchServlet</servlet-class> 
>>></servlet> 
>>>
>>>    <servlet>
>>>        <servlet-name>Hello</servlet-name>
>>>        <servlet-class>Hello</servlet-class>
>>>    </servlet>
>>>
>>>	<servlet-mapping> 
>>>     <servlet-name>Search</servlet-name> 
>>>     <url-pattern>/servlet/Search</url-pattern> 
>>>   	</servlet-mapping> 
>>>
>>>
>>>    <servlet-mapping>
>>>        <servlet-name>invoker</servlet-name>
>>>        <url-pattern>/servlet/*</url-pattern>
>>>    </servlet-mapping>
>>>
>>>	<session-config>
>>>        <session-timeout>
>>>                300
>>>        </session-timeout>
>>>	</session-config>
>>>
>>><taglib>
>>>	<taglib-uri>
>>>		http://jakarta.apache.org/taglibs/datetime
>>>	</taglib-uri>
>>>	<taglib-location>
>>>		/WEB-INF/tlds/jaktl/datetime/datetime.tld
>>>       	</taglib-location>
>>></taglib>
>>><taglib>
>>>	<taglib-uri>
>>>		http://www.servletsuite.com/servlets/errortag
>>>	</taglib-uri>
>>>	<taglib-location>
>>>		/WEB-INF/tlds/errortag.tld
>>>       	</taglib-location>
>>></taglib>
>>><taglib>
>>>	<taglib-uri>
>>>		http://jakarta.apache.org/taglibs/mailer
>>>	</taglib-uri>
>>>	<taglib-location>
>>>		/WEB-INF/tlds/jaktl/mailer/mailer.tld
>>>       	</taglib-location>
>>></taglib>
>>><taglib>
>>>	<taglib-uri>
>>>		sendmail
>>>	</taglib-uri>
>>>	<taglib-location>
>>>		/WEB-INF/tlds/sendmail.tld
>>>	</taglib-location>
>>></taglib>
>>>
>>><welcome-file-list>
>>>        <welcome-file>
>>>                index.jsp
>>>        </welcome-file>
>>>        <welcome-file>
>>>                index.html
>>>        </welcome-file>
>>>        <welcome-file>
>>>                index.htm
>>>        </welcome-file>
>>></welcome-file-list>
>>>
>>></web-app>
>>>
>>>thanks in advance
>>>
>>>Regards
>>>  
>>>Akki
>>>Engineer
>>>ITX 
>>>BHEL,HARDWAR
>>>Available at 5405,4553
>>>"The greatest mistake you can make in life is to be 
>>>continually fearing you will make one" 
>>>
>>>
>>>
>>
>>
>><FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
>>-------------------------------------------------------
>>QAS Ltd.
>>Developers of QuickAddress Software
>><a href="http://www.qas.com">www.qas.com</a>
>>Registered in England: No 2582055
>>Registered in Australia: No 082 851 474
>>-------------------------------------------------------
>></FONT>
>>
>>
> 

---------------------------------------------------------------------
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