use fork="true" to spawn a new VM. If I recall the linkage error is
caused by the ant task classloader loading a class from the xalan jar
that was already loaded by the system classloader from another source
(crimson.jar?) resulting in a seal error. In any event, the forking
should solve the problem.

Tim

> -----Original Message-----
> From: Stefan Thull [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 26, 2001 11:59 AM
> To: [EMAIL PROTECTED]
> Subject: Problem with xalan
> 
> 
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to