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.