Hi David,
It's true for the WEB-INF/lib, however the global classloader works differently based on our experiences. It's recommended to configure the classloader properly, so it won't be "luck".
The reason why it can change: some of the containers load the libraries by the operating system's file listing. It's usually abc order, however based on the OS and the filesystem it can be a different one (sometimes creation date).
I have not found any documentation about this when I was trying to find out the reason, if someone finds information about it, please feel free to share it

Zsolt
Please sign in to flag this as inappropriate.