Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8474905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:45:04+00:00 2026-06-10T17:45:04+00:00

I applied spring validation in my registration page .but the follwing error are shown

  • 0

I applied spring validation in my registration page .but the follwing error are shown in my server log of my app engine server.

 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'.

My code is given below :

<?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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:45:06+00:00Added an answer on June 10, 2026 at 5:45 pm

    Default XML namespace of your document is http://www.springframework.org/schema/mvc, therefore you should use namespace prefix for all elements from other namespaces, including elements from http://www.springframework.org/schema/beans namespace:

    <beans:property name="validator">
        <beans:bean class="com.my.validation.UserValidator" />
    </beans:property>
    

    Alternatively, you can configure http://www.springframework.org/schema/beans as a default namespace:

    xmlns = "http://www.springframework.org/schema/beans"
    

    Obviously, in this case you’d need to use namespace prefix for elemetns from mvc namespace, if you have any.

    See also:

    • XML namespace
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I config spring and map it to *.htm, but it also applied to real
Question I have created a server-side property level validation attribute. But instead of applying
I configured my Spring web app with a servlet to serve images at the
I've applied changes in interface builder for my app which has labels in it.
I'm using spring and hibernate to display an extjs chart from database. But, when
I'm new to Kohana but come from a Spring/Java background. In Spring I'm used
I have created a custom validation attribute by subclassing ValidationAttribute. The attribute is applied
SUMMARY Question: Why doesn't the custom validation error message show when using a ViewModel.
Possible Duplicate: Setting ViewStateUserKey gives me a “Validation of viewstate MAC failed” error I
i have a applied dataanootation validation attribute to my class for the create view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.