spring - <mvc:resources> type not resolved -


i trying build mvc-showcase example available here link.

but getting below error:

cvc-complex-type.2.4.c: matching wildcard strict, no declaration can found element 'resources'.

source code of servlet-context.xml

<?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"    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">      <!-- dispatcherservlet context: defines servlet's request-processing infrastructure -->      <!-- enables spring mvc @controller programming model -->     <annotation-driven conversion-service="conversionservice" />      <!-- 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>      <!-- imports user-defined @controller beans process client requests -->     <beans:import resource="controllers.xml" />      <!-- needed because install custom converters support examples in org.springframewok.samples.mvc.convert package -->     <beans:bean id="conversionservice" class="org.springframework.samples.mvc.convert.customconversionservicefactorybean" />      <!-- needed because require fileupload in org.springframework.samples.mvc.fileupload package -->     <beans:bean id="multipartresolver" class="org.springframework.web.multipart.commons.commonsmultipartresolver" />    </beans:beans>  

note: using eclipse ide , using spring 3.0.4 version(because using same pom.xml given in project link)

unfortunately cannot seem going in eclipse 3.6. have got going in spring tool suite v2.5.0.m3 (http://www.springsource.com/products/springsource-google-download) - if check xml catalog literally dozens of entries may negate value of using vanilla eclipse on sts. if in process of learning spring , confused lack of getting started documentation may want try spring roo use spring mvc project going - can disabled afterwards if prefer.

check out mvc showcase video (http://s3.springsource.org/mvc/mvc-showcase-screencast.mov) shows loading mvc showcase sts. please note version appears fix eclipse errors (runtime fine everywhere) v2.5.0.m3 - make sure checkout showcase code new workspace sts version.

hope helps.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -