Hi, does this error still persist?
In general your setup looks correct. Could you create an JIRA issue for it if it is still not working? http://spring.neo4j.org/issues Thanks so much Michael Am 17.10.2011 um 18:16 schrieb noppanit: > I got this erro while trying to run mvn jetty:run on my Spring-data-graph > project. > > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Unable to locate Spring NamespaceHandler for XML > schema namespace > [http://www.springframework.org/schema/data/graph]|Offending resource: > ServletContext resource [/WEB-INF/servlet-context.xml] > > I found something about the version of spring-data-graph as well on the > Internet and I change to version > > <dependency> > <groupId>org.springframework.data</groupId> > <artifactId>spring-data-neo4j</artifactId> > <version>1.1.0.RELEASE</version> > </dependency> > > but I still got that error. > > > This is my pom.xml file > > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>com.thoughtworks.app</groupId> > <artifactId>Lunch-Selector</artifactId> > <packaging>jar</packaging> > <version>1.0-SNAPSHOT</version> > <name>Lunch-Selector</name> > <url>http://maven.apache.org</url> > > <properties> > > <org.springframework.version>3.0.6.RELEASE</org.springframework.version> > </properties> > > <repositories> > <repository> > <id>spring-maven-snapshot</id> > <snapshots> > <enabled>true</enabled> > </snapshots> > <name>Springframework Maven MILESTONE Repository</name> > <url>http://maven.springframework.org/milestone</url> > </repository> > </repositories> > > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.8</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>commons-logging</groupId> > <artifactId>commons-logging</artifactId> > <version>1.1.1</version> > </dependency> > <dependency> > <groupId>org.springframework.data</groupId> > <artifactId>spring-data-neo4j</artifactId> > <version>1.1.0.RELEASE</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-core</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-web</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-webmvc</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-beans</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-context</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-context-support</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-tx</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-jdbc</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-orm</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-oxm</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-webmvc-portlet</artifactId> > <version>${org.springframework.version}</version> > </dependency> > <dependency> > <groupId>org.springframework</groupId> > <artifactId>spring-test</artifactId> > <version>${org.springframework.version}</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.springframework.osgi</groupId> > <artifactId>spring-osgi-core</artifactId> > <version>1.2.1</version> > </dependency> > </dependencies> > > <build> > <plugins> > <plugin> > <groupId>org.mortbay.jetty</groupId> > <artifactId>jetty-maven-plugin</artifactId> > <configuration> > > <webAppSourceDirectory>${basedir}/src/main/webapp</webAppSourceDirectory> > <webAppConfig> > <contextPath>/</contextPath> > > <descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor> > </webAppConfig> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <target>1.6</target> > <source>1.6</source> > </configuration> > </plugin> > > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>aspectj-maven-plugin</artifactId> > <version>1.0</version> > <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> > <executions> > <execution> > <goals> > <goal>compile</goal> > <goal>test-compile</goal> > </goals> > </execution> > </executions> > <dependencies> > <dependency> > <groupId>org.aspectj</groupId> > <artifactId>aspectjrt</artifactId> > <version>1.6.2</version> > </dependency> > <dependency> > <groupId>org.aspectj</groupId> > <artifactId>aspectjtools</artifactId> > <version>1.6.2</version> > </dependency> > </dependencies> > </plugin> > </plugins> > </build> > </project> > > > > And this is my servlet-context.xml file > > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:mvc="http://www.springframework.org/schema/mvc" > xmlns:context="http://www.springframework.org/schema/context" > xmlns:osgi="http://www.springframework.org/schema/osgi" > xmlns:aop="http://www.springframework.org/schema/aop" > xmlns:datagraph="http://www.springframework.org/schema/data/graph" > xsi:schemaLocation=" > http://www.springframework.org/schema/mvc > http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd > 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/aop > http://www.springframework.org/schema/aop/spring-aop-2.0.xsd > http://www.springframework.org/schema/osgi > http://www.springframework.org/schema/osgi/spring-osgi.xsd > http://www.springframework.org/schema/data/graph > http://www.springframework.org/schema/data/graph/datagraph-1.0.xsd"> > > > > > > <context:component-scan base-package="com.mycomp.controller"/> > > <mvc:resources mapping="/resources/**" location="/resources/"/> > > > <mvc:annotation-driven/> > > <aop:aspectj-autoproxy/> > > <context:annotation-config/> > <datagraph:config storeDirectory="target/config-test"/> > <bean > class="org.springframework.web.servlet.view.InternalResourceViewResolver"> > <property name="prefix" value="/WEB-INF/views/"/> > <property name="suffix" value=".jsp"/> > </bean> > > </beans> > > I'm not sure how to solve the problem. Thanks a lot. > > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/Spring-data-graph-with-Jetty-error-tp3428668p3428668.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user