Hello guys,

I want to start a project with Spring Data + Neo4J.
When app is starting, I have this problem :

Configuration problem: Unable to locate Spring NamespaceHandler for XML 
schema namespace 
[http://www.springframework.org/schema/data/neo4j]|Offending resource: 
ServletContext resource [/WEB-INF/spring-core-config.xml]|

Please, could you tell me how does it works ? 
Where should be the spring-neo4j.xsd file ?
I don't find it in any JAR retrieved by dependencies.

THANKS !

My XML file :
<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:mvc="http://www.springframework.org/schema/mvc";
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.xsd
        http://www.springframework.org/schema/context 
        http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/data/neo4j
http://www.springframework.org/schema/data/neo4j/spring-neo4j.xsd";>
 
<context:component-scan base-package="io.shuriken.skills.service" />
<context:annotation-config />

<neo4j:repositories base-package="io.shuriken.skills.dao"/> 

</beans>

Here is my build.gradle :
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'eclipse-wtp'
apply plugin: 'jetty'
apply plugin: 'spring-boot'

def server_path = "E:/jetty-distribution-9.3.8"
def server_lib_path = server_path + "/lib"

// JDK 8
sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenLocal()
    mavenCentral()
maven { url "http://maven.springframework.org/milestone"; }
jcenter()
    maven { url "http://repo.spring.io/libs-snapshot"; }
}

configurations {
    provided
}

sourceSets {
    main { compileClasspath += configurations.provided }
}

buildscript {
repositories {
mavenLocal()
mavenCentral()
        maven { url "http://repo.spring.io/release"; }
maven { url "http://repo.spring.io/milestone"; }
maven { url "http://repo.spring.io/snapshot"; }
    }
    dependencies {
        
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.3.RELEASE")
    }
}

bootRun {
  systemProperties = System.properties
}

dependencies {
compile 'ch.qos.logback:logback-classic:1.1.3'
compile 'org.springframework:spring-core:4.1.1.RELEASE'
compile 'org.springframework:spring-context:4.1.1.RELEASE'
compile 'org.springframework:spring-aop:4.1.1.RELEASE'
compile 'org.springframework:spring-aspects:4.1.1.RELEASE'
compile 'org.springframework:spring-tx:4.1.1.RELEASE'
compile 'org.springframework:spring-webmvc:4.1.6.RELEASE'
compile 'javax.servlet:jstl:1.2'
compile 'org.neo4j:neo4j-ogm:1.1.5'
//compile 'org.neo4j:neo4j-jdbc:2.3.2'
compile 'org.neo4j:neo4j-ogm-http-driver:2.0.1'
// compile 'org.springframework.boot:spring-boot-starter-jdbc:1.3.3.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-web:1.3.3.RELEASE'
compile 'org.springframework.data:spring-data-neo4j:4.1.1.RELEASE'
// compile 
'org.springframework.boot:spring-boot-starter-jetty:1.3.3.RELEASE'
// providedRuntime 
'org.springframework.boot:spring-boot-starter-jetty:1.3.3.RELEASE'
// provided 'javax.servlet:servlet-api:3.1'
    compile files( server_lib_path + '/servlet-api-3.1.jar')
// testCompile 
'org.springframework.boot:spring-boot-starter-test:4.1.1.RELEASE'
}

jettyRun{
contextPath = "skills"
httpPort = 8080
}

jettyRunWar{
contextPath = "skills"
httpPort = 8080
}

eclipse {
  wtp {
    component {
      contextPath = 'skills'
    }
  }
  classpath {
downloadSources = true
  }
}

sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
test {
java {
srcDir 'src/test/java'
}
resources {
srcDir 'src/test/resources'
}
}
}


-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to