User Profile
Collapse
-
Thanks for the reply, but i have a different problem here.... when I try the same code in a standalone java application it is working but when I use the same code in a servlet is throws the above error.... Thanks....... -
Hi,
Thanks for the reply and below is the code I am using.....
DocumentBuilder Factory domFactory = DocumentBuilder Factory.newInst ance();
domFactory.setN amespaceAware(t rue); // never forget this!
DocumentBuilder builder = domFactory.newD ocumentBuilder( );
Document doc = builder.parse(A dvisorXmlPath);
System.out.prin tln(doc.getElem entsByTagName(" rec").getLength ());
XPathFactory...Leave a comment:
-
Xpath Problem
Hi, I am trying to parse an xml using xpath. I dont have any problem when i try it as a standalone java application, but when I try the same code with in a servlet I am getting the below error. Can any one help me please. I need a solution ASAP.
SRVE0026E: [Servlet Error]-[javax/xml/xpath/XPathFactory]: java.lang.NoCla ssDefFoundError : javax/xml/xpath/XPathFactory
at com.ibm.cod.eve nt.hitsReport.p rocess(hitsRepo rt.java(Compile d...
No activity results to display
Show More
Leave a comment: