BeanCreationException

529 views
Skip to first unread message

Ashton Thomas

unread,
Sep 28, 2010, 11:39:17 PM9/28/10
to Google Web Toolkit
This looks like a spring problem (GWT/roo generated scaffold -> from
the updated and maybe incomplete source code)

No errors in the project and I'm a little lost on this one. Any help
is greatly appreciated....

2010-09-28 23:33:46,508 [main] ERROR
org.springframework.web.servlet.DispatcherServlet - Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0':
Invocation of init method failed; nested exception is
javax.validation.ValidationException: Unable to find a default
provider
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:
1420)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
...more....

Caused by: javax.validation.ValidationException: Unable to find a
default provider
at javax.validation.Validation
$GenericBootstrapImpl.configure(Validation.java:264)
at
org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:
183)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
1477)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:
1417)
... 36 more

Ashton Thomas

unread,
Sep 29, 2010, 11:10:47 AM9/29/10
to Google Web Toolkit
I just deleted javax.validation dependency from my maven pom.xml file
and the BeanCreationError has gone away, this may not be the way to go
(I am not using Hibernate or any persistence stuff right now)

Farhaan Kazi

unread,
Feb 21, 2014, 2:43:14 AM2/21/14
to google-we...@googlegroups.com
Farhaan,

Hi,

After deleting validation-api.jar from classpath, Can you able to do validation using JSR 303 annotation

Thomas Broyer

unread,
Feb 21, 2014, 5:09:22 AM2/21/14
to google-we...@googlegroups.com


On Friday, February 21, 2014 8:43:14 AM UTC+1, Farhaan Kazi wrote:
Farhaan,

Hi,

After deleting validation-api.jar from classpath, Can you able to do validation using JSR 303 annotation

You need to have validation-api.jar in the classpath (of both javac and the GWT compiler at least; GWT is not concerned with server-side validation), but you need to pick the right version: GWT implements validation-api 1.0.0.GA, it's likely incompatible with 1.1.0.Final. Similarly, you must use Hibernate Validator 4.1.0.Final, and no other version. But as I said, this is only for client-side validation, you can use whatever you like on the server side though.
 
Reply all
Reply to author
Forward
0 new messages