I run iplanet's java applcation server, something in it is loading commons-logging-1.0.4.jar
That's fine until one of my applications calls AuthSSLProtocolSocketFactory which is another apache library that also uses commons logging. I put the jar on the jvm classpath and get this error
Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy....
It seems that commons logger doesn't like having two instances of itself loaded in different classloaders. I assume the application server has its own classloader that's loading it the first time (Although I can't find any appserver configuration that mentions it) so when my application goes to load it a second time it throws that exception.
I can't change the webserver, and I can't change the apache library. Suggestions?