Geoff Howard dijo: > Timothy Larson wrote: >> I just downloaded a new snapshot, and now the build fails with this >> message: >> >> BUILD FAILED >> file:C:/cocoon/2.1_20031125111946/cocoon-2.1/build/cocoon-2.1.4-dev/temp/blocks-build.xml:8441: >> UnknownHostException. Probable cause: The parser is trying to resolve a >> dtd from the internet >> and no connection exists. You can either connect to the internet during >> the build, or patch >> XConfToolTask.java to ignore DTD declarations when your parser is in >> use. >> >> My previous snapshot, 2.1_20031120112057, built fine despite the same >> authenticated >> proxy-firewalled network. A quick look through XConfToolTask.java did >> not enlighten me. >> Any clues how to get the builds working again without requiring a >> network connection? > > I wrote that overly verbose message for just such an occasion as this! > The XConfToolTask (in tools/src/anttasks or used to be) was using a > parser-specific setting to force it to not resolve dtd references. The > line is: > > builderFactory.setAttribute( > "http://apache.org/xml/features/nonvalidating/load-external-dtd", > new Boolean(false)); > > So, either the latest version of the XML libs committed recently by > Antonio (this would be Xerces, no?
No, no. Is yes. :-D I updated Xerces to 2.6.0 :-D It is a interesting bug. I never saw something similar. Note I also do offline demos and never saw something like that. >I can never remember which X is > which!) has changed this behavior, or something in the latest changes to > support property expansion have broken it. > > The first seems way more likely and may be documented at xml.apache.org > in release notes. Unfortunately, don't have time to look into it myself. Don't know. :-( Best Regards, Antonio Gallardo