• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat newbie plz help

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may get more response to this in the Apache/Tomcat forum. I will move this there for you.
Matthew Phillips
 
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
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.

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic