java - Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans.xsd' -


i have downloaded program of spring , trying run on sts eclipse version: 3.6.4.releasep , runs on platform: eclipse luna sr1 (4.4.2).

i getting following error:

schema_reference.4: failed read schema document 'http://www.springframework.org/schema/      beans/spring-beans.xsd', because 1) not find document; 2) document not read; 3)       root element of document not <xsd:schema> 

here code.

<?xml version="1.0" encoding="utf-8"?> <beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xsi:schemalocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd     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">  <!-- dispatcherservlet context: defines servlet's request-processing infrastructure -->  <!-- enables spring mvc @controller programming model --> <annotation-driven />  <!-- handles http requests /resources/** efficiently serving static resources in ${webapproot}/resources directory --> <resources mapping="/resources/**" location="/resources/" />  <!-- resolves views selected rendering @controllers .jsp resources in /web-inf/views directory --> <beans:bean class="org.springframework.web.servlet.view.internalresourceviewresolver">     <beans:property name="prefix" value="/web-inf/views/" />     <beans:property name="suffix" value=".jsp" /> </beans:bean>  <context:component-scan base-package="com.prophesee.datafetcher" /> 

i have added dependencies in maven having 3.1.1. version of spring framework. want know wrong.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -