ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: Custom processor for Xslt task?
Date Wed, 03 Jan 2007 13:16:21 GMT
> I've created a test case that's just like the Ant Wiki code, except
> I've specified net.sf.saxon.TransformerFactoryImpl in the <factory>
> element. But when I do that, I always get
> java.lang.ClassNotFoundException. I can work around it by explicitly
> putting Saxon's JAR in the -lib command-line parameter, or in my
> CLASSPATH environment variable, but then that defeats the whole point
> of a factory override.

I always used the -lib approach myself, and can't easily test this
nowdays, sorry. It's quite possible there's a classloader issue that
prevents the Saxon factory to be loaded properly from a jar specified
in the <xslt>'s nested <classpath>. Just check the obvious, like the
spelling of the factory class name, the classpath, etc..., just in
case. Good luck, --DD

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

View raw message