wood burning stoves
The moose likes Tomcat and the fly likes Correct DOCTYPE definitions for web-app, Struts, Tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Correct DOCTYPE definitions for web-app, Struts, Tiles" Watch "Correct DOCTYPE definitions for web-app, Struts, Tiles" New topic

Correct DOCTYPE definitions for web-app, Struts, Tiles

David Woosley

Joined: Dec 21, 2010
Posts: 1
I'm using Tomcat 5.5.9 and I'm receiving XML parsing errors and StandardClassLoader errors when Tomcat is started, yet the XML files do not contain errors. In fact, the web applications run as if nothing is wrong. The XML errors are related to Struts and Tiles, and I need to eliminate them. What are the correct DOCTYPE definitions for web.xml, struts-config.xml, and tiles-def.xml? Here are the currect ones:

"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"

<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"

Many thanks,

David Woosley
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17038

Welcome to the JavaRanch, David!

I don't think that it will help your problem (although it might), but you should consider upgrading to Tomcat 5.5.28. Whether or not it fixes your DOCTYPE issues, it will address some security vulnerabilities from the earlier releases.

It's most likely that your Tomcat server doesn't have access to the open internet that permits it to download the DOCTYPE files themselves and doesn't have a local copy to work from. The DOCTYPE files are used to validate the XML, and thus aren't critical, but it's still better to have them.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link: http://aspose.com/file-tools
subject: Correct DOCTYPE definitions for web-app, Struts, Tiles
jQuery in Action, 3rd edition