Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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
 
Yeah, but is it art? What do you think tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic