web services - Spring WS tutorial: no declarationcan be found for element 'context:component-scan' error -


i'm following step-by-step (basically copying , pasting stuff) spring-ws tutorial , hit wall when configuring spring-ws-servlet.xml below:

<?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:context="http://www.springframework.org/schema/context"    xmlns:sws="http://www.springframework.org/schema/web-services"    xsi:schemalocation="http://www.springframework.org/schema/beans     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd     http://www.springframework.org/schema/web-services     http://www.springframework.org/schema/web-services/web-services-2.0.xsd">      <context:component-scan base-package="com.mycompany.hr"/>      <sws:annotation-driven/>  </beans> 

adding following line:

<context:component-scan base-package="com.mycompany.hr"/> 

make sts starts yelling @ me that:

cvc-complex-type.2.4.c: matching wildcard strict, no declarationcan found element 'context:component-scan'. 

i don't know how proceed..

you need add: http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd

to schemalocation.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -