• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML DOM processing

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I've written a small application that compare 2 XML documents using the very useful isEqualNode method.
Running my application as is works just fine. When I've 2 equal documents, the isEqualNode returns true.

However, if I deploy my app as an Axis 1.x web service in a Tomcat container, the application within the web service returns false.

That's not all. My application solely relies on the JRE to work (Java 1.5) using the following method to construct a Document from a String:


I then compare my 2 EPRs as follows:

The previous line threw an InvocationTargetException if I didn't have the latest Xerces implementation in Tomcat's common/endorsed folder (see https://coderanch.com/t/223356/Web-Services/java/InvocationTargetException-axis-WS)

So obivously there's an implementation shipped in the JRE that works and the one in the Xerces implementation (version 2.8) fails. I'm getting kinda lost and confused here... Does anyone have any ideas as to what this may be related to?
 
David Brossard
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BTW, if I send my WS a string with no carriage returns, then the comparison works fine. My application doesn't care about those...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic