Announcement Announcement Module
Collapse
No announcement yet.
Error on spring-social-quickstart Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error on spring-social-quickstart

    Hi everyone,

    after executing the Spring-social-quickstart project, it returns the following error

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'socialConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private javax.sql.DataSource org.springframework.social.quickstart.config.Socia lConfig.dataSource; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/social/quickstart/config/MainConfig.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionSt oreException: Factory method [public javax.sql.DataSource org.springframework.social.quickstart.config.MainC onfig.dataSource()] threw exception; nested exception is java.lang.IllegalStateException: Driver for test database type [H2] is not available in the classpath


    The interesting part is that it is not able to find the driver for test database.

    Checking in the maven file, the dependency is correctly defined:
    <dependency>
    <groupId>com.h2database</groupId>
    <artifactId>h2</artifactId>
    <version>1.3.159</version>
    </dependency>

    Do you know how to solve this problem?

    Thanks

  • #2
    You may manually download driver for this URL
    http://mvnrepository.com/artifact/co...ase/h2/1.4.177

    Comment

    Working...
    X