SmartGwt: attempt to use DataSource of type iscServer without SmartClient Server option.

在使用 SmartGwt DataSource 取值時出現如下錯誤:

 

attempt to use DataSource of type iscServer without SmartClient Server option. Please either set clientOnly: true for one-time fetch against dataURL/testFileName or download the edition with SmartClient Server.

 

這主要是混合了 SmartGwt LGPL 和 EE 這2個版本引起,經多次嘗試,解決方法如下:

1) 在 <projectname>.gwt.xml 配置文件中,將 <inherits name="com.smartgwt.SmartGwt"/>

 改爲  <inherits name="com.smartgwtee.SmartGwtEE"/>

 

2) 刷新 Project>war目錄,將自動產生的<project name>  文件夾刪除。

 

重新run一下,應該就順利看到數據了。
 

發佈了26 篇原創文章 · 獲贊 11 · 訪問量 18萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章