SmartClient与SmartGwt有什么关系?

时间:2014-02-24 21:21:09

标签: smartgwt smartclient

我正在尝试运行一个简单的SmartGWT应用程序(我在Eclipse中安装了GWT工具包和SDK)。我试过这个简单的教程......

http://hilloldebnath.byethost3.com/2009/08/29/smartgwt-a-getting-started-guide/

当我运行as(Web应用程序)并且我提供了一个链接时,我双击该链接。唯一要显示的是html中的文本(没有显示SmartGwt组件)。我一直在看SmartClient的引用(在文档中),但我不确定它的作用。我是否需要SmartClient与SmartGwt组件一起开发或者是否还会发生其他事情?

我还将提供控制台输出。控制台中也有一些错误,我不太清楚它们是什么意思......

 [WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/C:/dev/tools/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar' to the web app classpath for this session
   For additional info see: file:/C:/dev/tools/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
Linking modules
   Bootstrap link for command-line module 'com.test.smartgwt.TestSmartGwt'
      Linking module 'testsmartgwt'
         Invoking Linker Cross-Site-Iframe
            [ERROR] The Cross-Site-Iframe linker does not support <script> tags in the gwt.xml files, but the gwt.xml file (or the gwt.xml files which it includes) contains the following script tags: 
sc/modules/ISC_Core.js
sc/modules/ISC_Foundation.js
sc/modules/ISC_Containers.js
sc/modules/ISC_Grids.js
sc/modules/ISC_Forms.js
sc/modules/ISC_RichTextEditor.js
sc/modules/ISC_Calendar.js
sc/modules/ISC_DataBinding.js
sc/skins/Enterprise/load_skin.js
In order for your application to run correctly, you will need to include these tags in your host page directly. In order to avoid this error, you will need to remove the script tags from the gwt.xml file, or add this property to the gwt.xml file: <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
[ERROR] shell failed in doSlowStartup method
[WARN] 404 - GET /testsmartgwt/testsmartgwt.nocache.js () 1401 bytes
   Request headers
      Host: 
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
      Accept: */*
      Accept-Language: en-US,en;q=0.5
      Accept-Encoding: gzip, deflate
      Referer: http://******8888/TestSmartGwt.html?gwt.codesvr=******9997
      Connection: keep-alive
   Response headers
      Content-Type: text/html;charset=ISO-8859-1
      Cache-Control: must-revalidate,no-cache,no-store
      Content-Length: 1401
[WARN] 404 - GET /testsmartgwt/testsmartgwt.nocache.js (****) 1401 bytes
   Request headers
      Host: localhost
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
      Accept: */*
      Accept-Language: en-US,en;q=0.5
      Accept-Encoding: gzip, deflate
      Referer: http://******8888/TestSmartGwt.html?gwt.codesvr=******:9997
      Connection: keep-alive
   Response headers
      Content-Type: text/html;charset=ISO-8859-1
      Cache-Control: must-revalidate,no-cache,no-store
      Content-Length: 1401

2 个答案:

答案 0 :(得分:1)

在.gwt.xml文件

上对此进行评论后,它对我有用
<!--<add-linker name="xsiframe"/>-->

我使用gwt 2.6和smartgwt 4

答案 1 :(得分:0)

删除

后再试一次
<script> var isomorphicDir = "testsmartgwt/sc/"; </script>

来自您的主机HTML文件。


如果仍有任何问题,请告知我们SMARTGWT和GWT的版本。