Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    JUNIT error

    SmartGWT 2.2, FireFox 3.6.12
    We are using NetBeans 6.9.1 with the GWT plugin, JUNIT 4.5 and GWT 2.0.4.

    We're attempting to use GWT's JUNIT system to test our smartclient code but the system seems to be crashing on each test with the error message:

    Code:
    Exception in thread "htmlUnit client thread" java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpClient.<init>(Lorg/apache/commons/httpclient/HttpConnectionManager;)V
            at com.gargoylesoftware.htmlunit.HttpWebConnection.createHttpClient(HttpWebConnection.java:394)
            at com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClient(HttpWebConnection.java:352)
            at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:94)
            at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1397)
            at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1331)
    .....
    I've done some research and most forum posts state that this issue is caused by a conflict between two versions of NekoHTML however I've greped over our system and the only gargoyle packages I've found are in the GWT-user.jar.
    Does Smartclient use NekoHTML or has anyone stumbled over this exception before? I can't find where there could be another version of Neko to conflict with the one in GWT-user.jar. Did anyone ever find that this problem has a different cause?
    Thanks

    #2
    I got the same, the easiest solution is to use newest nekohtml

    <dependency>
    <groupId>net.sourceforge.nekohtml</groupId>
    <artifactId>nekohtml</artifactId>
    <version>1.9.15</version>
    </dependency>

    I tried others, by excluding, but not success

    Comment

    Working...
    X