---
title: "GWT开发案例"
author: "火云剑Shanke"
date: "2012-10-11T16:22:05Z"
tags: ["GWT"]
categories: ["Web前端"]
slug: "gwt"
draft: false
lastmod: "2017-03-15T11:12:06Z"
id: 1696425
url: "https://kurui.iteye.com/blog/1696425"
---

**演示案例** <https://github.com/kurui/License-Server>

技术框架：GWT+Guice
演示数据库：Hsqldb
功能：授权管理、签发License文件

![](http://dl.iteye.com/upload/picture/pic/118950/8c396447-df5d-3291-a43d-e18ed0d16ba1.jpg)

**常见问题**
<span style="color:red">1.No source code is available for type org.dom4j.Document; did you forget to inherit a required module?</span>

GWT拥有自己Xml API。用惯了自己的解析API，遇到这个问题，真是纠结。

<span style="color:red">2.dispatcher.execute(new DepartmentLeaderRequest
public void onFailure(Throwable e) {</span>e.getMessage() 为null  无法进入Handler


<span style="color:red">3.XXXXRequest内需要有构造函数</span>request/response 用到的Vo必须序列化
request/response 用到的参数必须是前端的，不得使用Sever端类型 ，需要转化

​原文链接：<https://riboseyim.github.io?source=iteye&pid=GWT>
​![](http://o8m8ngokc.bkt.clouddn.com/qrcode_for_gh_896dd3dd5255_344.jpg)