• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Order for pick up of classes of WEB-INF/lib/*.jars in a WAR

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
Consider, for e.g, the class org.apache.xerces.dom.DeferredTextImpl is present in both xmlx.jar and a01_topllink3.6.3.toplinkall.jar; if I were to use classpath I would mention the xmlx.jar before the a01_topllink3.6.3.toplinkall.jar and have the class picked from that; but if it's a web application deployed as a WAR in Weblogic6.1, and both these jars are at WEB-INF/lib inside the WAR, how to specify the order ?
I tried specifying the order in META-INF/Manifest.mf and warring it too, along with the rest of the application.
It's impending for me to find a solution to it, so plz treat it on a priority basis.
[Tavant Technologies, Bangalore India. [email protected] ]
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As per Servlet specifications, the classloader should behave like this:
The web application classloader must load classes from the WEB-INF/ classes directory first, and then from library JARs in the WEB-INF/lib directory.
SO for the time being you can extract the xmlx.jar in the classes folder and remove it from the lib folder. I am not 100% sure about it but you can give it a try.
Second solution could be to add the xmlx.jar in the weblogic system classpath instead of keeping it in the lib folder, that way when ever you app look for class org.apache.xerces.dom.DeferredTextImpl class the web app classloader will check this file in the system (parent) classloader and will load it from xmlx.jar file for you.
HTH.
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
u will find information on weblogic classloading here , I believe this should help u.
regards.
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic