Hallo,
I think namespace is ok, but still can't resolve placeholder.
here is my config
Code:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:batch="http://www.springframework.org/schema/batch"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:annotation-config />
<context:property-placeholder location="classpath*:batch-myproperties.properties"/>
....
and the error
Code:
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'processMsgFromInDirectory' defined in file [C:\local\develop\workspace-sts-2.5.1.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\simpleBatchWithAdmin\WEB-INF\classes\META-INF\spring\batch\jobs\egateway.xml]: Could not resolve placeholder 'file.storage.indir'
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:287)