Spring 3.0 -- Unable to locate Spring NamespaceHandler for XML schema namespace context



Any ideas what could be the cause of this?



Unable to locate Spring NamespaceHandler for XML schema namespace [http://ift.tt/GArMu7]




SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate NamespaceHandler for namespace
[http://ift.tt/GArMu7]
Offending resource: ServletContext resource [/WEB-INF/HelloWorld-service.xml]


This is my HelloWorld-service.xml:



<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://ift.tt/GArMu6"
xmlns:xsi="http://ift.tt/ra1lAU"
xmlns:p="http://ift.tt/1jdM0fE"
xmlns:context="http://ift.tt/GArMu7"
xmlns:util="http://ift.tt/OGfeTW"
xsi:schemaLocation="
http://ift.tt/GArMu6
http://ift.tt/QEDs1e
http://ift.tt/GArMu7
http://ift.tt/QEDs1k
http://ift.tt/OGfeTW
http://ift.tt/1bFKsJT"
default-autowire="byName">

<context:component-scan base-package="com.test.service">
<context:include-filter type="annotation"
expression="org.springframework.stereotype.Service"/>
</context:component-scan>


In my pom.xml I have:



<properties>
<spring.version>3.0.5.RELEASE</spring.version>
</properties>
........
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>

No comments:

Post a Comment