The type org.apache.axiom.om.OMElement cannot be resolved. It is indirectly referenced from require
经过调查,因为buildpath下面我只引用了axis2-1.6.2.jar.但是axis2在这里依赖于axiom-api,所以我后来通过maven的repository搜索了axiom.我把最新版的依赖加入,如下:org.apache.axis2axis21.6.2ws-commonsaxiom-api1.1.1