You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Micael <ca...@harbornet.com> on 2003/04/23 18:11:11 UTC

[OT] THANKS! RE: Resolving DTDs Locally: TILES: external entity not found -- L ocal Definitions

That was it, Max.  I was using an outdated struts-tiles DTD 
reference.  Thanks again.  Yours worked fine, Wendy.  Thanks to you as 
well.  Micael

At 05:05 AM 4/23/03 -0700, you wrote:
>I suspect the key is to have the "-//Apache Software Foundation//DTD
>Tiles Configuration 1.1//EN" part match what Struts/Tiles registers with
>Digester internally. With Digester, you can register a local version of
>a DTD keyed to the "-//Apache..." part of the DOCTYPE tag. If your xml
>document doesn't exactly match what was registered, Digester will try
>the URI-looking part to go look up the DTD from the internet.
>
>The DOCTYPE tag that Wendy posted should work -- it matches the
>registrations in the XmlParser.java file from the Struts distribution.
>Look out for extra spaces, slashes, version number differences, etc. --
>anything that would cause a simple string comparison match to fail. If
>that isn't it, it might be some kind of classpath issue, since the code
>uses this.getClass().getResource() to access the local DTD.
>
>-Max
>
>On Tue, 2003-04-22 at 15:39, Wendy Smoak wrote:
> > Micael wrote:
> > > I frequently get the following error when starting up with struts:
> > > javax.servlet.ServletException: Error while parsing file
> > > '/WEB-INF/conf/tiles-defs.xml'. External entity not found:
> > > "http://jakarta.apache.org/struts/dtds/tiles-config.dtd".
> >
> > I have this at the top of tiles-defs.xml:
> >  <!DOCTYPE tiles-definitions PUBLIC
> >        "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
> >        "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
> >
> > I'm reliably informed by Craig that although this looks like a URL, it's
> > really just a unique URI, and the dtd will be found locally within the
> > struts.jar file.
> >
> > So (assuming Servlet 2.3) you do not need to list dtd's in your web.xml 
> file
> > or put them "loose" underneath WEB-INF.  One less thing to keep track of!
>--
>Max Cooper <ma...@maxcooper.com>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org