我正在尝试运行一个简单的 SmartGWT 应用程序(我在 Eclipse 中安装了 GWT 工具包和 SDK)。我试过简单的教程,比如这个......
http://hilloldebnath.byethost3.com/2009/08/29/smartgwt-a-getting-started-guide/
当我运行为(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