I have no idea what the problem was other than the servlet name I suppose but I copied the entire servlet - pasted it in another file with a new name and it works, created a new file with the old servlet name and pasted the new (same) code back in it and it still doesn't work (and crashes tomcat) - only difference is the filename. Thanks
--