grailsgrails-pluginws-client

Grails: I can't use ws-client plugin


I'm using grails 1.3.6 and installed ws-client plugin.

I getting error in the following hello world:

def wsdlURL = "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL"
def proxy = webService.getClient(wsdlURL)
def result = proxy.CelsiusToFahrenheit(0)
result = "${result} degrees Farhenheit"
render result

Error:

Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl

But I have this class (Ctrl+Shift+T in STS find the class)

Thanks.

Related question: here


Solution

  • I removed another plugin (gsolr) that had conflicts and works.

    Note: another solution is create a plugin project to wrap ws-client plugin. (I this way there is no conflict beetween classes)