Re: Error 503 when loading schema

Michael Cervenak Ahern <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
You must be behind a firewall. Even when XML validation is disabled Xerces
will still attempt to download referenced DTD files.  There is little hidden
DocumentBuilderFactory setting that disables the DTD download:
http://xerces.apache.org/xerces2-j/features.html#nonvalidating.load-external-dtd

If you do something like:

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);

dbf.setValidating(false);
dbf.setFeature("http://xerces.apache.org/xerces2-j/features.html#nonvalidating.load-external-dtd",

                   false);

In your own code when you can parse the DOM without downloading the
DTD.  For future generations it would be helpful if the same setting
was applied to this FreeMarker function.

Cheers,
-Mike

On Tue, Jun 8, 2010 at 4:58 AM, Daniel Dekany <[email protected]> wrote:

> Monday, June 7, 2010, 10:58:20 PM, Denis Bredelet wrote:
>
> > I get this error with freemarker.ext.dom.NodeModel.parse, it is
> > irritating:
> >
> > Server returned HTTP response code: 503 for URL:
> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
>
> Yeah, well... NodeModel.parse is pretty much useless in its half-done
> state. Consider it like it's not there. I myself never missed it,
> because whenever I wanted to expose XML I happened to have it already
> in W3C DOM format. Throwing the comments and PI-s away is still useful
> however (see Node.removeComments and removePIs).
>
> > Freemarker 2.3.16 downloaded fresh from Sourceforge.
> >
> > What is the solution?
> > Thanks!
> > -- Denis.
> >
> >
> ------------------------------------------------------------------------------
> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> > lucky parental unit.  See the prize list and enter to win:
> > http://p.sf.net/sfu/thinkgeek-promo
> > _______________________________________________
> > FreeMarker-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/freemarker-user
> >
>
> --
> Best regards,
>  Daniel Dekany
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.