登録ページでSpring検証を適用しましたが、次のエラーがAppEngineサーバーのサーバーログに表示されます。
javax.servlet.UnavailableException:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 22 in XML document from ServletContext resource
[/WEB-INF/spring/appServlet/servlet-context.xml] is invalid;
nested exception is org.xml.sax.SAXParseException;
lineNumber: 22; columnNumber: 30;
cvc-complex-type.2.4.c: The matching wildcard is strict,
but no declaration can be found for element 'property'.
私のコードを以下に示します:
<?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-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd >
<beans:bean name="/register" class="com.my.registration.NewUserRegistration">
<property name="validator">
<bean class="com.my.validation.UserValidator" />
</property>
<beans:property name="formView" value="newuser"></beans:property>
<beans:property name="successView" value="home"></beans:property>
</beans:bean>
<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>
</beans:beans>