My web.xml is as given in page 77. There is no change.
Actually, the book gives a slightly different command for compiling, which I have not used. After servlet-api.jar, ':classes:.' is also to be used, as per the book. If I use the same command, javac fails to recognise the import command. Hence I modified it.