org.dom4j.invalidxpathexception: invalid xpath expression: '//head'. caused by: org/jaxen/dom4j/dom4jxpath 主要是jaxen版本的问题,换成1.1.1就ok 不要使用full的版本