ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Thull <>
Subject Problem with xalan
Date Mon, 26 Nov 2001 17:59:20 GMT
I am a newbie trying to use ant to transform a xml-file to html with xalan.
I am working with win 98 jdk 1.3, ant 1.4 and xalan 2

When I use the following  test.bat file xalan works:
@echo off
set classpath=D:\tools\xalan\bin\xerces.jar;D:\tools\xalan\bin\xalan.jar
java org.apache.xalan.xslt.Process -in test.xml -xsl pre2html.xsl -out 

Now I tried it with the following build.xml:
<project name="MyProject" default="xsl"  basedir=".">

   <!-- set global properties for this build -->
   <property name="src" value="."/>
   <property name="build" value="build"/>
   <property name="dist"  value="dist"/>

   <target name="xsl">
  <java classname="org.apache.xalan.xslt.Process" >
<arg line="-in test.xml -xsl pred2html.xsl -out test2.html"/>
<pathelement location="D:\tools\xalan\bin\xerces.jar"/>
<pathelement location="D:\tools\xalan\bin\xalan.jar"/>

I get the following error:
\ant-test> ant
Buildfile: build.xml

	[java] <Location of error unknown> XSLT Error <java.lang.LinkageError>: 
loader constraints violated when linking org/xml/sax/InputSource class

The same error appeared as I used path instead of location in the 

What have I done wrong?

Thank you very much

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message