You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ac...@saysit.com on 2003/09/08 08:14:32 UTC

Puzzling SAXParseException error

Hiya all.
I'am on Apache2/TC404, I was trying to make the Manager Application work
on 404.
I modified the context path in defaultHost="localhost" and a couple of
vosts to include path="/manager" and docbase="manager".
Then I found out I am missing altogether
/path/to/webaps/manager/WEB-INF/
"org.apache.catalina.serv;lets.ManagerServlet"
Nothing I could do, so Ibacked out the changes, but I get this error n
catalina.out on startup and shutdown:

(catalina.out)
Starting service Tomcat-Apache
Apache Tomcat/4.0.4
PARSE error at line 14 column 13
org.xml.sax.SAXParseException: The content of element type "servlet"
must match
"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
Stopping service Tomcat-Apache

Nothwithstanding, everything else under /path/to/webapps/private-stuff
work find - dog's bollock if ever there was one.
So how do I get rid of this spurious SAXParseException error message ?

TIA :-)

Re: Puzzling SAXParseException error

Posted by ac...@saysit.com.
Thanks for taking time to look at the problem.

Tim Funk wrote:
> 
> With the amount of info and config available, I am at a loss. At this point,
> I would start from a virgin install, make sure that works ok. Then start
> making incremental changes and wait for things to error.
> 
> -Tim
> 
> achana@saysit.com wrote:
> 
> > Hiya.
> > Yes, that's what I did before all these troubles started.
> > I've tried removing all the enties that I've made relating to manager
> > and then re-instating them, same error message in catalina.out.
> > Yet TC404 keeps on working.
> > server.xml has not got a DTD, but that's not required.
> >
> >
> > Tim Funk wrote:
> >
> >>The manager webapp is in catalina.jar. In 4.0.4, you declaration for the
> >>manager should look like this:
> >><Context path="/manager" docBase="manager" debug="0" privileged="true"/>
> >>Then there should be manager dir in the webapps directory from the default
> >>tomcat install.
> >>
> >>-Tim
> >>
> >>achana@saysit.com wrote:
> >>
> >>
> >>>Hi Tim.
> >>>Thx for the tip.
> >>>I think it is complaining about not finding
> >>>org.apache.catalina.servlets.ManagerServlet, which is in
> >>>path/to/manager/WEB-INF/web.xml
> >>>In the meantime I've commented out the path and docBase for manager in
> >>>server.xml, but the error persists without affecting any other apps.
> >>>Opening the web.xml with Mozilla simply shows a long, unbroken,
> >>>hard-to-read string of code.
> >>>Do you know where I can get a copy of
> >>>org.apache.catalina.servlets.ManagerServlet for 4.0.4 ?
> >>>Arthur :-)
> >>>
> >>>Tim Funk wrote:
> >>>
> >>>
> >>>>Make sure your web.xml file(s) (and maybe server.xml) are all valid XML
> >>>>documents.
> >>>>
> >>>>An easy way to do that is to open them in IE or mozilla.
> >>>>
> >>>>For web.xml - also make sure it is valid against its dtd.
> >>>>
> >>>>-Tim
> >>>>
> >>>>achana@saysit.com wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hiya all.
> >>>>>I'am on Apache2/TC404, I was trying to make the Manager Application work
> >>>>>on 404.
> >>>>>I modified the context path in defaultHost="localhost" and a couple of
> >>>>>vosts to include path="/manager" and docbase="manager".
> >>>>>Then I found out I am missing altogether
> >>>>>/path/to/webaps/manager/WEB-INF/
> >>>>>"org.apache.catalina.serv;lets.ManagerServlet"
> >>>>>Nothing I could do, so Ibacked out the changes, but I get this error n
> >>>>>catalina.out on startup and shutdown:
> >>>>>
> >>>>>(catalina.out)
> >>>>>Starting service Tomcat-Apache
> >>>>>Apache Tomcat/4.0.4
> >>>>>PARSE error at line 14 column 13
> >>>>>org.xml.sax.SAXParseException: The content of element type "servlet"
> >>>>>must match
> >>>>>"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
> >>>>>Stopping service Tomcat-Apache
> >>>>>
> >>>>>Nothwithstanding, everything else under /path/to/webapps/private-stuff
> >>>>>work find - dog's bollock if ever there was one.
> >>>>>So how do I get rid of this spurious SAXParseException error message ?
> >>>>>
> >>>>>TIA :-)
> >>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>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
> >>>
> >>>
> >>
> >>---------------------------------------------------------------------
> >>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

Re: Puzzling SAXParseException error

Posted by Tim Funk <fu...@joedog.org>.
With the amount of info and config available, I am at a loss. At this point, 
I would start from a virgin install, make sure that works ok. Then start 
making incremental changes and wait for things to error.

-Tim

achana@saysit.com wrote:

> Hiya.
> Yes, that's what I did before all these troubles started.
> I've tried removing all the enties that I've made relating to manager
> and then re-instating them, same error message in catalina.out.
> Yet TC404 keeps on working.
> server.xml has not got a DTD, but that's not required.
> 
> 
> Tim Funk wrote:
> 
>>The manager webapp is in catalina.jar. In 4.0.4, you declaration for the
>>manager should look like this:
>><Context path="/manager" docBase="manager" debug="0" privileged="true"/>
>>Then there should be manager dir in the webapps directory from the default
>>tomcat install.
>>
>>-Tim
>>
>>achana@saysit.com wrote:
>>
>>
>>>Hi Tim.
>>>Thx for the tip.
>>>I think it is complaining about not finding
>>>org.apache.catalina.servlets.ManagerServlet, which is in
>>>path/to/manager/WEB-INF/web.xml
>>>In the meantime I've commented out the path and docBase for manager in
>>>server.xml, but the error persists without affecting any other apps.
>>>Opening the web.xml with Mozilla simply shows a long, unbroken,
>>>hard-to-read string of code.
>>>Do you know where I can get a copy of
>>>org.apache.catalina.servlets.ManagerServlet for 4.0.4 ?
>>>Arthur :-)
>>>
>>>Tim Funk wrote:
>>>
>>>
>>>>Make sure your web.xml file(s) (and maybe server.xml) are all valid XML
>>>>documents.
>>>>
>>>>An easy way to do that is to open them in IE or mozilla.
>>>>
>>>>For web.xml - also make sure it is valid against its dtd.
>>>>
>>>>-Tim
>>>>
>>>>achana@saysit.com wrote:
>>>>
>>>>
>>>>
>>>>>Hiya all.
>>>>>I'am on Apache2/TC404, I was trying to make the Manager Application work
>>>>>on 404.
>>>>>I modified the context path in defaultHost="localhost" and a couple of
>>>>>vosts to include path="/manager" and docbase="manager".
>>>>>Then I found out I am missing altogether
>>>>>/path/to/webaps/manager/WEB-INF/
>>>>>"org.apache.catalina.serv;lets.ManagerServlet"
>>>>>Nothing I could do, so Ibacked out the changes, but I get this error n
>>>>>catalina.out on startup and shutdown:
>>>>>
>>>>>(catalina.out)
>>>>>Starting service Tomcat-Apache
>>>>>Apache Tomcat/4.0.4
>>>>>PARSE error at line 14 column 13
>>>>>org.xml.sax.SAXParseException: The content of element type "servlet"
>>>>>must match
>>>>>"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
>>>>>Stopping service Tomcat-Apache
>>>>>
>>>>>Nothwithstanding, everything else under /path/to/webapps/private-stuff
>>>>>work find - dog's bollock if ever there was one.
>>>>>So how do I get rid of this spurious SAXParseException error message ?
>>>>>
>>>>>TIA :-)
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>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
>>>
>>>
>>
>>---------------------------------------------------------------------
>>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: Puzzling SAXParseException error

Posted by ac...@saysit.com.
Hiya.
Yes, that's what I did before all these troubles started.
I've tried removing all the enties that I've made relating to manager
and then re-instating them, same error message in catalina.out.
Yet TC404 keeps on working.
server.xml has not got a DTD, but that's not required.


Tim Funk wrote:
> 
> The manager webapp is in catalina.jar. In 4.0.4, you declaration for the
> manager should look like this:
> <Context path="/manager" docBase="manager" debug="0" privileged="true"/>
> Then there should be manager dir in the webapps directory from the default
> tomcat install.
> 
> -Tim
> 
> achana@saysit.com wrote:
> 
> > Hi Tim.
> > Thx for the tip.
> > I think it is complaining about not finding
> > org.apache.catalina.servlets.ManagerServlet, which is in
> > path/to/manager/WEB-INF/web.xml
> > In the meantime I've commented out the path and docBase for manager in
> > server.xml, but the error persists without affecting any other apps.
> > Opening the web.xml with Mozilla simply shows a long, unbroken,
> > hard-to-read string of code.
> > Do you know where I can get a copy of
> > org.apache.catalina.servlets.ManagerServlet for 4.0.4 ?
> > Arthur :-)
> >
> > Tim Funk wrote:
> >
> >>Make sure your web.xml file(s) (and maybe server.xml) are all valid XML
> >>documents.
> >>
> >>An easy way to do that is to open them in IE or mozilla.
> >>
> >>For web.xml - also make sure it is valid against its dtd.
> >>
> >>-Tim
> >>
> >>achana@saysit.com wrote:
> >>
> >>
> >>>Hiya all.
> >>>I'am on Apache2/TC404, I was trying to make the Manager Application work
> >>>on 404.
> >>>I modified the context path in defaultHost="localhost" and a couple of
> >>>vosts to include path="/manager" and docbase="manager".
> >>>Then I found out I am missing altogether
> >>>/path/to/webaps/manager/WEB-INF/
> >>>"org.apache.catalina.serv;lets.ManagerServlet"
> >>>Nothing I could do, so Ibacked out the changes, but I get this error n
> >>>catalina.out on startup and shutdown:
> >>>
> >>>(catalina.out)
> >>>Starting service Tomcat-Apache
> >>>Apache Tomcat/4.0.4
> >>>PARSE error at line 14 column 13
> >>>org.xml.sax.SAXParseException: The content of element type "servlet"
> >>>must match
> >>>"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
> >>>Stopping service Tomcat-Apache
> >>>
> >>>Nothwithstanding, everything else under /path/to/webapps/private-stuff
> >>>work find - dog's bollock if ever there was one.
> >>>So how do I get rid of this spurious SAXParseException error message ?
> >>>
> >>>TIA :-)
> >>>
> >>>---------------------------------------------------------------------
> >>>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
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Re: Puzzling SAXParseException error

Posted by Tim Funk <fu...@joedog.org>.
The manager webapp is in catalina.jar. In 4.0.4, you declaration for the 
manager should look like this:
<Context path="/manager" docBase="manager" debug="0" privileged="true"/>
Then there should be manager dir in the webapps directory from the default 
tomcat install.

-Tim

achana@saysit.com wrote:

> Hi Tim.
> Thx for the tip.
> I think it is complaining about not finding
> org.apache.catalina.servlets.ManagerServlet, which is in
> path/to/manager/WEB-INF/web.xml
> In the meantime I've commented out the path and docBase for manager in
> server.xml, but the error persists without affecting any other apps.
> Opening the web.xml with Mozilla simply shows a long, unbroken,
> hard-to-read string of code.
> Do you know where I can get a copy of
> org.apache.catalina.servlets.ManagerServlet for 4.0.4 ?
> Arthur :-)
> 
> Tim Funk wrote:
> 
>>Make sure your web.xml file(s) (and maybe server.xml) are all valid XML
>>documents.
>>
>>An easy way to do that is to open them in IE or mozilla.
>>
>>For web.xml - also make sure it is valid against its dtd.
>>
>>-Tim
>>
>>achana@saysit.com wrote:
>>
>>
>>>Hiya all.
>>>I'am on Apache2/TC404, I was trying to make the Manager Application work
>>>on 404.
>>>I modified the context path in defaultHost="localhost" and a couple of
>>>vosts to include path="/manager" and docbase="manager".
>>>Then I found out I am missing altogether
>>>/path/to/webaps/manager/WEB-INF/
>>>"org.apache.catalina.serv;lets.ManagerServlet"
>>>Nothing I could do, so Ibacked out the changes, but I get this error n
>>>catalina.out on startup and shutdown:
>>>
>>>(catalina.out)
>>>Starting service Tomcat-Apache
>>>Apache Tomcat/4.0.4
>>>PARSE error at line 14 column 13
>>>org.xml.sax.SAXParseException: The content of element type "servlet"
>>>must match
>>>"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
>>>Stopping service Tomcat-Apache
>>>
>>>Nothwithstanding, everything else under /path/to/webapps/private-stuff
>>>work find - dog's bollock if ever there was one.
>>>So how do I get rid of this spurious SAXParseException error message ?
>>>
>>>TIA :-)
>>>
>>>---------------------------------------------------------------------
>>>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
> 
> 


Re: Puzzling SAXParseException error

Posted by ac...@saysit.com.
Hi Tim.
Thx for the tip.
I think it is complaining about not finding
org.apache.catalina.servlets.ManagerServlet, which is in
path/to/manager/WEB-INF/web.xml
In the meantime I've commented out the path and docBase for manager in
server.xml, but the error persists without affecting any other apps.
Opening the web.xml with Mozilla simply shows a long, unbroken,
hard-to-read string of code.
Do you know where I can get a copy of
org.apache.catalina.servlets.ManagerServlet for 4.0.4 ?
Arthur :-)

Tim Funk wrote:
> 
> Make sure your web.xml file(s) (and maybe server.xml) are all valid XML
> documents.
> 
> An easy way to do that is to open them in IE or mozilla.
> 
> For web.xml - also make sure it is valid against its dtd.
> 
> -Tim
> 
> achana@saysit.com wrote:
> 
> > Hiya all.
> > I'am on Apache2/TC404, I was trying to make the Manager Application work
> > on 404.
> > I modified the context path in defaultHost="localhost" and a couple of
> > vosts to include path="/manager" and docbase="manager".
> > Then I found out I am missing altogether
> > /path/to/webaps/manager/WEB-INF/
> > "org.apache.catalina.serv;lets.ManagerServlet"
> > Nothing I could do, so Ibacked out the changes, but I get this error n
> > catalina.out on startup and shutdown:
> >
> > (catalina.out)
> > Starting service Tomcat-Apache
> > Apache Tomcat/4.0.4
> > PARSE error at line 14 column 13
> > org.xml.sax.SAXParseException: The content of element type "servlet"
> > must match
> > "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
> > Stopping service Tomcat-Apache
> >
> > Nothwithstanding, everything else under /path/to/webapps/private-stuff
> > work find - dog's bollock if ever there was one.
> > So how do I get rid of this spurious SAXParseException error message ?
> >
> > TIA :-)
> >
> > ---------------------------------------------------------------------
> > 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: Puzzling SAXParseException error

Posted by Tim Funk <fu...@joedog.org>.
Make sure your web.xml file(s) (and maybe server.xml) are all valid XML 
documents.

An easy way to do that is to open them in IE or mozilla.

For web.xml - also make sure it is valid against its dtd.

-Tim

achana@saysit.com wrote:

> Hiya all.
> I'am on Apache2/TC404, I was trying to make the Manager Application work
> on 404.
> I modified the context path in defaultHost="localhost" and a couple of
> vosts to include path="/manager" and docbase="manager".
> Then I found out I am missing altogether
> /path/to/webaps/manager/WEB-INF/
> "org.apache.catalina.serv;lets.ManagerServlet"
> Nothing I could do, so Ibacked out the changes, but I get this error n
> catalina.out on startup and shutdown:
> 
> (catalina.out)
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.4
> PARSE error at line 14 column 13
> org.xml.sax.SAXParseException: The content of element type "servlet"
> must match
> "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
> Stopping service Tomcat-Apache
> 
> Nothwithstanding, everything else under /path/to/webapps/private-stuff
> work find - dog's bollock if ever there was one.
> So how do I get rid of this spurious SAXParseException error message ?
> 
> TIA :-)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>