aspose file tools*
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
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: 16308
    
  22

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Correct DOCTYPE definitions for web-app, Struts, Tiles