2015-04-03 20 views
0

你好我收到錯誤時嘗試在保險絲容器中運行的駱駝項目無法導入從URL位置[classpath中的bean定義:META-INF/CXF/cxf.xml

org.springframework.beans.factory.parsing .BeanDefinitionParsingException:配置問題: 無法從URL位置導入bean定義[classpath:quote-endpoints.xml]違規資源:URL [bundle://251.0:0/META-INF/spring/applicationContext.xml];嵌套的例外是org.springframework.beans.factory.parsing.BeanDefinitionParsingException:配置問題:

無法導入從URL位置bean定義[classpath中:META-INF/CXF/cxf.xml]

犯規資源: OSGi資源[classpath:quote-endpoints.xml | bnd.id = 251 | bnd.sym = null];嵌套異常是org.springframework.beans.factory.BeanDefinitionStoreException:IOException從OSGi資源解析XML文檔[classpath:META-INF/cxf/cxf.xml | bnd.id = 251 | bnd.sym = null];嵌套異常是java.io.FileNotFoundException:OSGi資源[classpath:META-INF/cxf/cxf.xml | bnd.id = 251 | bnd.sym = null]無法解析爲URL,因爲它不存在

任何幫助讚賞

謝謝

回答

2

檢查您的xml文件並刪除這些CXF導入。他們已經不再需要很多年了。例如尋找任何與META-INF/cxf/cxf.xm和類似的東西,並刪除這些。

+0

您好克勞斯, QUOT e-endpoints.xml import resource =「classpath:META-INF/cxf/cxf.xml」/>請看下面 Sampada 2015-04-05 16:42:28

+0

是刪除 2015-04-06 04:58:22

0

是 - 有兩個XML文件 -

的applicationContext.xml其中進口報價,endpoints.xml

<import resource="classpath:quote-endpoints.xml" /> 

引號endpoints.xml祁門功夫資源=「類路徑:META -INF/CXF/cxf.xml」 />請參閱下面

xsi:schemaLocation=" 
      http://www.springframework.org/schema/beans 
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
      http://camel.apache.org/schema/spring 
      http://camel.apache.org/schema/spring/camel-spring.xsd 
      http://camel.apache.org/schema/cxf 
      http://camel.apache.org/schema/cxf/camel-cxf.xsd 
      http://cxf.apache.org/transports/http/configuration 
      http://cxf.apache.org/schemas/configuration/http-conf.xsd"> 

    <import resource="classpath:META-INF/cxf/cxf.xml" /> 
相關問題