From: Matthew B. <mat...@co...> - 2005-07-12 09:17:38
|
Brian Peter Clark wrote: > Could someone please advise me on some dtd/schema problems > that I have. > It's to do with the web.xml file for the latest version of bodington. Is this CVS HEAD or a 2.4.3 WAR? > With the latest tomcat it's servlet 2.4? This now validates against a > schema rather than a dtd. The dtd is pointing to the 2.2 dtd in the > web.xml file. Ok. We should probably update it to at least 2.3. > The Sun Java System App Server (sorry) gives a deployment error > when it looks at the web.xml file. Ok. This is the sort of feedback we need. At the moment almost everyone only uses Tomcat. > Element type "listener" must be declared > > I think that it is objecting to a servlet element occurring before the > listener element is declared. Should the <listener> precede the > <servlet>? Looking at the 2.3 DTD yep: <!ELEMENT web-app (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*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*)> > I don't think they had listeners in 2.2, did they? Listeners came in 2.3 I think. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |