Monday, November 28, 2011

Re: Trouble running application on Tomcat but runs fine through Eclipse

Did you run the GWT compiler before packaging your WAR?

If you did, then delete the *.nocache.js generated by the DevMode (Run As -> Web Application) and re-GWT-compile your project.

The thing is: when running DevMode, if there's no *.nocache.js or it seems to be stale, a new one is generated, containing only the minimum code required to run in DevMode. You need to GWT-compile just before you package your WAR, make sure the *.nocache.js is a "full" one (and of course that the rest of the compiled code, the *.cache.* files, are up-to-date too).

--
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/-/negraZr9C2MJ.
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.

No comments:

Post a Comment