Has anyone had success getting around this error?

[...]
java.io.IOException: Server returned HTTP response code: 503 for URL: 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1269)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
[...]

Here's the complete screenlog,

http://www.sfu.ca/~jdbates/tmp/fop/200910080/screenlog

I thought the problem was getting Xerces to use the XML catalog, so I
originally posted this question to the Xerces list,
http://thread.gmane.org/gmane.text.xml.xerces-j.user/4961

I assume the w3 is restricting access to DTDs by some clients which
generate excessive traffic

IFAICT my operatic system - Debian - distributes a local copy of this
DTD at /etc/xml/w3c-dtd-xhtml.xml

So I assume I just need to get FOP/Xerces to use this catalog?

Here's what I tried to get FOP/Xerces to use this catalog,

* Installed the libxml-commons-resolver1.1-java package which
contains /usr/share/java/xml-commons-resolver-1.1.jar
* Set prefer=public in /etc/xml/resolver/CatalogManager.properties
* Ran FOP with
CLASSPATH=/usr/share/java/xml-commons-resolver-1.1.jar:/etc/xml/resolver:/etc/xml/resolver/CatalogManager.properties

- no luck : (

I also tried running FOP with the -d option, but among the debugging
messages I didn't find anything useful

I'm following this FAQ entry,
http://xerces.apache.org/xerces2-j/faq-xcatalogs.html

- and additionally found this documentation,
http://xml.apache.org/commons/components/resolver/resolver-article.html#ctrlresolver

There's additionally an outstanding bug report against the Debian FOP
package, to solve this problem,
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512443

I originally posted to the Xerces list because I thought the question
was how to get Xerces to use the XML catalog, but Michael Glavassevich
replies that the question is actually, "how to get FOP to provide an XML
catalog to Xerces?"

Any suggestions how to proceed? Or how to get more debugging
information?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to