弹簧数据neo4j的命名空间错误

时间:2012-03-28 15:42:10

标签: eclipse spring gwt neo4j 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 但没有提供答案或是否有修复。

有人知道问题出在哪里吗?

1 个答案:

答案 0 :(得分:0)

你的设置是什么?我想有一个类加载器问题,因为neo4j名称空间XML位于另一个包中,并且不能被请求包类加载器访问。你能把所有的SDN罐子放到一个大的超级大片中来解决这个问题吗?