Search code examples
javamavenwebsphereclassloader

How to check the class conflict between the application server and WebSphere?


I want to know whether any mechanisms /tools to check the same class conflicts between the jar files in my application server and Websphere.

I have some of jar in /WEB_INF/lib, class files in /WEB_INF/classes and also in ${WAS_INSTALL_ROOT}/plugins. So how can I check whether the jar contain same classes ? Any tools available ? Any suggestions ?


Solution

  • Assuming you're asking about traditional WebSphere (rather than Liberty), it sounds like you'd benefit from the Class loader viewer tool.

    This can be helpful when unsure if you're loading a given class from some part of your application or some part of the runtime. (I'm guessing when you ask about conflict between "the application server and WebSphere" you might mean conflict between "the application and WebSphere".)

    This tool is documented here and illustrated with some examples in sections 20.3, 20.4 in this redbook.