You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by JS <sm...@dcs.kcl.ac.uk> on 2003/04/09 23:39:11 UTC

Re: the dreaded org.xml.sax.SAXParseException error...got the bugger!!!

Hiya....
Thanks for your help G.Wade and everyone. Finally got the bug. Basically
trawled through all the web.xml files that I felt were the likely suspects
(i.e. all those I touched).Problem was that some of my tags weren't in the correct order as defined
by the Sun DTD for web.xmlMy fault really as I had been using the structure given in a book which
used a different version of tomcat. D'oh!!
Anyway, thanks again.
JS

> I would suggest looking at all of the web.xml files under the
> CATALINA_HOME directory. (In Windows, you can use "dir /s web.xml".)
>
> You'll pretty much want to look at line 18 of all of them to find the
> one with the problem, I think. I don't know if anyone knows of a way to
> identify which web.xml file got stomped.
>
> Or...You could do a clean install of Tomcat and then add in your
> webapps and any changes you've made to the main files.
>
> Good luck,
> G. Wade
>
> JS wrote:
>>
>> Thanks for this, the thought did cross my mind. I think that tomcat
>> and I are definitely talking about different web.xml files because
>> when I remove nearly all the tags, it still pops up with an error at
>> line 18 col 12. I've deleted the old web xml, added a new one, and
>> still no luck. Any ideas on where I can go from here??
>>
>> Many thanks
>> JS
>>
>> > In other XML applications when I've had a validation error on code
>> > that I could see was obviously right, it turned out that I was
>> > looking at a different file than the program was.
>> >
>> > So, at the risk of sounding obnoxious are you sure you're looking at
>> > the right file?
>> >
>> > The other thing that has bitten me is an invalid character in my
>> > content.
>> >
>> > Just a thought,
>> > G. Wade
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For
> additional commands, e-mail: tomcat-user-help@jakarta.apache.org




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


RE: the dreaded org.xml.sax.SAXParseException error...got the bugger!!!

Posted by Filip Hanik <ma...@filip.net>.
well, in the next servlet spec, the web.xml will relax on the ordering of
elements :)

> -----Original Message-----
> From: JS [mailto:smartt@dcs.kcl.ac.uk]
> Sent: Wednesday, April 09, 2003 2:39 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: the dreaded org.xml.sax.SAXParseException error...got the
> bugger!!!
>
>
> Hiya....
> Thanks for your help G.Wade and everyone. Finally got the bug. Basically
> trawled through all the web.xml files that I felt were the likely suspects
> (i.e. all those I touched).Problem was that some of my tags
> weren't in the correct order as defined
> by the Sun DTD for web.xmlMy fault really as I had been using the
> structure given in a book which
> used a different version of tomcat. D'oh!!
> Anyway, thanks again.
> JS
>
> > I would suggest looking at all of the web.xml files under the
> > CATALINA_HOME directory. (In Windows, you can use "dir /s web.xml".)
> >
> > You'll pretty much want to look at line 18 of all of them to find the
> > one with the problem, I think. I don't know if anyone knows of a way to
> > identify which web.xml file got stomped.
> >
> > Or...You could do a clean install of Tomcat and then add in your
> > webapps and any changes you've made to the main files.
> >
> > Good luck,
> > G. Wade
> >
> > JS wrote:
> >>
> >> Thanks for this, the thought did cross my mind. I think that tomcat
> >> and I are definitely talking about different web.xml files because
> >> when I remove nearly all the tags, it still pops up with an error at
> >> line 18 col 12. I've deleted the old web xml, added a new one, and
> >> still no luck. Any ideas on where I can go from here??
> >>
> >> Many thanks
> >> JS
> >>
> >> > In other XML applications when I've had a validation error on code
> >> > that I could see was obviously right, it turned out that I was
> >> > looking at a different file than the program was.
> >> >
> >> > So, at the risk of sounding obnoxious are you sure you're looking at
> >> > the right file?
> >> >
> >> > The other thing that has bitten me is an invalid character in my
> >> > content.
> >> >
> >> > Just a thought,
> >> > G. Wade
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For
> > additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


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