Thanks for the reply, You are absolutely right it was problem with classpath. I have found the solution a couple of hours before you have posted your message. What I did is simply placed xerces.jar before soap.jar in the classpath.
Again thanks for your help. Kind regards. Ed. Li Liang wrote: > >It seems to me that's the classpath problem. Please make sure that > javax.xml.parsers.DocumentBuilderImpl is the one in Xerces.jar. > > It should read javax.xml.parsers.DocumentBuilderFactory. Sorry for the > typo. > > -----Original Message----- > From: Edward Nesterov [mailto:[EMAIL PROTECTED] > Sent: Friday, July 20, 2001 5:49 PM > To: '[EMAIL PROTECTED]' > Subject: Weird problem. Please He-e-e-e-lp! > > Hi guys! > I am trying to get the below mentioned code to work with xerces1.4.1. > > 1: DocumentBuilderFactory factory = > DocumentBuilderFactory.newInstance(); > 2: DocumentBuilder docBuilder = > factory.newDocumentBuilder(); > 3: Document doc = > docBuilder.parse(new InputSource(new FileReader("blah"))); > > At line 2 I'am getting the following exception which looks like a bug. > > Exception in thread "main" java.lang.NoSuchMethodError: > javax.xml.parsers.DocumentBuilderFactory: method > isIgnoringElementContentWhitespace()Z not found > at > org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.ja > va:133) > > at > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Doc > umentBuilderFactoryImpl.java:92) > > at offerlab.util.soap.TestClient.main(TestClient.java:53) > > Did anybody have this problem in the past? > If yes - please help me to find the way out. > > Thanks in advance. > > Ed. > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
