Quantcast

Error: unable to resolve class groovyx.net.http.HTTPBuilder

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Error: unable to resolve class groovyx.net.http.HTTPBuilder

Luca Farsetti
Hi all, i try to use HTTPBuilder in my application but i have this error:

unable to resolve class groovyx.net.http.HTTPBuilder


in my BuildConfig.groovy i have

...

dependencies {

compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.2'

}

...


when i run application i have no errors, but i'm not able to resolve class. 

Have you some ideas?



Luca

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Error: unable to resolve class groovyx.net.http.HTTPBuilder

ppazos
Hi everybody,

I'm having the same problem here, but maybe a little different context:

I've a jar generated from a Groovy project "rule-engine" that I need to use in a Grails app.
That jar depends on http-builder-0.5.2.jar but when I call a method from the API declared in the jar, the thing doesn't work.
That API was tested inside the Groovy project, but it fails miserably inside the Grails project.

As a test I created an action on a controller to see if I can make a http request there, but I get:

F:\rule-engine-ui\grails-app\controllers\rules\RuleController.groovy: 10: unable to resolve class groovyx.net.
http.HTTPBuilder
 @ line 10, column 1.
   import groovyx.net.http.HTTPBuilder


In the grails project/lib I have:

15/05/2010  08:22 a.m.           575.389 commons-collections-3.2.1.jar
15/05/2010  08:21 a.m.            60.686 commons-logging-1.1.1.jar
27/12/2011  12:43 p.m.           449.973 http-builder-0.5.2.jar    <<<< http builder and the jars it needs
19/09/2010  12:11 p.m.           292.893 httpclient-4.0.3.jar
15/05/2010  08:22 a.m.           172.888 httpcore-4.0.1.jar
15/05/2010  08:21 a.m.           151.839 json-lib-2.3-jdk15.jar
21/08/2012  04:06 a.m.           221.111 rule-engine.jar              <<<< mi jar
15/05/2010  08:21 a.m.            84.091 xml-resolver-1.2.jar


Any clues about what's happening?
Why is http-builder not loaded from /lib as other jars?


Thanks a lot,
Pablo.
Pablo Pazos
Technical Lead @ TarmacIT
Loading...