• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

can I have multiple version of XML parser?

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WAS has a copy of XML parser (i.e. xalan.jar and xerces.jar) in its lib directory. However, my application is using a different version of xerces, so I have a different copy in my application lib/ext directory.
If I set the class loader policy to PARENT_FIRST, it seems IBM's one is loaded and I got some warnings from my application.
If I set the class loader policy to PARENT_LAST, it seems my xerces is loaded, then I got some warnings when WAS start the EJB container.
Is there anyway I can make WAS to load its XML parser and my application to reload the parser to use my own version?
Thanks
 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set application class loader policy to be MULTIPLE
 
Wai Hung
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have already set the application class loader policy to 'MULTIPLE' and class loader module to 'PARENT_LAST'. But it does not help.
I guess the solution you mention here work if the jar files are user provided.
However, in this case, one xerces.jar is provided by WAS in its library path and the other is given by the user, it may make the scenario complicated.
 
author
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this article. It talks about the issues with xerces and how to fix it.

http://www-106.ibm.com/developerworks/websphere/library/techarticles/0310_searle/searle.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!