1.啟動tomcat時報錯:Error creating bean with name 'payInfService': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.common.jaxb.JAXBUtils.closeUnmarshaller(Ljavax/xml/bind/Unmarshaller;)V,
2.當時覺得很奇怪,因為有兩個項目都使用了webservice,其中一個可以啟動,但是另一個無法啟動,然后分析他們的區別,發現其中一個是有提供服務,另一個沒有,因為找不到方法,猜想是不是版本的問題,最后將版本有原來的3.1.4修改為3.0.4,重新啟動就成功了!