If you’re using WebSphere App Server 5.0.2 and run into a classloader problem with Xerces, you can choose to upgrade the xerces.jar that comes with WebSphere in was_root/lib.  Replace it with Xerces 2.6.2 or a newer jar.

Details about the WebSphere 5.0.2/Xerces bug:

Xerces change in 2.6.2:

Alternatively, you can patch WebSphere: