Vaadin 7 about client-side

[size=5]
I want to use Vaadin to develop in client-side, but the book of vaadin about client-side seems not enough.

System:Windows XP SP3
IDE:Eclipse 4.2(Juno)

what I did:

  1. mvn archetype:generate
    -DarchetypeGroupId=com.vaadin
    -DarchetypeArtifactId=vaadin-archetype-application
    -DarchetypeVersion=7.1.3
    -Dpackaging=war

    Create a Vaadin maven project in cmd.

2.Import the project to eclipse.

3.Modify the project.
References:
The book of Vaadin chapter13,14;
Vaadin wiki:a) Create a Vaadin client side module; b) Using Vaadin in an existing GWT project.

Problems:
1.After above,I can run in tomcat after compiled and deployed.
2.But I can’t running in hosted mode or super devmode.

The problems makes me puzzle.I think the main problem below:
1.pom.xml(vaadin-maven-plugin configuration)
2.myproject.gwt.xml
3.web.xml(I don’t know how to set the servlet and mapping for client-side)
4.project or eclipse classpath(unlikely)

I post my pom.xml in attachment.

Is there anyone shows me how to create a Vaadin client-side project in maven, and its tructure?Preferably with demo.

[/size]
13164.xml (6.15 KB)

Please forgive my poor English.
The following content translation from Google Translate.

Finally, I solved the problem.
1.Create a GWT project with maven, said according to the article to modify the configuration;
https://vaadin.com/wiki/-/wiki/Main/Using%20Vaadin%20in%20an%20existing%20GWT%20project
2.Pay attention to modify vaadin-maven-plugin’s goals, commented gwt all the original goal, add the following three major goal: clean, update-widgetset, compile, if the version supports it, you can add update-theme and compile-theme into ;
3.Add the following dependency, or running hosted mode (Jetty) NoClassDefFound exception will be thrown;

javax.servlet.jsp
jsp-api
2.2

note:I contrast a bit, gwt-dev.jar which contains jsp-api.jar, while vaadin-client-compiler which did not, this is the cause of the problem;
4.Run mvn vaadin: compile, after then run mvn vaadin: run to run hosted mode;
5.Note that, if used in the gwt rpc, vaadin-client’s scope must be set to compile (the default)instead of provided.

最后,我解决了问题。
1、用maven创建GWT项目,并按这篇文章所说的修改配置;
https://vaadin.com/wiki/-/wiki/Main/Using%20Vaadin%20in%20an%20existing%20GWT%20project
2、注意修改vaadin-maven-plugin的goals,注释掉gwt原来的所有goal,主要添加以下三个goal:clean,update-widgetset,compile,如果版本支持的话,可以添加update-theme和compile-theme进去;
3、添加dependency如下,否则运行hosted mode(Jetty)的时候会抛出NoClassDefFound异常;

javax.servlet.jsp
jsp-api
2.2

PS:我对比了一下,gwt-dev.jar里面包含jsp-api.jar,而vaadin-client-compiler里面却没有,这就是问题产生的原因;
4、run mvn vaadin:compile,after then run mvn vaadin:run to run hosted mode;
5、注意,如果要用到gwt的rpc,vaadin-client的scope需设成compile(默认),而不是provided。