![](/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.