我正在使用apache cxf + spring,这些东西在Eclipse中运行,但不在命令行中运行。不断获取错误无法解决绑定
解决方案:
@ImportResource({“” classpath:META-INF / cxf / cxf.xml“,” classpath:META-INF / cxf / cxf-extension http.xml“,” classpath:META-INF / cxf / cxf-extension-soap。 xml“})
要么
<import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
功不可没
http://www.java- allandsundry.com/2011/01/orgapachecxfservicefactoryserviceconstr.html