1

我目前正在尝试使用 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发现了同样的错误, 但没有提供答案或者是否有修复。

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

4

1 回答 1

0

你的设置是什么?我猜有一个类加载器问题,因为 neo4j 命名空间 XML 位于另一个包中,请求包类加载器无法访问。你能把所有的 SDN jar 放到一个大的超级包中来解决这个问题吗?

于 2012-03-30T09:24:35.577 回答