Advertisement
Guest User

Untitled

a guest
Mar 17th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'directoryLoader': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.springframework.jdbc.core.JdbcTemplate com.millerhare.winfsapi.fsloader.DirectoryLoader.jdbcTemplate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$JdbcTemplateConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private javax.sql.DataSource org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$JdbcTemplateConfiguration.dataSource; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration$NonEmbeddedConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
  2.  
  3. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
  4. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
  5. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
  6. ...
  7.  
  8. @Component
  9. public class DirectoryLoader {
  10.  
  11.  
  12. @Autowired
  13. JdbcTemplate jdbcTemplate;
  14.  
  15. @Autowired
  16. DataSource ds;
  17.  
  18. spring.datasource.url=jdbc:oracle:thin:@xxxx
  19. spring.datasource.username=xxxx
  20. spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
  21.  
  22. @RunWith(SpringJUnit4ClassRunner.class)
  23. @SpringApplicationConfiguration(classes = WinFsapiApplication.class)
  24. @WebIntegrationTest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement