You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Karr, David" <da...@wamu.net> on 2005/06/11 19:22:12 UTC

Ant1.5.4: using Andariel Xpath: Provider com.icl.saxon.om.DocumentBuilderFactoryImpl not found

Related to a previous question of mine, I'm trying to figure out whether
it's practical for me to use Xpath on an XML file and iterate over the
result.  It appears that the "andariel" contrib package may be the
simplest way to get this (along with "foreach" in ant-contrib).  I'm
having trouble getting it to work, however.  I installed saxon6.5.2, and
my taskdef has a classpath referencing both the andariel and saxon jars.
When I run my test, I just get:

javax.xml.parsers.FactoryConfigurationError: Provider
com.icl.saxon.om.DocumentBuilderFactoryImpl not found

After a little more research, it appears this is another symptom (I've
seen this before) of the problem where setting the classpath on a
taskdef isn't enough, it requires me to copy the jar into $ANT_HOME/lib.
When I just copied my saxon.jar file into $ANT_HOME/lib, I was able to
get past this.  I would really prefer to just reference the required
jars in the taskdef itself.  Is this not possible to get around in Ant
1.5.4?

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


Re: Ant1.5.4: using Andariel Xpath: Provider com.icl.saxon.om.DocumentBuilderFactoryImpl not found

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello David,
you got hit by the delegating_classloader problem :
http://ant.apache.org/faq.html#delegating-classloader
Cheers,
Antoine

Karr, David wrote:

>I installed saxon6.5.2, and
>my taskdef has a classpath referencing both the andariel and saxon jars.
>When I run my test, I just get:
>
>javax.xml.parsers.FactoryConfigurationError: Provider
>com.icl.saxon.om.DocumentBuilderFactoryImpl not found
>
>After a little more research, it appears this is another symptom (I've
>seen this before) of the problem where setting the classpath on a
>taskdef isn't enough, it requires me to copy the jar into $ANT_HOME/lib.
>When I just copied my saxon.jar file into $ANT_HOME/lib, I was able to
>get past this.  I would really prefer to just reference the required
>jars in the taskdef itself.  Is this not possible to get around in Ant
>1.5.4?
>
>  
>


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