网上查过,也有人犯这个错误,他导入commons-logging-1.0.4.jar就好了,但我导入了也不行,结果发现是因为版本问题,dwr.xml里面的代码是我从网上复制过来的,结果和我工程里面导入的dwr包版本不匹配,也就是说dwr.xml里面这句话不对了:<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://www.getahead.ltd.uk/dwr/dwr20.dtd">,这句话要改成<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 1.0//EN" "http://www.getahead.ltd.uk/dwr/dwr10.dtd">