LogConfigurationException: Invalid class loader hierarchy.
Hi, I'm trying to write plugin that uses ApacheHttpClient from jersey-apache-client.
When I run plugin on Intellij Idea Ultimate 11 i get an error
INFO: Detected intellij major version 11; activating the appropriate compatibility mode.
java.lang.ExceptionInInitializerError
at com.sun.jersey.client.apache.ApacheHttpClient.createDefaultClientHander(ApacheHttpClient.java:188)
at com.sun.jersey.client.apache.ApacheHttpClient.<init>(ApacheHttpClient.java:96)
....
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: 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. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 93 more
Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
... 94 more
I removed from the classpath commons-logging, but error is still there.
When i run the same plugin in Intellij Idea Comunity edition there is no error.
Could this be influence of some other plugin? If yes, how to disable it?
Thanks
Please sign in to leave a comment.
found that after deleting jar from plugin project it still is left in <user>/.IntelliJIdea11/system/plugins-sandbox/plugins/<pluginname>/lib/* after delete from there problem is fixed