title: JobOperator could not be instantiated
body: <p>When I try to run this code to execute a batchjob:</p>
  
  <pre><code>JobOperator jo = BatchRuntime.getJobOperator();
  Properties props = new Properties();
  long jobId = jo.start("tweetimport", props);
  </code></pre>
  
  <p>I keep getting an error. When I tried to run it from the servlet I got this error:</p>
  
  <pre><code>Severe:   Could not instantiate service: com.ibm.jbatch.container.impl.BatchKernelImpl due to exception:java.lang.reflect.InvocationTargetException
  Warning:   StandardWrapperValve[KwetterServlet]: Servlet.service() for servlet KwetterServlet threw exception
  java.util.ServiceConfigurationError: javax.batch.operations.JobOperator: Provider com.ibm.jbatch.container.api.impl.JobOperatorImpl could not be instantiated
  </code></pre>
  
  <p>When I run it from a normal java class I get this errror:</p>
  
  <pre><code>mrt 21, 2016 10:19:08 AM javax.batch.runtime.BatchRuntime getJobOperator
  WARNING: The ServiceLoader was unable to find an implementation for JobOperator. Check classpath for META-INF/services/javax.batch.operations.JobOperator file.
  Exception in thread "main" java.lang.NullPointerException
  </code></pre>
  
  <p>I have this tweetimport.xml file in Other Sources > src/main/resources > META-INF.batch-jobs</p>
  
  <pre><code>&lt;job id="tweetimport" xmlns="http://xmlns.jcp.org/xml/ns/javaee" version="1.0"&gt;
  &lt;properties&gt;
      &lt;property name="input_file" value="/KwetterBackend/kwetter-input.json"/&gt;
  &lt;/properties&gt;
  &lt;step id="process"&gt;
      &lt;chunk item-count="100"&gt;
          &lt;reader ref="TweetReader"&gt;&lt;/reader&gt;
          &lt;processor ref="TweetProcessor"&gt;&lt;/processor&gt;
          &lt;writer ref="TweetWriter"&gt;&lt;/writer&gt;
      &lt;/chunk&gt;
  &lt;/step&gt;
  </code></pre>
  
  <p></p>
  
  <p>I can't figure out why I'm getting this error.
  <a href="https://github.com/Romydekoning/KwetterBackend" rel="nofollow">The link to my project</a></p>