ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Thull <ste...@s-thull.de>
Subject Problem with xalan
Date Mon, 26 Nov 2001 17:59:20 GMT
Hi,
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 
test.html

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"/>
   <classpath>
<pathelement location="D:\tools\xalan\bin\xerces.jar"/>
<pathelement location="D:\tools\xalan\bin\xalan.jar"/>
</classpath>
</java>
</target>
</project>

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

xsl:
	[java]
	[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 
classpath-tag.

What have I done wrong?

Thank you very much
Stefan


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message