This post originated from an RSS feed registered with Java Buzz
by Joe Shelby.
Original Post: Struts and XML Validation of Config Files
Feed Title: Joe's Java Jottings
Feed URL: http://www.blog-city.com/bc/
Feed Description: Notes, observations, and occasional other stuff on Java, with concentrations on Swing, XML, and the Semantic (Object) Web.
Since upgrading to struts 1.2.2, Struts now validates all of the configuration files. Now the release notes say that they validate against an "internal copy", but the truth is that they do validate, like normal XML, against the actual specified URL. In this case, this now requires a connection to struts.apache.org to find the appropriate DTD files.
This is a BAD THING, in that our system needs to run inside a private network with no access to the outside world.
Without hitting the sources (since it may be deeply embedded into Digester and I don't have time to learn its architecture), is there an easy way of telling Struts to not validate the XML config files?