Search This Blog

Monday, 27 December 2010

Tomcat

Start the server:  /etc/init.d/tomcat5 start
Stop the server: /etc/init.d/tomcat5 stop

The log files can be found in /usr/share/tomcat5/logs.
The most useful are probably the locahost logfiles.

The security policies can be adjusted in the file /etc/tomcat5/catalina.policy.

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!

Saturday, 25 December 2010

Print a buffer with no attributes in emacs:
esc -x ps-print-buffer

Getting emacs to use pdflatex:
(setq latex-run-command "pdflatex")