Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

web.xml issue

 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I am having problems with my web.xml file. When I start Tomcat 4.0.4, I get the following on my DOS window:

Also, here is my web.xml file. Note:When I delete the portion dedicated to the TopLineGenerator, the HelloWorld servlet comes up fine. But neither comes up when I add it in and I get the message above.

Any ideas?
Thanks,
[ June 26, 2002: Message edited by: Jason Kretzer ]
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
XML DTD's give you the required structure of XML files. You are throwing a parse exception, so something is wrong with your structure.

As a guide...
(icon?, display-name? ... context-param*, filter* ... servlet*, servlet-mapping* ...)

( - start the element
? - optional
* - can be 0 to many
, - list seperator -> order IS implied.
(and ... is my way of snipping out things)

So the above example could be read out: A web-app element is composed of optionally an icon followed by optionally a display-name followed by zero or more context-params followed by zero or more filters followed by zero or more servlets followed by zero or more servlet-mappings

the "order IS implied" is the big clue.
[ June 26, 2002: Message edited by: Mike Curwen ]
 
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just list ALL your <servlet> elements first, followed by the <servlet-mapping> elements.
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic