title: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMap'
body: <p>this is code of applicationContext.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
      "http://www.springframework.org/dtd/spring-beans.dtd"&gt;
  &lt;beans&gt;
      &lt;bean id="dataSource"
         class="org.apache.commons.dbcp.BasicDataSource"
          destroy-method="close"&gt;
          &lt;property name="driverClassName"
                    value="com.mysql.jdbc.Driver" /&gt;        
      &lt;property name="url"
                    value="jdbc:mysql://localhost:3306/testdb" /&gt;
          &lt;property name="username" value="root" /&gt;
          &lt;property name="password" value="" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="sqlMap"
            class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"&gt;
          &lt;property name="configLocation"&gt;
              &lt;value&gt;classpath:SqlMapConfig.xml&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="dataSource" ref="dataSource" /&gt;
      &lt;/bean&gt;    
  
      &lt;bean id="tradingService"
          class="com.developersbook.ibatis.service.TradeServiceImpl"&gt;
          &lt;property name="sqlMapClient" ref="sqlMap" /&gt;
      &lt;/bean&gt;
   &lt;/beans&gt;
  </code></pre>
  
  <p>these are the error logs</p>
  
  <pre><code>INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3f5735fd: defining beans [dataSource,sqlMap,tradingService]; root of factory hierarchy
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMap' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [src/SqlMapConfig.xml] cannot be opened because it does not exist
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:589)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)
      at com.developersbook.ibatis.client.IBatisClient.main(IBatisClient.java:16)
  Caused by: java.io.FileNotFoundException: class path resource [src/SqlMapConfig.xml] cannot be opened because it does not exist
      at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)
      at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:338)
      at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:293)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1545)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1483)
      ... 12 more
  </code></pre>