Bug 10684 - IgnoringElementContentWhitespace()Z not found
Summary: IgnoringElementContentWhitespace()Z not found
Status: NEW
Alias: None
Product: XmlCommons - Now in JIRA
Classification: Unclassified
Component: JAXP (show other bugs)
Version: 1.x
Hardware: PC other
: P3 blocker (vote)
Target Milestone: ---
Assignee: Commons Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-11 13:44 UTC by KrishnaKumar Santhanam
Modified: 2010-03-07 15:34 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KrishnaKumar Santhanam 2002-07-11 13:44:53 UTC
I use xalan-j_2_4_D1 for XML Processing in WebLogic 5.1.
I have a servlet which has a XML in a string format. I added following classes 
in the classpath of Servlet in the order.
C:\weblogic\lib\xml\jaxp.jar;
C:\weblogic\lib\xml\parser.jar;
C:\weblogic\lib\xml\jaxp-api.jar
C:\weblogic\lib\xml\xmlParserAPIs.jar;
C:\weblogic\lib\xml\xercesImpl.jar;
C:\weblogic\lib\xml\xalan.jar
C:\weblogic\lib\xml\sax.jar;
C:\weblogic\lib\xml\dom.jar;
C:\weblogic\lib\xml\xsltc.jar; 
I have also set following System properties.
		    System.setProperty
("javax.xml.transform.TransformerFactory","org.apache.xalan.processor.Transforme
rFactoryImpl");
		    System.setProperty
("javax.xml.parsers.DocumentBuilderFactory","org.apache.xerces.jaxp.DocumentBuil
derFactoryImpl");
		    System.setProperty
("javax.xml.parsers.SaxParserFactory","xorg.apache.xerces.jaxp.SaxParserFactoryI
mpl");		    
		    System.setProperty
("org.xml.sax.parser","org.apache.xerces.parsers.SAXParser");

This my code segment
            StringReader str = new StringReader(XMLField); 	
            InputSource input = new InputSource(str); 	
            DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); 	
            dbf.setNamespaceAware(false);
            dbf.setValidating(false);
            System.out.println(dbf.getClass().getName());            
            DocumentBuilder db = dbf.newDocumentBuilder();    
            doc = db.parse(input);

I consistently get this error. I followed whatever is provided in the way of 
documentation in Apache site. But this is the error I keep getting. I searched 
whole of JAVA forums. No solution. Please help.


init
Thu Jul 11 23:31:49 GMT+10:00 2002:<E> <ServletContext-General> Servlet failed w
ith Exception
java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory: method is
IgnoringElementContentWhitespace()Z not found
        at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl
.java:120)
        at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(
DocumentBuilderFactoryImpl.java:88)
        at company.ProcessCompanyServlet.doGet(ProcessCompanyServlet.java:161)
        at company.ProcessCompanyServlet.doPost(ProcessCompanyServlet.java:122)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:106)
        at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:907)
        at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:851)
        at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:252)
        at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:364)
        at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)

        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)