Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Error creating bean with name 'xxx':

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Team

I am working on webapp in which i am using spring,hibernate. When I made archieve of my application and deployed on the tomcat 7.0 server then the shows exception

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.beanNameUrlHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.gamegoeson.khel_user.validator.UserValidator] for bean with name 'UserValidator' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]; nested exception is java.lang.ClassNotFoundException: com.gamegoeson.khel_user.validator.UserValidator
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.gamegoeson.khel_user.validator.UserValidator] for bean with name 'UserValidator' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]; nested exception is java.lang.ClassNotFoundException: com.gamegoeson.khel_user.validator.UserValidator
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.gamegoeson.event.validator.EventValidator] for bean with name 'EventValidator' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]; nested exception is java.lang.ClassNotFoundException: com.gamegoeson.event.validator.EventValidator
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.gamegoeson.event.validator.MatchValidator] for bean with name 'MatchValidator' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]; nested exception is java.lang.ClassNotFoundException: com.gamegoeson.event.validator.MatchValidator
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.gamegoeson.khel_user.validator.TeamValidator] for bean with name

The bean classes cannot be buiding properly so how should i configure the classpath in eclipse so that the java classes are compiled and their class file is generated
Please guide me for the same
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error is:

Cannot find class [com.gamegoeson.khel_user.validator.UserValidator]

Verify that this class exists in your WAR file.

Also, how are you building your WAR file, via Eclipse or some other means? Please be specific.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic