title: xml schema for Springbatch3.0.1?
body: <p>i am trying to accomplish spring batch in spring 3.0.1 and  sufficient jars  have been included in the class path.when  i am trying to run the project with  <strong>command line job runner</strong> i am getting a error that shows  because  of miss match xml schema  for spring3.0.1. i have  3 differnt xml files as below </p>
  
  <p><strong><em>ApplicationContext.xml</em></strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns:context="http://www.springframework.org/schema/context"
      xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
      xsi:schemalocation="  
      http://www.springframework.org/schema/beans  
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd  
      http://www.springframework.org/schema/context  
      http://www.springframework.org/schema/context/spring-context-3.0.xsd  
      http://www.springframework.org/schema/mvc  
      http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"&gt;
      &lt;import resource="JobRepository.xml" /&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong><em>jobConfiguration.xml</em></strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:batch="http://www.springframework.org/schema/batch"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemalocation="  
      http://www.springframework.org/schema/beans  
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd  
      http://www.springframework.org/schema/context  
      http://www.springframework.org/schema/context/spring-context-3.0.xsd  
      http://www.springframework.org/schema/mvc  
      http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"&gt;
      &lt;import resource="ApplicationContext.xml" /&gt;
      &lt;bean abstract="true"
          class="org.springframework.batch.core.step.tasklet.TaskletStep" id="taskletStep"&gt;
          &lt;property name="jobRepository" ref="jobRepository" /&gt;
          &lt;property name="transactionManager" ref="transactionManager" /&gt;
      &lt;/bean&gt;
      &lt;bean class="com.mypackage.HelloWorldTasklet" id="helloTasklet"&gt;
          &lt;property name="message" value="Hello World!" /&gt;
      &lt;/bean&gt;
      &lt;bean class="com.mypackage.HelloWorldTasklet" id="createdByTasklet"&gt;
          &lt;property name="message" value="Created By Harish On Java" /&gt;
      &lt;/bean&gt;
      &lt;bean class="org.springframework.batch.core.job.SimpleJob" id="mySimpleJob"&gt;
          &lt;property name="name" value="mySimpleJob" /&gt;
          &lt;property name="steps"&gt;
              &lt;list&gt;
                  &lt;bean parent="taskletStep"&gt;
                      &lt;property name="tasklet" ref="helloTasklet" /&gt;
                  &lt;/bean&gt;
                  &lt;bean parent="taskletStep"&gt;
                      &lt;property name="tasklet" ref="createdByTasklet" /&gt;
                  &lt;/bean&gt;
              &lt;/list&gt;
          &lt;/property&gt;
          &lt;property name="jobRepository" ref="jobRepository" /&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong><em>JobRepository.xml</em></strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns:batch="http://www.springframework.org/schema/batch"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
      xsi:schemalocation="  
      http://www.springframework.org/schema/beans  
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd  
      http://www.springframework.org/schema/context  
      http://www.springframework.org/schema/context/spring-context-3.0.xsd  
      http://www.springframework.org/schema/mvc  
      http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"&gt;
      &lt;bean
          class="org.springframework.batch.core.repository.support.SimpleJobRepository"
          id="jobRepository"&gt;
          &lt;constructor-arg&gt;
              &lt;bean
                  class="org.springframework.batch.core.repository.dao.MapJobInstanceDao" /&gt;
          &lt;/constructor-arg&gt;
          &lt;constructor-arg&gt;
              &lt;bean
                  class="org.springframework.batch.core.repository.dao.MapJobExecutionDao" /&gt;
          &lt;/constructor-arg&gt;
          &lt;constructor-arg&gt;
              &lt;bean
                  class="org.springframework.batch.core.repository.dao.MapStepExecutionDao" /&gt;
          &lt;/constructor-arg&gt;
          &lt;constructor-arg&gt;
              &lt;bean
                  class="org.springframework.batch.core.repository.dao.MapExecutionContextDao" /&gt;
          &lt;/constructor-arg&gt;
      &lt;/bean&gt;
      &lt;bean id="transactionManager"
          class="org.springframework.batch.support.transaction.ResourcelessTransactionManager" /&gt;
      &lt;bean class="org.springframework.batch.core.launch.support.SimpleJobLauncher"
          id="jobLauncher"&gt;
          &lt;property name="jobRepository" ref="jobRepository" /&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong><em>Java Code:</em></strong></p>
  
  <pre><code>public class HelloWorldTasklet implements Tasklet {
      private String message;
  
      public void setMessage(String message) {
          this.message = message;
      }
  
      @Override
      public RepeatStatus execute(StepContribution contribution,
              ChunkContext context) throws Exception {
          // TODO Auto-generated method stub
          System.out.println(message);
          return RepeatStatus.FINISHED;
      }
  }
  </code></pre>
  
  <p>my lib  contained following jars</p>
  
  <pre><code>com.springsource.org.aopalliance-1.0.0.jar
  com.springsource.org.apache.commons.lang-sources-2.1.0.jar
  com.springsource.org.apache.commons.logging-1.1.1.jar
  com.springsource.org.apache.log4j-1.2.15.jar
  commons-beanutils-1.8.3.jar
  commons-codec-1.3.jar
  commons-collections-3.2.jar 
  commons-digester-1.8.jar
  commons-lang3-3.1.jar
  commons-logging-1.1.1.jar
  org.springframework.aop-3.0.1.RELEASE-A.jar
  org.springframework.asm-3.0.1.RELEASE-A.jar
  org.springframework.aspects-3.0.1.RELEASE-A.jar
  org.springframework.beans-3.0.1.RELEASE-A.jar
  org.springframework.context-3.0.1.RELEASE-A.jar
  org.springframework.context.support-3.0.1.RELEASE-A.jar
  org.springframework.core-3.0.1.RELEASE-A.jar
  org.springframework.expression-3.0.1.RELEASE-A.jar
  org.springframework.web-3.0.1.RELEASE-A.jar
  org.springframework.web.servlet-3.0.1.RELEASE-A.jar
  spring-batch-core-2.2.0.RELEASE.jar
  spring-batch-infrastructure-2.2.0.RELEASE.jar
  </code></pre>
  
  <p>any response  is appreciated greatly in advance.</p>