Archive for April, 2007

Undeploying tomcat web app fails due to locked files

Monday, April 23rd, 2007 Posted in web | No Comments »

The continuous build for my current project was failing occasionally due to problems undeploying a web application from Tomcat 5.5. Tomcat was holding locks on a jar file within WEB-INF/lib, ... Read more..

Making shell scripts robust by checking command exit values

Thursday, April 12th, 2007 Posted in unix | No Comments »

One great thing about unix is the ability to automate common operations with simple shell scripts - however there are risks. One such risk is that in the case a command ... Read more..

JTable editor - commit change on loss of focus

Wednesday, April 11th, 2007 Posted in swing | 7 Comments »

There is a known issue with JTables whereby the changes made in a cell editor are not committed when focus is lost. This can result in the table staying in 'edit ... Read more..

Find files modified after a date

Wednesday, April 11th, 2007 Posted in unix | No Comments »

How do you find the files which have been sneakily changed following a release? The find -newer command can list files which were modified after another file But I'm not sure there ... Read more..

XSL To Remove Elements

Tuesday, April 10th, 2007 Posted in xml | No Comments »

Recently I was faced with a directory full of XML files containing test data. The tests were all failing due to a couple of unwanted elements within each test file. ... Read more..