|
From: Keith D. <kd...@cs...> - 2004-04-27 14:30:38
|
ValidatorFactory is now a interface - DefaultValidatorFactory is the
implementation. Daniel made it an interface to be a bit more flexible =
for
those who had custom validation-xml loading requirements.
Keith
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...] On Behalf =
Of
Matt Raible
Sent: Tuesday, April 27, 2004 2:51 AM
To: spr...@li...
Subject: [Springframework-developer] [Commons Validator] Error on =
Startup
I grabbed a fresh checkout from CVS tonight, expecting that the commons
validator stuff still worked. Unfortunately, (from what I can tell) it =
does
not. Here's the error I get on startup:
ERROR - FrameworkServlet.initServletBean(207) | Context initialization
failed
org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'va lidatorFactory' defined in resource
[/WEB-INF/action-servlet.xml] of
ServletContext: Validation of b
ean definition with name failed; nested exception is
org.springframework.beans.factory.support.BeanD
efinitionValidationException: No public constructor in class [interface
org.springframework.validati on.commons.ValidatorFactory]
org.springframework.beans.factory.support.BeanDefinitionValidationExcept
ion: No public constructor i
n class [interface =
org.springframework.validation.commons.ValidatorFactory]
at
org.springframework.beans.factory.support.RootBeanDefinition.validate(Ro
otBeanDefinition.
java:334)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.reg
isterBeanDefiniti
on(DefaultListableBeanFactory.java:194)
at
org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.loa
dBeanDefinition(D
efaultXmlBeanDefinitionParser.java:214)
at
org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.reg
isterBeanDefiniti
ons(DefaultXmlBeanDefinitionParser.java:152)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBe
anDefinitions(Xml
BeanDefinitionReader.java:161)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe
finitions(XmlBean
DefinitionReader.java:127)
----------------------------------------
Here's my config:
<bean id=3D"validatorFactory"
class=3D"org.springframework.validation.commons.ValidatorFactory"=20
init-method=3D"init">
<property name=3D"resources">
<list>
=09
<value>WEB-INF/validator-rules.xml</value>
<value>WEB-INF/validation.xml</value>
</list>
</property>
</bean>
<bean id=3D"beanValidator"
class=3D"org.springframework.validation.commons.BeanValidator">
<property name=3D"validatorFactory"><ref
local=3D"validatorFactory"/></property>
</bean>
Any ideas?
Thanks,
Matt
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For =
a
limited time only, get FREE Ground shipping on all orders of $35 or =
more.
Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=3D12297
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|