User Profile

Collapse

Profile Sidebar

Collapse
srinivasareddynr
srinivasareddynr
Last Activity: Jan 24 '08, 12:41 PM
Joined: Jan 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • srinivasareddynr
    replied to Xpath Problem
    in Java
    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.......
    See more | Go to post

    Leave a comment:


  • srinivasareddynr
    replied to Xpath Problem
    in Java
    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...
    See more | Go to post

    Leave a comment:


  • srinivasareddynr
    started a topic Xpath Problem
    in Java

    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...
    See more | Go to post
No activity results to display
Show More
Working...