CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Jul 2014
    Posts
    1

    NoSuchMethodError: org/apache/xml/utils/TreeWalker

    I am getting the error from subject when running the below code in Websphere in my RAD. It is very interesting that this code doesn't cause any error in Server. The server runs up Tomcat 6 but I must set the same code to run in Websphere. I have searched for hours in web but I didn't find nothing that I could at least give a try. I attached the libs in pdf document. I guess that it might exist some conflict but I have no idea why it is working in Tomcat but it is not working in Websphere.

    Error message in browser:

    Error 500: org/apache/xml/utils/TreeWalker.<init>(Lorg/xml/sax/ContentHandler;Lorg/apache/xpath/DOMHelperV

    Error message in RAD console:
    java.lang.NoSuchMethodError: org/apache/xml/utils/TreeWalker.<init>(Lorg/xml/sax/ContentHandler;Lorg/apache/xpath/DOMHelperV

    at org.apache.xalan.serialize.SerializerToXML.seriali ze(SerializerToXML.java:2578)

    org.apache.xalan.serialize.SerializerToXML serializertoxml = new org.apache.xalan.serialize.SerializerToXML();

    My code snippet:
    java.io.FileWriter filewriter = new java.io.FileWriter(file);

    serializertoxml.setWriter(filewriter);

    serializertoxml.serialize(node); // the error happens here

    serializertoxml.flushWriter();

    filewriter.write("\n");

    filewriter.close();

    P.S.: I have created this question in other forum:
    http://www.javaprogrammingforums.com...tml#post153609
    Attached Images Attached Images

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured