Search This Blog

Saturday, 1 February 2014

Eclipse Maven Standalone
















3 comments:

  1. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'messageController': Unsatisfied dependency expressed through field 'chatMessageService': Error creating bean with name 'chatMessageServiceImpl': Unsatisfied dependency expressed through field 'ChatMessageDao': Error creating bean with name 'chatMessageDaoImpl': Unsatisfied dependency expressed through field 'dataSource': No qualifying bean of type [org.apache.tomcat.jdbc.pool.DataSource] found for dependency [org.apache.tomcat.jdbc.pool.DataSource]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.apache.tomcat.jdbc.pool.DataSource] found for dependency [org.apache.tomcat.jdbc.pool.DataSource]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'chatMessageDaoImpl': Unsatisfied dependency expressed through field 'dataSource': No qualifying bean of type [org.apache.tomcat.jdbc.pool.DataSource] found for dependency [org.apache.tomcat.jdbc.pool.DataSource]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.apache.tomcat.jdbc.pool.DataSource] found for dependency [org.apache.tomcat.jdbc.pool.DataSource]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'chatMessageServiceImpl': Unsatisfied dependency expressed through field 'ChatMessageDao': Error creating bean with name 'chatMessageDaoImpl': Unsatisfied dependency expressed through field 'dataSource': No qualifying bean of type [org.apache.tomcat.jdbc.pool.DataSource] found for dependency [org.apache.tomcat.jdbc.pool.DataSource]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type

    ReplyDelete
  2. i got this error but cannot fix , please help!

    ReplyDelete
  3. you have defined the data source which u are trying to auto wired in chatMessageDaoImpl then this chatMessageDaoImpl u are trying to autowired in the chatMessageServiceImpl which u are trying to autowired in the messageController
    what i understand that u have to define the id for the datasource from tomcat which is this one org.apache.tomcat.jdbc.pool.DataSource so try to give id while defining the datasource and use qualifier while auto wiring this data source in dao or any where

    i hope this will help u to resolve issue

    ReplyDelete