W3C home > Mailing lists > Public > www-dom-ts@w3.org > December 2001

[General] Xalan problems (was:[ANNOUNCEMENT] Xalan-J 2.2.D14 released (long email, debugging needed))

From: Dimitris Dimitriadis <dimitris@ontologicon.com>
Date: Tue, 4 Dec 2001 11:22:51 +0100
Message-Id: <200112041024.fB4AOnw18515@mail.24-7webhosting.com>
Cc: "Joseph Kesselman" <keshlam@us.ibm.com>, <www-dom-ts@w3.org>
To: "Curt Arnold" <carnold@houston.rr.com>
Last time I successfully built the DOM TS was with Xalan 2.2D11. 
However, even with these binaries, I now get similar results to those 
that Curt indicates, either failing to load documents or unknown XPath 
errors (usng both Ant 1.4 and Ant 1.4.1). In the verbatims below, I've 
used Ant 1.4.

As one of Joe's emails indicated that xml-apis.jar needs to be on the 
classpath, but given that previous emails indicate that nothing except 
for xalan.jar and xerces.jar needs to be known by Ant (by putting them 
in the ant/lib directory) in order to build, can someone who manages to 
build the most current checkout from the CVS send to the list an exact 
setup for Ant, xalan and xerces?

For example, here is my current setup:

Ant 1.4, ANT-HOME properly set, lib directory consists of
xalan.jar (from the 2.2D11 distribution)
xerces.jar (from the 2.2D11 distribution)
jakarta-ant-1.4-optional.jar
README
ant.jar

with the xalan2.2D11 binaries on the Path gives the following results:

[localhost:DOMTStest/2001/DOM-Test-Suite] dimitris% ant dom1-core-jar
Buildfile: build.xml

init:

common-javac:
     [javac] Compiling 7 source files to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build/java

dom1-init:
       [get] Getting: http://www.w3.org/TR/1998/REC-DOM-
Level-1-19981001/DOM.zip
       [get] Not modified - so not downloaded
     [unzip] Expanding: 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/lib/specs/DOM.zip 
into /Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1
     [unzip] Expanding: 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml-source.zip into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/lib/specs/Level-1
     [patch] patching file 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml
     [patch] patching file 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/definitions/level-one-core/element.xml

dom1-interfaces:
     [style] Processing 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/dom1-interfaces.xml
     [style] Loading stylesheet 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/transforms/extract.xsl

dom1-dtd:
     [style] Processing 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build/dom1.dtd
     [style] Loading stylesheet 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/transforms/dom-to-dtd.xsl
      [copy] Copying 1 file to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/tests/level1/core

dom1-core-gen-java:
     [style] Transforming into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/java/org/w3c/domts/level1/core
     [style] Transforming into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/java/org/w3c/domts/level1/core
     [style] Loading stylesheet 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/transforms/test-to-java.xsl
     [style] Transforming into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/java/org/w3c/domts/level1/core
     [style] Failed to process 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/tests/level1/core/attrparentnodenull.xml

BUILD FAILED

/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build.xml:528: 
javax.xml.transform.TransformerException: Unknown error in XPath

Total time: 41 seconds

---

Identical setup, not including the xalan2.2D11 binaries on the path (as 
has been reported a proper setup, this is what the build document 
currently says):

[localhost:DOMTStest/2001/DOM-Test-Suite] dimitris% ant dom1-core-jar
Buildfile: build.xml

init:

common-javac:
     [javac] Compiling 7 source files to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build/java

dom1-init:
       [get] Getting: http://www.w3.org/TR/1998/REC-DOM-
Level-1-19981001/DOM.zip
       [get] Not modified - so not downloaded
     [unzip] Expanding: 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/lib/specs/DOM.zip 
into /Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1
     [unzip] Expanding: 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml-source.zip into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/lib/specs/Level-1
     [patch] patching file 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml
     [patch] patching file 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/definitions/level-one-core/element.xml

dom1-interfaces:
     [style] Processing 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/dom1-interfaces.xml
     [style] Loading stylesheet 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/transforms/extract.xsl

dom1-dtd:
     [style] Processing 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build/dom1.dtd
     [style] Loading stylesheet 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/transforms/dom-to-dtd.xsl
      [copy] Copying 1 file to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/tests/level1/core

dom1-core-gen-java:
     [style] Transforming into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/java/org/w3c/domts/level1/core
     [style] Transforming into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/java/org/w3c/domts/level1/core
     [style] Loading stylesheet 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/transforms/test-to-java.xsl
     [style] Transforming into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/java/org/w3c/domts/level1/core
     [style] Failed to process 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/tests/level1/core/attrprevioussiblingnull.xml

BUILD FAILED

/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build.xml:528: 
javax.xml.transform.TransformerException: Unknown error in XPath

Total time: 41 seconds

In both cases, the [style] task fails, has not done so before, so either 
the style has changed and locks xalan up, or the setup is wrong. In both 
cases, I've used directions sent to this list (that have previously 
worked, last time two weeks ago at the DOM WG F2F demo).

---

Using similar setup, keeping the original crimson.jar and jaxp.jar from 
the Ant distribution and only adding the ant-optional.jar file and 
xalan.jar from xalan2.2D11 (which has been reported to lock xalan up 
previously):

[localhost:DOMTStest/2001/DOM-Test-Suite] dimitris% ant dom1-core-jar
Buildfile: build.xml

init:

common-javac:
     [javac] Compiling 7 source files to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build/java

dom1-init:
       [get] Getting: http://www.w3.org/TR/1998/REC-DOM-
Level-1-19981001/DOM.zip
       [get] Not modified - so not downloaded
     [unzip] Expanding: 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/lib/specs/DOM.zip 
into /Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1
     [unzip] Expanding: 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml-source.zip into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/lib/specs/Level-1
     [patch] patching file 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml
     [patch] patching file 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/definitions/level-one-core/element.xml

dom1-interfaces:
     [style] Processing 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/dom1-interfaces.xml
     [style] Loading stylesheet 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/transforms/extract.xsl
     [style] Using original entity definition for "&lt;".
     [style] Using original entity definition for "&gt;".
     [style] Using original entity definition for "&amp;".
     [style] Using original entity definition for "&apos;".
     [style] Using original entity definition for "&quot;".
     [style] Failed to process 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml

BUILD FAILED

/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build.xml:279: 
javax.xml.transform.TransformerException: java.net.UnknownHostException: 
Users

Total time: 8 seconds

And, putting the xalan2.2D11 binaries back on the path:

[localhost:DOMTStest/2001/DOM-Test-Suite] dimitris% ant dom1-core-jar
Buildfile: build.xml

init:

common-javac:
     [javac] Compiling 7 source files to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build/java

dom1-init:
       [get] Getting: http://www.w3.org/TR/1998/REC-DOM-
Level-1-19981001/DOM.zip
       [get] Not modified - so not downloaded
     [unzip] Expanding: 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/lib/specs/DOM.zip 
into /Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1
     [unzip] Expanding: 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml-source.zip into 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/lib/specs/Level-1
     [patch] patching file 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml
     [patch] patching file 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/definitions/level-one-core/element.xml

dom1-interfaces:
     [style] Processing 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml to 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/build/dom1-interfaces.xml
     [style] Loading stylesheet 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/transforms/extract.xsl
     [style] Using original entity definition for "&lt;".
     [style] Using original entity definition for "&gt;".
     [style] Using original entity definition for "&amp;".
     [style] Using original entity definition for "&apos;".
     [style] Using original entity definition for "&quot;".
     [style] Failed to process 
/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-
Suite/lib/specs/Level-1/xml/wd-dom.xml

BUILD FAILED

/Users/dimitris/Desktop/DOMTStest/2001/DOM-Test-Suite/build.xml:279: 
javax.xml.transform.TransformerException: java.net.UnknownHostException: 
Users

Total time: 10 seconds

Which doesn't seem to help much, even though xalan's binaries are there. 
Could it be that the Ant.jar in xalan's bin directory messes things up? 
Or is it something else?

---

Again, please report your current (working) setup to the list so that I 
can update the build documentation accordingly and get our environments 
to work.

As a side question, when checking out as dom-ts-1 I get a cvs [checkout 
aborted]: end of file from server (consult above messages if any) error, 
whoch does not happen when I check out as anonymous. Either I've done 
strange things to my machine or something's wrong. Can someone try to 
checkout and see if it works?

/Dimitris


On Tuesday, December 4, 2001, at 06:09  AM, Curt Arnold wrote:

> Copying xalan.jar, xerces.jar, xml-apis.jar and xsltc.jar to the Ant 
> 1.4.1
> bin directory allowed the style task to run, but it still fails for
> alltests.xml and for random other tests either with a can't load 
> document or
> Unknown error in XPath.
>
> The Unknown error in XPath thing (delete tests/level1/core/alltests.xml 
> to
> move to other tests) is strange in that it does not occur when invoking
> Xalan from the command line, but does occur from Ant.
>
> The build process is a good stress test for Xalan, but currently 2.2D14 
> is
> not a viable option for domts building.
>
Received on Tuesday, 4 December 2001 05:25:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:45 GMT