Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Xerces in WebSphere again

Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question has been asked for years but is still bothering me

WSAD 5.1.2
Test Environment 5.1

I have a xerces.jar (Xerces 1.4.0) included in my EAR. This xerces is used by an EJB to parse some XML documents. I set the classloading policy of the EAR to be PARENT_LAST and MODULE to make sure my xerces is picked up. This works for the EJB XML parsing part.

However, after I added web services interface based on that EJB, the web service won't work because my xerces is not compatible for the new web services. I switch to PARENT_FIRST, web services work but not my EJB XML parsing.

Articles on this issue alwasy deal with using xerces in WARs, not with EJB cue there is no such setting for EJB (unlike WARS, you can use its own classloader mode).

I think this must be a common issue. Anyway to work around it?

Thanks in advance...
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic