When trying to run the simplest of HtmlUnit tests using the junit awt
and swing runners I get the following error.=20
java.lang.ExceptionInInitializerError
at com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClientFor
HttpWebConnection.java:333)
at
com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConne
ction.java:145)
..
..
..
Caused by: org.apache.commons.logging.LogConfigurationException:
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.) (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.))
I only have reference to commons-logging-1.0.4.jar on my class path.
When I remove it from the class path I get a different error indicating
that it cannot find the logging classes.
Any ideas what could be causing this or how i could ifx it. Note: the
test works fine when using the text runner.
Thanks
Damien
This e-mail is confidential and is intended for the named recipient =
only. If
you receive it in error please destroy the message and all copies. =
Kainos
Software Ltd. does not accept liability for damage sustained as a result =
of
malicious software (e.g. viruses). Kainos does not accept liability for, =
or
permit, the creation of contracts on its behalf by e-mail, the =
publication of
any defamatory statement by its employees by e-mail, or changes =
subsequently
made to the original message. The Company's registered office is located =
at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 =
1100.
|