路径问题,页面里面应该是var XML_URL="/inc/xml/google/google.xml"; 这样吧。
把Document doc = db.parse(new File("year.xml")); 换成
Document doc = db.parse(new File("../webapps/maps/inc/xml/google/year.xml"));