• 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

How to specify different Xerces Implementation

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

I am working on a project in which the dev team has downloaded and is using Xerces to parse XML. I have also downloaded Sun's JWSDP-1.5 and am trying to create SOAP messages. When I attempt to get the SOAPPart of the message, I receive the following exception:

java.lang.NoClassDefFoundError: com/sun/org/apache/xerces/internal/dom/DocumentImpl

The problem is obvious. One possible solution is to copy the xercesImpl.jar provided with the JWSDP into the project. However, the preferred solution would be to use the Xerces implementation already being used by the rest of the dev team. Is there something that I can put into my code that will allow me to achieve this?

(Note that my code doesn't reference the DocumentImpl class directly -- it's called somewhere within Sun's code.)

Thanks,
Greg
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right. It's a SAAJ bug, i think.
reply
    Bookmark Topic Watch Topic
  • New Topic