File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat" Watch "Tomcat" New topic
Author

Tomcat

maha devan
Ranch Hand

Joined: Mar 16, 2004
Posts: 50
Hi I was doing some sample codes in tomcat

And At one stagewhen I restarted my server
I am getting an error thrown as this


SEVERE: Parse Error at line 36 column 11: The content of element type "web-app"
must match "(icon?,display-name?,description?,distributable?,context-param*,filt
er*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-map
ping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,sec
urity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref
*)".
org.xml.sax.SAXParseException: The content of element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
INFO: Jk running ID=0 time=0/31 config=C:\Tomcat 4.1\conf\jk2.properties


But I am able to see the index page of tomcat
Which file has got corrupted in this case in tomcat

Anyone PLs
Thanks
Maha
Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
Hi,

The problem seems to be with your web.xml file..check for the DTD of this file..


Regards,

Vijay
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Go to the Sun web site here. to download the servlet API specification document in pdf form for a complete description of how web.xml is used.
Bill
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi
when u write web.xml there should be proper order of the tags uw rite mean to that what u wrote is not matching with the dtd in the url .....look at the order shown in the error and change ur web.xml accordingly
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61768
    
  67

Moving to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat