title: mybatis config problem
body: <p>I'm new to MyBatis.</p>
  
  <p>Ive been trying to configure mybatis in a webservice I'm writing but with no luck yet.</p>
  
  <p>What I've done already is,</p>
  
  <ol>
  <li>UserInfoMapper interface</li>
  <li>UserInfoMapper.xml with mapper namespace with my UserInfoMapper interface and a select</li>
  <li>mybatis-config.xml with typeAlias to use as result type in UserInfoMapper.xml</li>
  <li>dataSource bean for oracle (I get connected) in datasourceContext.xml</li>
  <li>org.mybatis.spring.mapper.MapperScannerConfigurer bean with basePackage pointing to my UserInfoMapper interface in datasourceContext.xml</li>
  <li>sqlSessionFactory bean ie. org.mybatis.spring.SqlSessionFactoryBean with property for my dataSource and configLocation</li>
  <li>userInfoMapper bean ie. org.mybatis.spring.mapper.MapperFactoryBean with property mapperInterface (value="is.simnn.act.web.ngs.persistence.UserInfoMapper") and sqlSessionFactory property (ref="sqlSessionFactory") in datasourceContext.xml</li>
  <li>then in my applicationContext.xml I have following,</li>
  </ol>
  
  <blockquote>
    <p></p>
  </blockquote>
  
  <pre><code>&lt;import resource="classpath:META-INF/wsContext.xml" /&gt;
  &lt;import resource="classpath:META-INF/db/datasourceContext.xml" /&gt;
  </code></pre>
  
  <p>In my test case I keep getting NullPointerException when I call jaxws:endpoint and it leads me to my UserInfoMapper interface.</p>
  
  <p>Any idea or hints to what might be wrong with my config?</p>
  
  <p>Thanks,
  Gunnlaugur</p>