title: Unable to get JIBX IBindingFactory based on binding file
body: <p>I use Eclipse with Maven (m2eclipse plugin) and JIBX to (un)marshall XML. </p>
  
  <p>It works if I use the factory like this: </p>
  
  <p><code>IBindingFactory bindingFactory = BindingDirectory.getFactory(mappedClass);</code></p>
  
  <p>However I want to create a factory based on the binding file, because this is done by the automatically generated service stub. So I run the following test in TestNG:</p>
  
  <pre><code>    @Test
  public void testBindingFactory() {
      try
      {
          IBindingFactory factory = BindingDirectory.getFactory("binding", "");
      } catch (JiBXException e)
      {
          e.printStackTrace();
          fail(e.getMessage());
      }
  }
  </code></pre>
  
  <p>and it fails with the following error message:</p>
  
  <pre><code>    Unable to access binding 'binding'
      Make sure classes generated by the binding compiler are available at runtime
      java.lang.ClassNotFoundException: .JiBX_bindingFactory
  </code></pre>
  
  <p>The name (filename is binding.xml) is correct, the empty "" means no package, which is also correct, but could be a problem I guess?</p>
  
  <p>The factory is generated under <code>target/classes/JiBX_bindingFactory.class</code> in my project folder, so it should be found! (Remember everything works if I specify a concrete toplevel binded class)</p>
  
  <p>Any help would be appreciated!</p>
  
  <p>The build section in my pom.xml file:</p>
  
  <pre><code>    &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.jibx&lt;/groupId&gt;
              &lt;artifactId&gt;jibx-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.5&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;schemaBindingDirectory&gt;src/main/config&lt;/schemaBindingDirectory&gt;
                  &lt;includeSchemaBindings&gt;
                      &lt;includeSchemaBinding&gt;binding.xml&lt;/includeSchemaBinding&gt;
                  &lt;/includeSchemaBindings&gt;
                  &lt;verbose&gt;true&lt;/verbose&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;!-- Do we require other goals? http://jibx.sourceforge.net/maven-jibx-plugin/ --&gt;
                          &lt;goal&gt;bind&lt;/goal&gt;
                          &lt;!-- goal&gt;test-bind&lt;/goal--&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>