Migrate GWT 2.0.4 Project to GWT 2.1.0
I update my Google Plugin (and GWT) version from 2.0.4 to 2.1.0
There are now some warnings for deprecated function that I will fix, but the problem for me is this warning:
The file war\WEB-INF\lib\gwt-servlet.jar 开发者_JS百科has a different size than GWT SDK library gwt-servlet.jar; perhaps it is a different version?
Is it OK just to override this jar file with new one from
eclipse\plugins\com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102\gwt-2.1.0
directory
and what about other files in war directory that are not manualy created by me? (images, html files, js files, and gwt subdirectory)
I got the same problem.
You can either overwrite it or remove it. If you remove it, eclipse will copy automatically the new library.
Just in case, if you also get some weird crashes after upgrading to GWT 2.1, try moving the GWT library to the first place of the BuildPath ;)
What I did to fix it was to just delete the gwt-servlet.jar file from /war/WEB-INF/lib. In my case, Eclipse didn't recreate it for me, and instead gave me an error message saying that the file could not be found.
What I did to fix it from this point was to go to Project > Properties > Google > Web Toolkit then uncheck the checkbox "Use Google Web Toolkit", then I pressed OK to confirm the change.
Then I repeated the steps, but this time I checked the "Use Google Web Toolkit" checkbox, and the gwt-servlet.jar file was indeed recreated in war/WEB-INF/lib.
For GWT-2.4.0
, I have used the following page and their instruction.
Go to the WEB-INF/lib directory on ecipse, right click on it, and choose "Build Path > use as source folder".
Source : Here
I suggest using eclipse quick-fix. Works well for me, it will automatically find the right jar file. Hope it helps. ^^
精彩评论