0
我正在使用grails 1.3.6並安裝了ws-client插件。Grails:我無法使用ws-client插件
我得到錯誤在下面的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
錯誤:
Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl
但我有這個類(按Ctrl + Shift + T在STS查找類)
謝謝。
相關問題:here
你已經安裝了哪些其他插件? –
gsolr,codenarc 0.7,hibernate 1.3.6和tomcat 1.3.6 – Topera
不知道gsolr,它嵌入xerces嗎? Xerces是引起問題的衆所周知的候選人。一般的方法是在BuildConfig.groovy中將依賴關係排除在xerces(Impl)之外。檢查xerces是否顯示在'grails dependency-report'的輸出中 –