You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Singh, Anoop" <an...@hp.com> on 2003/02/14 22:31:39 UTC
Exception while Creating Multiple files using Redirect
Hi,
I am getting one exception as below, while creating multiple output
files using redirect extension on xalan2.4.1.
I have JDK1.4 , but I have not included that in the classpath. Am I
missing something.
My classpath is like this
C:\Xalan\xalan-j_2_4_1\bin\xalan.jar;C:\Xalan\xalan-j_2_4_1\bin\xml-apis
.jar;C:\Xalan\xalan-j_2_4_1\bin\xercesImpl.jar;C:\Xalan\xalan-j_2_4_1\bi
n\bsf.jar;C:\Xalan\xalan-j_2_4_1\bin\xsltc.jar;C:\Xalan\xalan-j_2_4_1\bi
n\runtime.jar;C:\Xalan\xalan-j_2_4_1\bin\BCEL.jar
C:\Sample>java org.apache.xalan.xslt.Process -in update.xml -xsl
redirect.xsl
java.lang.ClassNotFoundException:
org/apache/xml/dtm/ref/IncrementalSAXSource_Xerces
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:2
69)
Question2: Also why Xalan has not provided any interface except command
Line for the Process class?
Any help will be greatly appreciated.!!
Regards,
Anoop
Re: Exception while Creating Multiple files using Redirect
Posted by Joseph Kesselman <ke...@us.ibm.com>.
Re class not found when running under JDK 1.4 -- Probably the standard
issues; see http://xml.apache.org/xalan-j/faq.html#faq-N100C3
Re "why Xalan has not provided any interface except command Line for the
Process class?" -- Process is just a convenient command-line front end for
the TrAX APIs. See http://xml.apache.org/xalan-j/trax.html
______________________________________
Joe Kesselman / IBM Research
Re: Exception while Creating Multiple files using Redirect
Posted by kl...@attbi.com.
JDK 1.4 is packaged with an earlier version of
Xalan. This will appear in the class path
before your own additions. It could be that
some of the modern jar files are found, and do
not mix well with the older Xalan. You need to
add the modern Xalan to the "endorsed"
directory in JDK 1.4. This is described in the
instructions for downloading and installing
Xalan, found on the Jakarta website.