经过很多痛苦,终于安装GWT 2.5了我的Eclipse kepler
现在我可以使用Dev模式启动,即 Classic Dev Mode.
通过Eclipse aruguments选项卡中的调试配置.
-remoteUI"$ {gwt_remote_ui_server_port}:$ {unique_id}" - startupUrl index.html -logLevel INFO -codeServerPort 9997 -port 8888 -war E:\ GWT2.5_Test\V4Workflow_V17\war com.suresh.V4Workflow
当我调试Eclipse生成的URL时
http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997
Run Code Online (Sandbox Code Playgroud)
哪个好.能够调试我的代码.
实际问题从这里开始:
我急切地等待以超级开发模式启动我的应用程序.
超级开发模式在Web服务器中运行GWT编译器,Web服务器是开发人员可以从命令行运行的普通Java应用程序.服务器启动后,会打印其URL:
代码服务器已准备就绪.接下来,访问:
http://localhost:9876/
在gwt.xml文件中添加了以下两行
<add-linker name="xsiframe"/>
<set-configuration-property name="devModeRedirectEnabled" value="true"/>
Run Code Online (Sandbox Code Playgroud)
我编译了这个项目然后我http://localhost:9876/ 没有发生任何事情.
奇怪的是,没有在docs中建立配置指南.
我在这里缺少什么?
谢谢你的任何线索.
我看到GWT开发模式插件可用于Internet Explorer 8,但是当我启动它时浏览器崩溃了.堆栈跟踪显示oophm.dll中存在错误.我在Windows 7的VirtualBox实例上运行它.在IE8中设置开发模式有什么特殊步骤吗?
我从2.5开始使用GWT Super Dev Mode没有任何问题.最近我同时将Eclipse和GWT升级到2.6.一切似乎都可以解决我对代码所做的任何更改:
我在运行配置中使用"-bindAddress 192.168.5.151",以便能够从不同的设备进行浏览.如果我删除-bindAddress一切都有效.为什么?
我有一个.jsp页面(我的gwt模块的主页),我正在尝试启用超级开发模式,因为我正在迁移到gwt 2.6.按照我在互联网上发现的解释,一旦我启动代码服务器并添加书签,接下来我必须在浏览器中打开页面,所以我从tomcat服务器调用jsp页面.
问题是没有任何反应,看着Chrome控制台似乎无法找到我的模块/ module.nocache.js有
什么想法吗?
编辑:添加.gwt.xml
<inherits name="XXX.frontend.gwt.Framework"/>
<inherits name="XXX.frontend.gwt.sample.frontend.module.blanc.Module"/>
<!-- Specify the paths for translatable code -->
<source path='client'/>
<source path='shared'/>
<!-- Specify the application entry point class -->
<entry-point class='XXX.frontend.gwt.client.FrameworkEntryPoint'/>
<!-- Compile for specific browser -->
<!-- <set-property name="user.agent" value="ie8,ie9,ie10,gecko1_8,safari" /-->
<!-- Compile for specific language -->
<extend-property name="locale" values="fr" />
<set-property-fallback name="locale" value="fr" />
<set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE' />
<set-configuration-property name="devModeUrlWhitelistRegexp" value="http://(localhost|127\.0\.0\.1)(:\d+)?/.*" />
<add-linker name="xsiframe" />
<set-property name="compiler.useSourceMaps" value="true" />
Run Code Online (Sandbox Code Playgroud)
我尝试使用gradle将Libgdx部署到html.我复制了内容
html/build/dist
我在浏览器中看到的只是带有红色背景的badlogic图像(如果你刚刚创建了一个项目,你会看到什么)为什么会这样?
使用superdev我可以在浏览器中打开它,我看到它在哪里拖动这个按钮但无法播放它.什么也没有
The code server is ready at http://127.0.0.1:9876/
GET /clean/html
Cleaning disk caches.
Cleaned in 29ms.
GET /superdev.html
[WARN] ignored get request: /superdev.html
[WARN] not handled: /superdev.html
> Building 91% > :html:superDev^C%
Run Code Online (Sandbox Code Playgroud)
转过开发模式,我明白了 Can't find any GWT Modules on this page.
如果我正常构建它,我会看到有关折旧方法的一些警告,它会成功构建.
html没有加载资产