I think some basic XML guidance is in order: Also consider doing some google on it: If you know the syntax, you should never need to get frustrated or make mistakes.
1. Every XML element needs to be closed. This is usually in one of two formats: Either the element does not have any embedded elements, in which case you close the element directly, or there is some embedded elements, and you need to have a separate closing element. As example: Say you only have a context element without any embedded attributes ... <Context attribute1="Blah" attribute2="Bloh" /> The element is closed with the / tag. or you have embedded attributes ... <Context> <Attribute value="blah" /> <Attribute value="bloh" /> </Context> If you follow basic XML guide lines everything should be OK. Another very common mistake is incorrect commenting ... A XML comment is the same as a HTML comment, ie. <!-- --> Now, the mistake a lot of people make is to embed dashes in the comment ... Stuff like <!-- -- This is a Broken Comment and any decent XML-- Parser will complain --> A comment ends with -- , not with -->, so as soon as the parser sees another dash, it thinks that you are closing the comment, but it doesn't get the closing tag, so chaos evolves ... <!-- A proper comment may not contain dashes --> on the other hand is an example of a proper xml comment. hth, Paul On Mon, 2003-03-17 at 22:00, Geoff Peters wrote: > Sandra - I have had similar experiences with similar frustrating results, and it > always seems to be placement of the <Context> </Context> tags - for some reason > sometimes you need closing </Context> tags, other times you don't, I can't seem to > figure out when to use them and when not to, so I end up fiddling around with > various combinations until Tomcat starts! (that was a really dumb answer but it > works for me) > > Geoff > > -----Original Message----- > From: Hunter, Sandra [mailto:[EMAIL PROTECTED] > Sent: Monday, March 17, 2003 5:00 PM > To: 'Tomcat Users List' > Subject: Server.xml > > > > Frustration abounds: > I am plodding through a tomcat tutorial and it suggests modifying the > Server.xml file to include a new context path line to allow for playing with > a sample file. > Everything works tickety boo until I do that, then Tomcat won't startup at > all. When I enter the startup command I just get a really brief flash of > screen and poof! It's gone again. > When I take the new line out of the server.xml file the problem persists: > poof! Gone. > That is the only change I make. > Any thoughts? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]