Re: JAXP & Classloading

2010-03-07 Thread Remko Tronçon
Hi, > When I run the foo task, I get the following error: >   javax.xml.parsers.FactoryConfigurationError: Provider FooTask not found I looked a bit further into this problem, and found out that it's probably related to the classpath with which the task is run. During the task's execution, a cla

JAXP & Classloading

2010-03-05 Thread Remko Tronçon
Hi, I have the following task: import org.apache.tools.ant.Task; import javax.xml.parsers.SAXParserFactory; public class FooTask extends Task { public void execute() { System.setProperty("javax.xml.parsers.SAXParserFactory", getClass().getCanonicalName()); SAXParserFactory f