2011-07-19 37 views
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

+1

你已經安裝了哪些其他插件? –

+0

gsolr,codenarc 0.7,hibernate 1.3.6和tomcat 1.3.6 – Topera

+1

不知道gsolr,它嵌入xerces嗎? Xerces是引起問題的衆所周知的候選人。一般的方法是在BuildConfig.groovy中將依賴關係排除在xerces(Impl)之外。檢查xerces是否顯示在'grails dependency-report'的輸出中 –

回答

0

我刪除另一個插件(gsolr)是有衝突和作品。

注意:另一個解決方案是創建一個插件項目來包裝ws-client插件。 (我這種方式在類之間沒有衝突)