2012-03-28 25 views
1

我目前正試圖建立與GWT,Maven,Neo4j和Spring數據的測試項目。 我遇到了一個問題,當我嘗試啓動發展方式的項目在eclipse命名空間錯誤與彈簧數據neo4j

我送花兒給人得到錯誤

org.springframework.beans.factory.parsing.BeanDefinitionParsingException:配置問題:找不到春天NamespaceHandler的XML架構命名空間[http://www.springframework.org/schema/data/neo4j]

<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:neo4j="http://www.springframework.org/schema/data/neo4j" 
    xsi:schemaLocation=" 
     http://www.springframework.org/schema/beans 
     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
     http://www.springframework.org/schema/context 
     http://www.springframework.org/schema/context/spring-context-3.0.xsd 
     http://www.springframework.org/schema/data/neo4j 
     http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.0.xsd"> 

這是應用程序的context.xml這給錯誤的部分。

在pom.xml中我使用

<dependency> 
     <groupId>org.springframework.data</groupId> 
     <artifactId>spring-data-neo4j</artifactId> 
     <version>2.1.0.BUILD-SNAPSHOT</version> 
    </dependency> 

但我還與2.0.0.Release版本的問題。

我在這裏發現了同樣的錯誤http://neo4j.org/nabble/#nabble-td3428668 但沒有提供答案或者是否有修復。

有人知道問題出在哪裏嗎?

+0

命名空間查找文件位於META-INF/spring.handlers的jar文件中。這可能是日食有一些問題拉動他們?也許也是一個m2e的問題? – 2012-03-30 09:55:06

+0

我試圖調試命名空間處理程序加載。加載的唯一彈簧處理程序是直接在彈簧核心等中的彈簧處理程序,但不是彈簧數據彈簧處理程序。但是現在我改變了很多以獲得mvn gwt:run的工作,並且即使直接在eclipse中啓動,錯誤也不會再出現。但我不知道哪一種改變會導致解決方案。 – Logarith 2012-04-04 11:25:06

回答

0

你的設置是什麼?我猜有一個類加載器的問題,因爲neo4j命名空間XML位於另一個捆綁包中,並且不能被請求的捆綁類加載器訪問。你可以把所有的SDN jar放到一個大超級塊中來解決這個問題_