![](/img/trans.png)
[英]Integration (maven) of Spring Data Neo4j in Dynamic Web Project using Jersey and Tomcat
[英]Namespace error with spring data neo4j
我目前正在嘗試使用GWT,Maven,Neo4j和Spring Data建立一個測試項目。 當我嘗試在Eclipse中以開發模式啟動項目時遇到問題
我總是得到錯誤
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:配置問題:無法找到XML模式命名空間的Spring NamespaceHandler [ 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">
這是application-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找到了相同的錯誤,但沒有提供答案或是否有解決方法。
有人知道問題出在哪里嗎?
你的設置是什么? 我猜這是一個類加載器問題,因為neo4j名稱空間XML位於另一個捆綁包中,請求捆綁包的類加載器無法訪問。 您能否將所有SDN罐子放入一個大的超級捆綁包中以解決此問題?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.