Vaadin是一个非常优秀的RIA框架,类似ZK,网站 上有非常丰富的教程、文档,很容易入手。Vaadin最新版本是 6.3.1,netbeans和eclipse都有相应plugin便于快速开发。
在Google App Engine中部署Vaadin应用有两种方式,我使用的是Vaadin plugin for Eclipse
Vaadin网站上有详细教程(here ),部署的时候需要注意两个问题。首先,注意教程中这部分内容:
Note! There is a problem in the latest GAE plugin which prevents this from working. If you get an error like "The App Engine SDK 'C:\<workspace path>\<project name>\war' on the project's build path is not valid" do the following:
1. Open preferences -> Google -> App Engine and select the sdk version again
2. Open prefercense -> Java Build Path -> Export Order. Change the Export order so that the App Engine SDK is ABOVE the "Web App Libraries" classpath container.
1. Open preferences -> Google -> App Engine and select the sdk version again
2. Open prefercense -> Java Build Path -> Export Order. Change the Export order so that the App Engine SDK is ABOVE the "Web App Libraries" classpath container.
开始的时候没有在意这段话,还以为是创建项目过程出的问题!其次就是程序运行调试问题,记着要使用Run As Web Application(或Debug As Web Application),这是GAE plugin提供的。如果使用项目创建时选择的Target Runtime(比如Tomcat)来运行程序,一定会得到空指针异常。