简体   繁体   English

Spring Data Neo4j的命名空间错误

[英]Namespace error with spring data neo4j

i´m currently trying to set up a test project with GWT, Maven, Neo4j and Spring Data. 我目前正在尝试使用GWT,Maven,Neo4j和Spring Data建立一个测试项目。 I ran into a problem when I try to start the project in development mode in eclipse 当我尝试在Eclipse中以开发模式启动项目时遇到问题

I alway get the error 我总是得到错误

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [ http://www.springframework.org/schema/data/neo4j] 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">

This is the part of the application-context.xml which gives the error. 这是application-context.xml中给出错误的部分。

In pom.xml I use 在pom.xml中,我使用

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

But I also had the problem with the 2.0.0.Release version. 但是我也有2.0.0.Release版本的问题。

I found the same error here http://neo4j.org/nabble/#nabble-td3428668 but no answer is provided or if there is a fix. 我在这里http://neo4j.org/nabble/#nabble-td3428668找到了相同的错误,但没有提供答案或是否有解决方法。

Does someone have an idea where the problem is? 有人知道问题出在哪里吗?

What is your setup? 你的设置是什么? I guess there is a classloader problem in that the neo4j namespace XML is sitting in another bundle and not accessible to the requesting bundles classloader. 我猜这是一个类加载器问题,因为neo4j名称空间XML位于另一个捆绑包中,请求捆绑包的类加载器无法访问。 Could you put all the SDN jars into one big superbundle to get around this_ 您能否将所有SDN罐子放入一个大的超级捆绑包中以解决此问题?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM