How to alter Classpath in the WebSphere Admin Console..
posted 9 years ago
I have deployed a web application on WebSphere 6.0.2. There is a jar file in our webapp which conflicts with WebSphere's jar file of _same_ name. Meaning, if we replace WebSphere's jar file with our jar file, the application works OK.
If I do that, it affects every other web application which I want to avoid by any means.
Is there anyway to set it using WebSphere' Admin Console or whereever...so that my webapp uses my jar file for my web application?
What you want to do is to repackage your application, and place the new war file in one of a few places:
1. in the war/ear itself (best option) 2. in the websphere\lib\app folder 3. in the websphere\lib folder
Give this article on configuring classloaders with WebSphere a read. It will explain the PARENT_FIRST and PARENT_LAST configurations, and how you can get WebSphere to read from your jar files, and not WebSphere's.
J2EE & WebSphere Classloaders Demystified: How to Configure and Package your J2EE Applications
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads