Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: NoSuchMethodError: org/apache/xml/utils/TreeWalker

  1. #1
    Member
    Join Date
    Apr 2014
    Posts
    31
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default NoSuchMethodError: org/apache/xml/utils/TreeWalker

    websphere jars.jpgI 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 Tomcat and Rad in the pdf file and in the png the Websphere libs. 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();
    Attached Files Attached Files
    Last edited by DemeCarv; July 31st, 2014 at 01:51 PM. Reason: Websphere jars added


  2. #2
    Member
    Join Date
    Apr 2014
    Posts
    31
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Re: NoSuchMethodError: org/apache/xml/utils/TreeWalker

    websphere.JPGI uploaded again the image which shows the Websphere Labs in Jpg because I guess that the png format might not be clear enough.
    Last edited by DemeCarv; July 31st, 2014 at 02:21 PM. Reason: upload the image in new format

Similar Threads

  1. need help with 'org.apache.commons.net.ftp.FTPClient'
    By rtumatt in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: May 22nd, 2013, 07:02 PM
  2. org.apache.axis.enum error
    By Ganesh Pillai in forum What's Wrong With My Code?
    Replies: 0
    Last Post: April 25th, 2013, 05:38 AM
  3. Replies: 5
    Last Post: January 10th, 2013, 08:34 AM
  4. org.apache.poi.xssf.usermodel.XSSFCell;
    By suma in forum Java SE APIs
    Replies: 3
    Last Post: July 25th, 2011, 04:18 AM
  5. org.apache.derby does not exist?
    By disclaimer in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 30th, 2010, 04:58 PM

Tags for this Thread