Simon, I've found the problem. It has to do with the custom ClassLoader and also the XML APIs.
The problem lies in the fact that Java 1.4 comes with the XML APIs and therefore that part is loaded by the bootstrap ClassLoader. But the xerces code is loaded by my custom ClassLoader since it doesn't come with Java 1.4. Therefore the two can't see each other. I've reworked the way the CLASSPATH is used in Inline::Java and will release Inline::Java-0.42-RC1 before the end of the week. Cheers, Patrick --------------------- Patrick LeBoutillier Laval, Quebec, Canada ----- Original Message ----- From: "Simon Cozens" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 01, 2003 1:03 PM Subject: Re: [Java] javax::xml::parsers::FactoryConfigurationError > [EMAIL PROTECTED] (Simon Cozens) writes: > > I have some Java code, which unfortunately I can't seem to break down to a > > smaller example. > > Yes, I can! > > // This method works! > public void test_a() throws > javax.xml.parsers.ParserConfigurationException, > org.xml.sax.SAXException > { > SAXParser y = > org.apache.xerces.jaxp.SAXParserFactoryImpl.newInstance().newSAXParser(); > } > > // This one doesn't! > public void test_b() throws > javax.xml.parsers.ParserConfigurationException, > org.xml.sax.SAXException > { > System.setProperty("javax.xml.parsers.SAXParserFactory", > "org.apache.xerces.jaxp.SAXParserFactoryImpl"); > SAXParser x = > javax.xml.parsers.SAXParserFactory.newInstance().newSAXParser(); > } > > -- > Ever wake up feeling like a null pointer? -Allan Pratt >