I start with Spring 3 (3.1.2) and the Google App Engine.
I followed the tutoria online, now I have my bean-implemented xml that has a problem on startup.
this is code
<?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" xsi:schemaLocation="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"> <context:component-scan base-package="my.example">
where the root package of the entire java file is "my.example". A subpackage is a βmodelβ and a βcontrollerβ with subpackages. Now.
when I run the application, I return this error:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from ServletContext resource [/WEB-INF/spring-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.
with lots of stacktrace.
Does anyone know how I can solve this? I checked the XSD and they seem to be correct.
source share