-
Mar 30th, 2011, 10:28 PM
#1
Unable to locate Spring NamespaceHandler ...:schema/data/graph
Hi!
Im on a project using neo4j in osgi. Until now without using spring data graph neo4j.
To take advantages of spring data graph neo4j I tried tutorial http://static.springsource.org/sprin...eference/html/ with version .04M.
I stopped at the issue with the schema file http://www.springframework.org/schem...agraph-1.0.xsd.
O.k. thats fixed.
But:
If i use an .xml like:
-----------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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:datagraph="http://www.springframework.org/schema/data/graph"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schem...-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schem...ontext-3.0.xsd
http://www.springframework.org/schema/data/graph
http://www.springframework.org/schem...agraph-1.0.xsd
">
<context:annotation-config/>
<datagraph:config storeDirectory="var/prototyp2AlainnGDB" graphDatabaseService="graphDatabaseService"/>
</beans>
-------------------------------------------------------------------------------------------
The felix startup has an exception:
org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/data/graph]
Sorry, don't know much about spring Namespace Handlers and I am new to spring data graph.
I found that sometimes a missing dependency in the pom is the issue. But what dependency is missing? I found no answere
So whats my fault?
The pom.xml of the module is big, so i try to cut out the important lines:
---------------------------------------------------------------------------------------
<properties>
<aspectj.version>1.6.11.M2</aspectj.version>
<!-- if I use Version 1.6.11.RELEASE mvn fails on aspectjrt-tools -->
</properties>
<repositories>
<repository>
<id>spring-maven-milestone</id>
<name>Springframework Maven Repository</name>
<url>http://maven.springframework.org/milestone</url>
</repository>
</repositories>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>1.3.M05</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-lucene-index</artifactId>
<version>1.3.M05</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>1.0.0.M5</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<build> <plugins> <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.2</version>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<outxml>true</outxml>
<aspectLibraries>
<aspectLibrary>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</aspectLibrary>
<aspectLibrary>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
</aspectLibrary>
</aspectLibraries>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin> </plugins> </build>
---------------------------------------------------------------------------------------
-
Mar 31st, 2011, 10:55 AM
#2
Hi,
I'm not familiar with spring-data, but maybe this is a classnotfound error, because you've forgot to import the osgi packages that contain the namespace handler classes in your bundle?
(or the classes are not exported.. I don't know the setup...)
hth
regards
Eike
-
Mar 31st, 2011, 02:04 PM
#3
found the location of the problem:
the spring-data-graph neo4j JARs are'nt osgi ready.
I created an improvement issue for that:
https://jira.springsource.org/browse/DATAGRAPH-85
-
Apr 4th, 2011, 03:15 AM
#4
I re-added bundlor OSGI to the build. Please check out after todays RC1 release.
Cheers
Michael
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules