Thursday, September 26, 2013

Development mode does not work or does pick up code changes

Dear GWT community members,

I use the latest Eclipse version (4.3) and the latest versions of maven and GWT eclipse plugins. I have a problem with the development mode which does not pick up code changes which I did or fails at startup. I use maven to build my project and deploy it on tomcat 7.

My GWT project compiles with no errors. On clicking the dev mode url (http://localhost:8080/MyModule.jsp?gwt.codesvr=127.0.0.1:9997#!login) in browser I get immediately the following the error: 

[DEBUG] [MyModule] - Validating units:
[TRACE] [MyModule] - Finding entry point classes
[ERROR] [MyModule] - Errors in 'file:/Users/myuser/smis/branches/smis-main-ms2/smis-web-application/src/main/java/com/company/proj/gwt/client/MyModule.java'
[ERROR] [MyModule] - Line 63: No source code is available for type com.company.proj.core.gwt.shared.action.LoadLoggedInUserAction; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 71: No source code is available for type com.company.proj.core.gwt.client.util.StringUtils; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 76: No source code is available for type com.company.proj.core.gwt.shared.action.LoadLoggedInUserResult; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 80: No source code is available for type com.company.proj.core.gwt.shared.dto.UserDto; did you forget to inherit a required module?
[ERROR] [MyModule] - Errors in 'file:/Users/myuser/smis/branches/smis-main-ms2/smis-web-application/src/main/java/com/company/proj/gwt/client/gin/SmisGinjector.java'
[ERROR] [MyModule] - Line 39: No source code is available for type com.company.proj.core.gwt.client.util.LoggedInGatekeeper; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 41: No source code is available for type com.company.proj.core.gwt.client.util.ClientContext; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 42: No source code is available for type com.company.proj.core.gwt.client.widget.element.ElementWidgetBuilder; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 47: No source code is available for type com.company.proj.core.gwt.client.header.HeaderPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 48: No source code is available for type com.company.proj.core.gwt.client.login.LoginPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 49: No source code is available for type com.company.proj.core.gwt.client.mainpage.MainPagePresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 50: No source code is available for type com.company.proj.core.gwt.client.patientfinder.PatientFinderPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 51: No source code is available for type com.company.proj.core.gwt.client.patient.searchresultgrid.SearchResultGridPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 52: No source code is available for type com.company.proj.core.gwt.client.patient.masterdata.MasterDataPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 54: No source code is available for type com.company.proj.core.gwt.client.patient.healthrecord.HealthRecordPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 55: No source code is available for type com.company.proj.core.gwt.client.patient.healthrecord.records.RecordsPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 56: No source code is available for type com.company.proj.core.gwt.client.patient.healthrecord.records.elements.ElementsPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 57: No source code is available for type com.company.proj.core.gwt.client.patient.healthrecord.records.element.ElementPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 58: No source code is available for type com.company.proj.core.gwt.client.patient.healthrecord.records.meeting.MeetingPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 59: No source code is available for type com.company.proj.core.gwt.client.patient.healthrecord.info.InfoPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Line 60: No source code is available for type com.company.proj.core.gwt.client.message.MessagesPresenter; did you forget to inherit a required module?
[ERROR] [MyModule] - Unable to find type 'com.company.proj.gwt.client.MyModule'
[ERROR] [MyModule] - Hint: Previous compiler errors may have made this type unavailable
[ERROR] [MyModule] - Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] [MyModule] - Failed to load module 'MyModule' from user agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36' at localhost:59410

When I somehow manage to launch the development mode, the code changes I've just made, are not seen in the dev mode. The dev mode works but it uses the last compiled by maven version of my project.

Is there any way to force the dev mode to recompile the project each time a new code is saved? It looks that there some problems about the build of the GWT project which result in dev mode failure. Any ideas what could it be? I had the same project configuration in Eclipse 3.7 and the dev mode always run, but I cannot use 3.7 anymore. Can GWT Eclipse plugins cause the issues with dev mode? 

Thank you in advance for any hints.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment