首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SmartGwt和SmartClient有什么关系?

SmartGwt和SmartClient有什么关系?
EN

Stack Overflow用户
提问于 2014-02-25 05:21:09
回答 2查看 1.4K关注 0票数 0

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

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

当我运行as(Web应用程序)时,系统为我提供了一个链接,我双击该链接。唯一要显示的是html中的文本(不显示SmartGwt组件)。我一直看到(在文档中)对SmartClient的引用,但我不确定它是做什么的。我是否需要SmartClient来使用SmartGwt组件进行开发,或者是否发生了其他事情?

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

代码语言:javascript
复制
 [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
EN

回答 2

Stack Overflow用户

发布于 2015-03-11 06:27:42

在.gwt.xml文件上对此进行注释后,它对我起作用了

代码语言:javascript
复制
<!--<add-linker name="xsiframe"/>-->

我使用的是gwt 2.6和smartgwt 4

票数 1
EN

Stack Overflow用户

发布于 2014-02-26 03:44:57

删除后重试

代码语言:javascript
复制
<script> var isomorphicDir = "testsmartgwt/sc/"; </script>

从您的主机HTML文件。

如果仍然有任何问题,请告诉我关于SMARTGWT和GWT的版本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21999259

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档