“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
The JavaRanch Exam is for old versions. It is reffering the DD for the older version. In the Older version DD for web.xml, the order of the elements are important. you can not define <listener> after the <servlet>. Therefore it is giving the parsing error