ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Re: taskdef-classpath fails to add jars to classpath
Date Mon, 04 Apr 2005 18:26:15 GMT
Thanks. I suppose I'll use a batch file to temporarily set CLASSPATH. It's ugly, but workable.
Charles Knell - email

-----Original Message-----
From:     Antoine Levy-Lambert <>
Sent:     Mon, 04 Apr 2005 19:24:45 +0200
To:       Ant Users List <>
Subject:  Re: taskdef-classpath fails to add jars to classpath

the fact that the class

org/apache/avalon/framework/logger/Logger is not found might indicate that this class
is loaded directly or undirectly by another class, which is using your startup classloader.
this is documented under
This kind of problem happens often with classes which are loaded by factories, such as JDBC
or JNDI drivers.
There is nothing much you can do about this.
[except that sometimes I dream of classloaders being made aware of their children, maybe with
a stack or probably
even a graph structure ]
Antoine wrote:

>I have the following:
> - ant 1.6.2 
> - FOP 0.20.5
> - WinXP Pro 2002 Service Pack 2
> - FOP_HOME is defined as "C:\Program Files\Apache Software Foundation\fop-0.20.5"
> - CLASSPATH is defined as "C:/apache-ant-1.6.2\lib\ant.jar;C:/apache-ant-1.6.2\lib\optional.jar;C:/apache-a
>jar;c:\saxon\saxon-jdom.jar;C:\Xalan-J\bin\xalan.jar;C:\Program Files\Apache Sof
>tware Foundation\fop-0.20.5/build/fop.jar;C:\junit3.8.1/junit.jar;C:\junit3.8.1"
>In my build.xml file I have this taskdef:
><taskdef name="fop" classname="">
>    <classpath>
>      <pathelement location="${env.FOP_HOME}/build/fop.jar"/>
>      <pathelement location="${env.FOP_HOME}/lib/avalon-framework-cvs-20020806.jar"/>
>      <pathelement location="${env.FOP_HOME}/lib/batik.jar"/>
>    </classpath>
>Further along in build.xml is this target:
><target name="make-race-chart-pdf" description="converts the xsl-fo race chart to a
.pdf document">
> <fop format="application/pdf" fofile="${output-dir}/${next-week}/"
outfile="${output-dir}/${next-week}/race-chart.pdf" />
>When I execute ant I get this error message:
>C:\Data\Pool-14.1\build.xml:10: taskdef A class needed by class org.apache.fop.t
>ools.anttasks.Fop cannot be found: org/apache/avalon/framework/logger/Logger"
>If I manually place the .jar files named in the <taskdef> in the CLASSPATH and execute
ant the build succeeds. Can anyone diagnose my problem?

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

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

View raw message