Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. YYYY-MM-DD 13:49:33,413 ERROR CommandLineJobRunner - Job Terminated in error: Error creating bean with name 'BBBB01Configuration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.batch.core.repository.JobRepository com.batch.XXXXXXX.BBBB01Configuration.jobRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobRepository': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '${batch.jdbc.driver}'
  2. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BBBB01Configuration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.batch.core.repository.JobRepository com.batch.XXXXXX.BBBB01Configuration.jobRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobRepository': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '${batch.jdbc.driver}'
  3. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
  4. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  5. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
  6.  
  7. # Placeholders batch.*
  8. # for HSQLDB:
  9. batch.jdbc.driver=org.hsqldb.jdbcDriver
  10. batch.jdbc.url=jdbc:hsqldb:mem:testdb;sql.enforce_strict_size=true
  11. # use this one for a separate server process so you can inspect the results
  12. # (or add it to system properties with -D to override at run time).
  13. # batch.jdbc.url=jdbc:hsqldb:hsql://localhost:9005/samples
  14. batch.jdbc.user=sa
  15. batch.jdbc.password=
  16. batch.schema=
  17. batch.schema.script=classpath:/org/springframework/batch/core/schema-hsqldb.sql
  18.  
  19. <context:property-placeholder order="1" location="classpath:batch.properties" />
  20. <context:property-placeholder order="2" location="classpath:log4j.properties" />
  21. <context:annotation-config/>
  22.  
  23. <context:component-scan base-package="com.batch.XXXXXX" />
  24. <jdbc:initialize-database data-source="dataSource">
  25. <jdbc:script location="${batch.schema.script}" />
  26. </jdbc:initialize-database>
  27.  
  28. <batch:job-repository id="jobRepository" />
  29.  
  30. <import resource="classpath:/META-INF/spring/module-context.xml" />
  31.  
  32. Manifest-Version: 1.0
  33. Package: com.batch.XXXXXX
  34. Build-Number: 1
  35. Archiver-Version: Plexus Archiver
  36. Built-By: xxxxxxxxx
  37. Class-Path: ./
  38. Created-By: Apache Maven 3.3.9
  39. Build-Jdk: 1.8.0_102
  40. Main-Class: org.springframework.batch.core.launch.support.CommandLineJ
  41. obRunner
  42.  
  43. <properties>
  44. <maven.test.failure.ignore>true</maven.test.failure.ignore>
  45. <spring.framework.version>3.0.6.RELEASE</spring.framework.version>
  46. <spring.batch.version>2.1.7.RELEASE</spring.batch.version>
  47. <configFileBatch>batch.properties</configFileBatch>
  48. <configFilelog4j>log4j.properties</configFilelog4j>
  49. </properties>
  50.  
  51. <build>
  52. <plugins>
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-compiler-plugin</artifactId>
  56. <configuration>
  57. <source>1.5</source>
  58. <target>1.5</target>
  59. </configuration>
  60. </plugin>
  61.  
  62.  
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-jar-plugin</artifactId>
  66. <configuration>
  67. <archive>
  68. <index>false</index>
  69. <manifest>
  70. <packageName>com.batch.xxxxxx</packageName>
  71. <mainClass>org.springframework.batch.core.launch.support.CommandLineJobRunner</mainClass>
  72. <addClasspath>true</addClasspath>
  73. <classpathPrefix>lib/</classpathPrefix>
  74. </manifest>
  75. </archive>
  76. </configuration>
  77. </plugin>
  78.  
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-shade-plugin</artifactId>
  82. <configuration>
  83. <finalName>BBBB01</finalName>
  84. <transformers>
  85. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  86. <manifestEntries>
  87. <Main-Class>org.springframework.batch.core.launch.support.CommandLineJobRunner</Main-Class>
  88. <Class-Path>./</Class-Path>
  89. <Build-Number>1</Build-Number>
  90. </manifestEntries>
  91. </transformer>
  92. <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
  93. <resource>.properties</resource>
  94. </transformer>
  95. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  96. <resource>META-INF/spring.handlers</resource>
  97. </transformer>
  98. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  99. <resource>META-INF/spring.schemas</resource>
  100. </transformer>
  101. </transformers>
  102. <archive>
  103. <manifestEntries>
  104. <Class-Path>./</Class-Path>
  105. </manifestEntries>
  106. </archive>
  107. </configuration>
  108. <version>1.7</version>
  109. <executions>
  110. <execution>
  111. <phase>package</phase>
  112. <goals>
  113. <goal>shade</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118.  
  119. </plugins>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement