啟動服務報錯:nested exception is java.lang.NoSuchMethodError: org.apache.cxf.common.jaxb.JAXBUtils.closeUnmarshaller(Ljavax/xml/bind/Unmarshaller;)V


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,重新啟動就成功了!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM