Search code examples
javalinuxwebsphere

Java libraries in appication server classpath -Linux


How to check the list of libraries (jar, properties,folders) that is in the classpath of the application which is running in the application server(webpshere 8.1)?

Does ps (process) command in linux gives all the details. And also , How do we checking the port number(http,admin console,soap) of the application /application server domains?

Aside from WEB-INF/lib ,WEB-INF/classes. which are the folders that application server takes deafault into classpath.

My question is to find out the libraries that are used by server to run the application.


Solution

  • To know which jars are loaded into the JVM. In most conditions, 'lsof' can help you:

    lsof -a -p < pid > |grep '\.jar'