I have an application that uses Quartz to schedule jobs. This application does not use Spring Batch. It works fine.
Now, I am considering using Spring Batch in one of the jobs that it calls. Without touching anything in the working code, I just added the Spring Batch jar in the pom.xml.
I tried deploying this and I got the following error:Code:<dependency> <groupId>org.springframework.batch</groupId> <artifactId>org.springframework.batch.core</artifactId> <version>2.0.0.RELEASE</version> </dependency>
This bean with the error is a PropertyPlaceholderConfigurer.Code:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler-core-properties' defined in class path resource [spring/scheduler-context.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Method must not be null
What is the Spring Batch jar doing that just by adding it in the library the PropertyPlaceholderConfigurer won't work? Anyone here who has encountered the same problem?Code:<bean id="scheduler-core-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" lazy-init="false"> <property name="location" value="classpath:${properties.path}/mail.properties"/> <property name="placeholderPrefix" value="$scheduler-core{"/> <property name="placeholderSuffix" value="}"/> </bean>
Do I have to change the PropertyPlaceholderConfigurer settings? What if I can't change this because it is part of a general framework?
Thanks.


Reply With Quote
