[ 
https://issues.apache.org/jira/browse/XMLCOMMONS-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941356#comment-17941356
 ] 

Samael Bate commented on XMLCOMMONS-12:
---------------------------------------

Seems that this is just a case of needing the {{xml-apis:xml-apis-ext}} jar in 
the classpath.

The method in question has been on that class since 2001

!image-2025-04-06-12-50-34-816.png!

> IgnoringElementContentWhitespace()Z not found
> ---------------------------------------------
>
>                 Key: XMLCOMMONS-12
>                 URL: https://issues.apache.org/jira/browse/XMLCOMMONS-12
>             Project: XML Commons
>          Issue Type: Bug
>          Components: XML Commons External (JAXP)
>    Affects Versions: 1.x
>         Environment: Operating System: other
> Platform: PC
>            Reporter: KrishnaKumar Santhanam
>            Priority: Blocker
>         Attachments: image-2025-04-06-12-50-34-816.png
>
>
> 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)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to