Announcement Announcement Module
Collapse
No announcement yet.
Problem deploying Spring Batch Admin within my project because of Spring integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem deploying Spring Batch Admin within my project because of Spring integration

    I setup Spring Batch Admin within my project. When I try to launch the webapp on the Tomcat 6 server, I get an error from FileReadingMessageSource.

    After deployment, I see that a directory named 'target/config' is created within the Catalina base path. After running for some hours, this error is generated:

    Code:
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.file.config.FileReadingMessageSourceFactoryBean#0': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Source directory [target/config] does not exist.
            at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
            at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1443)
            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:249)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
            ... 35 more
    Caused by: java.lang.IllegalArgumentException: Source directory [target/config] does not exist.
            at org.springframework.util.Assert.isTrue(Assert.java:65)
            at org.springframework.integration.file.FileReadingMessageSource.onInit(FileReadingMessageSource.java:233)
            at org.springframework.integration.context.IntegrationObjectSupport.afterPropertiesSet(IntegrationObjectSupport.java:98)
            at org.springframework.integration.file.config.FileReadingMessageSourceFactoryBean.initSource(FileReadingMessageSourceFactoryBean.java:153)
            at org.springframework.integration.file.config.FileReadingMessageSourceFactoryBean.getObject(FileReadingMessageSourceFactoryBean.java:99)
            at org.springframework.integration.file.config.FileReadingMessageSourceFactoryBean.getObject(FileReadingMessageSourceFactoryBean.java:37)
            at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
            ... 40 more
    Why does Spring Batch Admin setup a FileReadingMessageSource?
    How can I disable it or at least configure the source path to an existing directory like /tmp/?

  • #2
    Originally posted by timomeinen View Post
    How can I disable it or at least configure the source path to an existing directory like /tmp/?
    In the meantime, at least, I could figure out how to configure the path, that will be created by Spring Batch Admin:

    Code:
    batch.job.configuration.file.dir=/tmp/batch

    Comment

    Working...
    X