• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Classloader mode in WebSphere

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My application need use a newer version jdom.jar under my WAR file WEB-INF/lib instead of the one under WebSphere/AppServer/lib. After I installed the war file, in the "configuration" page of this application, I changed its WAR-class loader policy to "module" and classloader mode to "PARENT_LAST", but web server still finds the wrong version.

However, if in the configuration page of the particular server, I changed the application class loading policy to "PARENT_LAST", and the application classloader mode remains "multiple", the WAR-class loader policy to "application", classloader mode remains "PARENT_LAST", it finds the correct jar file.

Anybody knows why? In my opinion, the first approach should work as well.

Thanks.
 
Ranch Hand
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could use the Classloader viewer for debugging purpose

http://www-106.ibm.com/developerworks/websphere/library/techarticles/0312_cocasse/0312_cocasse.html
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic