Search This Blog

Sunday, 26 December 2010

GWT

Deploying applications:
  1. Run the GWT compile script, just click on the red GWT compile project button within eclipse. All the output files can then be found in the war folder.
  2. Copy as root, the whole content of the war folder into /usr/share/tomcat5/webapps/myapp/
  3. Restart tomcat: /etc/init.d/tomcat5 stop
  4. /etc/init.d/tomcat5 start
 

Recommended reading:
Ryan Dewsbury's book "Google Web Toolkit Applications" is a very good start for gwt development, especially for people who know about programming, but who are unfamiliar with web development.

The problems I encountered:

    • java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64: Copy the commons-codec.jar file into the /WEB-INF/lib folder.
    • java.lang.NullPointerException at javax.imageio.ImageIO.write:  Give the absolute path when writing files!

No comments:

Post a Comment