• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to specify different Xerces Implementation  RSS feed

 
Greg Jewell
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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
 
Jos� Antonio Su�rez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right. It's a SAAJ bug, i think.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!