Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrate GWT 2.0.4 Project to GWT 2.1.0

Tags:

eclipse

gwt

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 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)

like image 298
Julian Popov Avatar asked Nov 23 '10 10:11

Julian Popov


2 Answers

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 ;)

like image 52
Carlos Tasada Avatar answered Nov 18 '22 07:11

Carlos Tasada


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.

like image 12
rodrigo-silveira Avatar answered Nov 18 '22 06:11

rodrigo-silveira