Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.4
-
None
-
Operating System: other
Platform: Other
-
36041
Description
LogFactoryImpl#getLogConstructor throws a LogConfigurationException when the
same class is detected in multiple class loaders. The error message is as follows:
"Invalid class loader hierarchy. You have more than one version of <class-name>
visible, which is not allowed."
We could improve the usefulness of the error message by including classloader
details such as ClassLoader#getClass, etc. It would greatly reduce the time
spent hunting down multiple copies of Commons Logging (which can frequently
occur when deploying to application servers such as JBoss and WebLogic, as they
often have a version of Commons Logging stowed away in their own class path).