The validation.xml contains a reference to a DTD file at the top of the file. This section references a DTD file present on the Jakarta web-site. When there is no net connection available, Tomct throws an exception, saying that the file couldn't be found.
I have downloaded the struts-config_1_1.dtd file from the Jakarta site. Assuming I store it in my webapp's root directory, what should the above entry in my .xml file(s) be replaced with? This might sound too simple, but I have found it quite annoying. I want a quick solution, and don't really have the time to figure out the solution myself.
Note: The path specified for SYSTEM is relative to the xml file <!DOCTYPE struts-config SYSTEM "struts-config_1_1.dtd"> In this case the dtd is in the same folder as the xml file.
Even this should work, i.e. specifying the SYSTEM identifier following the PUBLIC identifier. The word SYSTEM is implied. <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "../struts-config_1_1.dtd"> In this case the dtd is in the webapp's root directory assuming the xml is in WEB-INF.
I have not tried these, but they should work. Let us know which one worked for you.