We have an application deployed on the Websphere 7 application server. Its deployment and operation in various environments. But it gave a method of not found exception in one new env. Upon deepening, we found that a certain class was present in 2 jars, and the class from the "wrong" jar was loaded into the new env. I looked at the detailed view of the class loader, and the can loading sequence was different in it.
In further research, it would seem that there was a random variance in the order in which the jar files were uploaded to each env.
2 questions:
1) What coefficient determines the policy for loading WAS classes and any suggestion to fix the problem?
2) More generally, when we indicate, assuming * .jar in the classpath for any java program, how does any JVM load jars? How is it in alphabetical order or according to the modified time or any such file?
Barun source share