经过很多痛苦,终于安装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中设置开发模式有什么特殊步骤吗?
最近chrome停止显示Source Maps.
我的项目有一些突破,现在使用新版本的gwt和chrome我没有在源标签中看到java源代码.
我正在使用超级开发模式.我从Code Server收到的编译文件(*.cache.js)包含Source Maps的标题:
X-SourceMap:/sourcemaps/Simulation/gwtSourceMap.json
Run Code Online (Sandbox Code Playgroud)
代码服务器不会打印它已发送源映射(之前为止),只是编译成功
我有:gwt版本2.5.0 Chrome版本25.0.1364.172 Ubuntu 12.04 LTS(但问题也在Windows和MacOS中重现)
我使用Gradle作为构建管理建立了一个GWT项目,一切都很好.
我可以在eclipse中将我的项目部署到我的本地tomcat,并且应用程序按预期运行.但是,如果我启动DevMode并在我的css资源中更改某些内容(使用@Source注释绑定为CssResource类),GWT DevMode不会捕获它,并且不会考虑css更改.我错过了什么吗?我希望DevMode能够在开发期间检测.css文件中的更改,而无需再次运行gwt编译.
以下是我如何使用css资源的示例:
public interface XOFooterPanelResource extends FooterPanelResource, ClientBundle {
@Override
@Source("XOFooterPanel.css")
XOFooterPanelStyle style();
@Override
@ImageOptions(repeatStyle = RepeatStyle.Horizontal)
ImageResource footerPanelBackground();
@Override
@ImageOptions(repeatStyle = RepeatStyle.Horizontal)
ImageResource footerPanelBackgroundEndUser();
@Override
@Source("footerDelimiter.jpg")
ImageResource footerDelimiter();
}
public interface XOFooterPanelStyle extends FooterPanelStyle, CssResource {
}
Run Code Online (Sandbox Code Playgroud)
正如你所看到的,我有一个扩展CssResource的XOFooterPanelStyle接口.它在XOFooterPanelResource中使用 - 它扩展了ClientBundle - 使用@Source注释和我的CSS文件的名称.
这是我的gradle构建文件的一部分,它负责启动DevMode:
javaexec {
main = 'com.google.gwt.dev.DevMode'
jvmArgs = ['-Xmx2048M', '-XX:MaxPermSize=1024M']
classpath {
[
sourceSets.main.java.srcDirs,
// Java source
sourceSets.main.output.resourcesDir,
// Generated resources
sourceSets.main.output.classesDir,
// Generated classes
sourceSets.main.compileClasspath // Deps
]
}
args = [
'-startupUrl',
'myapp/index.html', …Run Code Online (Sandbox Code Playgroud) 我正在通过开发模式调试和开发GWT模块.在启动DM时,我得到以下JSNI错误:"在实例方法上缺少限定符".但是,当我编译它时,我没有编译错误.这是DM问题还是我的错?
提示:这是我尝试在本机方法中访问的函数:
public static native void fbLogin () /*-{
@pack1.pack2.pack3::someMethod(Ljava/lang/String;)(param);
}-*/;
Run Code Online (Sandbox Code Playgroud)
谢谢!