- 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.
- Copy as root, the whole content of the war folder into /usr/share/tomcat5/webapps/myapp/
- Restart tomcat: /etc/init.d/tomcat5 stop
- /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