aspose file tools*
The moose likes Tomcat and the fly likes Tomcat newbie plz help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat newbie plz help" Watch "Tomcat newbie plz help" New topic
Author

Tomcat newbie plz help

Rex Rock
Ranch Hand

Joined: Jun 25, 2001
Posts: 82
I'm getting this error when i start tomcat..am new to tomcat.
can someone help me here. plz
<code>
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
PARSE error at line 52 column 16
org.xml.sax.SAXParseException: The content of element type "servlet" must match
"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-pa
ram*,load-on-startup?,security-role-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
</code>
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
You may get more response to this in the Apache/Tomcat forum. I will move this there for you.
Matthew Phillips

Matthew Phillips
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I'm pretty sure I saw a response to this post, perhaps it was cross posted, or the response got lost in the move...

In fact, I think it was William... anyways...

It looks like your server.xml file might be slightly corrupted, or even one of the web.xml files in the webapps directory.

If you're like me, and trying to validate an XML file by eye alone gives you a headache, use a pretty cool editor I found ( xmlspy ). With a single click of a button, it will check for well-formedness, and validate against the DTD.

Beaumont Muni
Greenhorn

Joined: Nov 29, 2001
Posts: 5
This is usually indicative of perhaps a corrupt web.xml file that contains definitions for your servlet. You might want to look at the webapps/<some application>/WEB-INF/web.xml file and look for specifically at line 52 to see if the tag in question is corrupt. When tomcat starts up, the SaxParser checks the integrity of web.xml files for your applications (which are usually located under the WEB-INF directories of individual applications. You need to look at the error very carefully to find out where specifically this problem is occuring.
good luck

Originally posted by Rex Rock:
I'm getting this error when i start tomcat..am new to tomcat.
can someone help me here. plz
<code>
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
PARSE error at line 52 column 16
org.xml.sax.SAXParseException: The content of element type "servlet" must match
"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-pa
ram*,load-on-startup?,security-role-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
</code>

 
wood burning stoves
 
subject: Tomcat newbie plz help