This does not work in 1.3. It does work in 1.4 becoz 1.4 bundles crimson in it.
(try javap org.apache.crimson.parser.XMLReaderImpl on an empty classpath to
prove..).
The solution for 1.3 (which will also work for 1.4) should be to set
className="org.apache.xerces.parsers.SAXParser" attribute in the <xmlvalidate>
tag within the validate-docs target, which forces xmlvalidate to use that class
(the default being the crimson class since ant bundles crimson at the
moment ... tho that is about to change for ant1.5)
However, doing this causes many validation errors as follows :-
begin trace =================================================================
validate-docs:
Could not resolve ( publicId: -//APACHE//DTD Cocoon Documentation Book V1.0//EN,
systemId: null) to a local entity
Could not resolve ( publicId: -//APACHE//DTD Changes V1.1//EN, systemId: null) t
o a local entity
Could not resolve ( publicId: -//APACHE//DTD Documentation V1.1//EN, systemId: f
ile:C:/myprogs/projects/poi/jakarta-poi/src/documentation/xdocs/dtd/document-v11
.dtd) to a local entity
Could not resolve ( publicId: ISO 8879:1986//ENTITIES Added Latin 1//EN//XML, sy
stemId: file:C:/myprogs/projects/poi/jakarta-poi/src/documentation/xdocs/dtd/ISO
lat1.pen) to a local entity
Could not resolve ( publicId: ISO 8879:1986//ENTITIES Publishing//EN//XML, syste
mId: file:C:/myprogs/projects/poi/jakarta-poi/src/documentation/xdocs/dtd/ISOpub
.pen) to a local entity
Could not resolve ( publicId: ISO 8879:1986//ENTITIES General Technical//EN//XML
, systemId: file:C:/myprogs/projects/poi/jakarta-poi/src/documentation/xdocs/dtd
/ISOtech.pen) to a local entity
Could not resolve ( publicId: ISO 8879:1986//ENTITIES Numeric and Special Graphi
c//EN//XML, systemId: file:C:/myprogs/projects/poi/jakarta-poi/src/documentation
/xdocs/dtd/ISOnum.pen) to a local entity
Could not resolve ( publicId: ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML
, systemId: file:C:/myprogs/projects/poi/jakarta-poi/src/documentation/xdocs/dtd
/ISOdia.pen) to a local entity
Could not resolve ( publicId: -//APACHE//DTD Documentation V1.1//EN, systemId: n
ull) to a local entity
............. etc .........etc ..
end trace
================================================================================
this then causes the build to fail at the next step with the follwoing error
begin trace=====================================================================
making-docs:
-------------------------------------------------------------
Building docs, please stand by ...
owdocs:
ERROR 10184 [ ] (): Could not configure Cocoon environment
org.xml.sax.SAXException
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1193)
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:241)
at org.apache.cocoon.Cocoon.configure(Unknown Source)
at org.apache.cocoon.Cocoon.initialize(Unknown Source)
at org.apache.cocoon.Main.main(Unknown Source)
FATAL_E 10184 [ ] (): Exception caught
org.apache.avalon.framework.configuration.ConfigurationException: Error trying t
o load configurations
at org.apache.cocoon.Cocoon.configure(Unknown Source)
at org.apache.cocoon.Cocoon.initialize(Unknown Source)
at org.apache.cocoon.Main.main(Unknown Source)
end
trace===========================================================================
Still working on it......
Quoting Glen Stampoultzis <[EMAIL PROTECTED]>:
> Same problem for me...
>
> :(
>
>
> ----- Original Message -----
> From: "Rainer Klute" <[EMAIL PROTECTED]>
> To: "Nicola Ken Barozzi" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; "Rainer Klute" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 10, 2002 6:28 PM
> Subject: Re: Build: Crimson missing
>
>
> >Ok guys, it should be fixed.
>
> Unfortunately it isn't fixed. Since I couldn't do a CVS update I
> tried a CVS checkout, but got CVS error messages about not being
> able to read a bunch of CVS/Entries files. Here's the detailed list:
>
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/cocoon-printer/xslt/htm
> l
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/jakarta-site:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/jakarta-site
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/jakarta-site/images:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/jakarta-site/images
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/jakarta-site/xslt:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/jakarta-site/xslt
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/jakarta-site/xslt/html:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/jakarta-site/xslt/html
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site/css:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site/css
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site/images:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site/images
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site/xslt:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site/xslt
> cvs checkout: in directory
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site/xslt/html:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
> cvs server: Updating
> jakarta-poi/tools/cents/forrest.cent/resources/skins/scarab-site/xslt/html
> cvs server: Updating jakarta-poi/tools/cents/jtidy.cent
> cvs server: Updating jakarta-poi/tools/cents/jtidy.cent/lib
> cvs checkout: in directory jakarta-poi/tools/cents/junit.cent:
> cvs checkout: cannot open CVS/Entries for reading: No such file or
> directory
>
>
> I tried a "build.sh all" nevertheless but again got the following message:
>
> ...
> validate-docs:
>
> BUILD FAILED
> /share/mark/work/jakarta-poi/tools/cents/forrest.cent/xbuild.xml:114: Could
> not start xml validation: org.apache.crimson.parser.XMLReaderImpl
>
>
> Best regards
> Rainer Klute
>
> RAINER KLUTE IT-CONSULTING
> Dipl.-Inform.
> Rainer Klute E-Mail: [EMAIL PROTECTED]
> K�rner Grund 24 Telefon: +49 172 2324824
> D-44143 Dortmund Telefax: +49 231 5349423
>
>
>
>