Announcement Announcement Module
Collapse
No announcement yet.
Problem configuring Beanvalidation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem configuring Beanvalidation

    Hallo,

    I tried to user JSR 303 Beanvalidation. I followed the reference documentation so I first configured a validator
    <bean id="validator" class="org.springframework.validation.beanvalidati on.LocalValidatorFactoryBean" />
    Added the neceassary dependencies to the Classpath and than I tried to add the Validator to the flowbuilderservices (as described in the reference-documentation)
    <webflow:flow-builder-services id="flowBuilderServices"
    view-factory-creator="mvcViewFactoryCreator"
    conversion-service="conversionService"
    validator="validator"
    />
    Running this config leads to the following Exception:
    org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Failed to import bean definitions from relative location [webflow.xml]|Offending resource: ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 36 in XML document from ServletContext resource [/WEB-INF/webflow.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'validator' is not allowed to appear in element 'webflow:flow-builder-services'.
    What did I wrong?

    Best regards,

    Marc Gorzala

  • #2
    Hallo,

    I fixed the error myself:

    I used an too old xml-schema. When I switched from http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd" to http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd" it works.

    Sorry for the inconvenience I made.

    Regards,

    Marc Gorzala

    Comment

    Working...
    X