GWT application works perfectly fine in hosted/dev mode but its not working in production mode.
My application on which I am working on, is working fine in dev / hosted mode. But when its compiled by GWT compiler and deployed in production, it was just showing blank. It was not showing any javascript errors on browser (firefox error console). I tried and confirmed searched on net but I didn't find any damn solution. So finally I decided to cleanup unwanted dead code in the project which is in way good thing but it took me a while to identify the issue. The issue was I was defining a property (
<define-property name="test" values="true,false" />)inside one of the module (i.e. .gwt.xml) but was not setting any value (haven't done
<set-property name="set" value="true" />. When I removed this unwanted line, and deployed the code after "GWT compile" it started working. It was unbelievable for me to find this problem, so I reconfirmed it by adding just define tag and removing it multiple times.
My problem is solved now , but I feel there should be some way to identify such a situation (as it took me big amount of time to investigate the root cause and identify the solution). I do agree that one should take care of and remove unwanted/dead code, but still if it can be identified by the compiler and it throws error that will make developers life easy. So posting it here to understand what others have to say on this.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/lGbPy7Y_xrwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home