This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

Correct DOCTYPE definitions for web-app, Struts, Tiles

David Woosley
Greenhorn

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:

<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">

<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config.dtd">

Many thanks,

David Woosley
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15962
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Correct DOCTYPE definitions for web-app, Struts, Tiles
 
Similar Threads
problem in using tiles with spring...
Error with Struts 2 and Tiles 2
Cannot find ActionMappings or ActionFormBeans collection
jakarta.apache.org is currently unreachable
tiles and javascript navigation bar problem