On my first post to this thread I mentioned that I am having a *similar* exception, which I have related to the down time of ASF website. The similarity is, if I understand it correctly, my long list of exceptions are coming from both tiles and sql-maps dtd's. So if this issue turns out to be a bug, sqlmaps may have the same problem.

Bahadir


Greg Reddin wrote:


On Nov 28, 2005, at 1:57 PM, Craig McClanahan wrote:

On 11/28/05, Greg Reddin <[EMAIL PROTECTED]> wrote:



     protected String registrations[] = {
         "-//Apache Software Foundation//DTD Tiles Configuration  1.1//
EN",
         "/org/apache/tiles/resources/tiles-config_1_1.dtd",
         "-//Apache Software Foundation//DTD Tiles Configuration  1.2//
EN",
         "/org/apache/tiles/resources/tiles-config_1_2.dtd",
     };



Hmm ... Shale uses exactly this style for its own config resources,
including the leading slash on the URLs, and it seems to work fine when I disconnect from the Internet. I suspect there might be version specific
issues with URL resolution between JVMs in this area.


I think the issue is this: Standalone Tiles uses the ClassLoader directly, while Struts-Tiles goes through the Class (which delegates to the ClassLoader according to the Javadoc). Compare Standalone Tiles:

    URL url = this.getClass().getClassLoader().getResource(

to Struts-Tiles:

     URL url = this.getClass().getResource(

The effect is that if you use the ClassLoader you cannot have a leading "/" on the name. Now I'm not sure which is more correct...

Greg



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to