If you look at the <!DOCTYPE of the struts.xml file it explicitly states that the location of the DTD is http://struts.apache.org/dtds/struts-2.0.dtd. Since there is no way to put something like this on the CLASSPATH, the only way I know of to stop the XML libraries from loading this DTD remotely during validation is to turn validation off. But, of course, I could be wrong. (*Chris*)
On Sun, Jun 22, 2008 at 9:10 PM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > As a matter of fact, the DTD for struts.xml that corresponds to " > http://struts.apache.org/dtds/struts-2.0.dtd" is found inside > struts2-core-2.1.2.jar which IS on the classpath. > > 2008/6/22 Pierre Thibaudeau <[EMAIL PROTECTED]>: > >> As far as I know, the DTDs definitely are on the classpath. At least, >> Eclipse considers they are. (It's easy to check: if I modify the header of >> the DTD by (say) changing the DTD's version number, Eclipse gives a warning >> that it cannot anymore find the corresponding "mock" DTD on the classpath.) >> >> 2008/6/22 Wendy Smoak <[EMAIL PROTECTED]>: >> >>> If it needs them, it should load them from the classpath using the >>> URI. Aren't they in one of the Struts 2 jars? >>> >>> (I'm not sure how it works with schemas, but DTDs definitely don't >>> need to be loaded from a remote url.) >>> >>> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]