I start the iPlanet Java application server, something is loading in it commons-logging-1.0.4.jar.
This is fine until one of my applications calls AuthSSLProtocolSocketFactory, which is another apache library that also uses commons-logging.
I put jar in the jvm class path 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 commons-loggerdoesn't seem to like having two instances loaded into different class loaders. I assume that the application server has its own class loader that loads it the first time (although I cannot find any configuration of the application server that mentions this), so when my application loads it the second time, it gives This is an exception.
I cannot change the web server, and I cannot change the apache library. Suggestions?
source
share