On 10/10/05, Brett Porter <[EMAIL PROTECTED]> wrote: > I think xerces needs to be endorsed if you want to use it as a parser, > and AFAIK that can't be done after the JVM has started up. So I think > you need to have the surefire forking ability to do this, and add a > feature to the plugin to enabled passing in an endorsed dir.
The same error occurs when I have no dependency in pom.xml. Isn't there a built-in XML parser distributed with Java that should be reachable anyway? Kind Regards, John Fallows. > On 10/11/05, John Fallows <[EMAIL PROTECTED]> wrote: > > How is the thread context classloader determined for surefire test > > execution? > > > > I have a unit test that needs to parse an XML file, but it fails to > > initialize the SAXParserFactory, even though the following section is > > present in pom.xml... > > > > <dependency> > > <groupId>xerces</groupId> > > <artifactId>xercesImpl</artifactId> > > <version>2.6.2</version> > > <scope>test</scope> > > </dependency> > > > > During test execution, the following exception occurs... > > > > javax.xml.parsers.FactoryConfigurationError: Provider for > > javax.xml.parsers.SAXParserFactory can not be found > > at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) > > > > Kind Regards, > > John Fallows. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
