title: Class org.apache.commons.dbcp.BasicDataSource not found
body: <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      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.xsd"
      xmlns:context="http://www.springframework.org/schema/context"&gt;
  
     &lt;context:annotation-config/&gt;
  
  
  &lt;context:component-scan base-package="org.dao.impl"/&gt;
  
  &lt;bean id="dataSource" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource"&gt;  
      &lt;property name="driverClassName" value="${db.driver}"/&gt;
      &lt;property name="url" value="${db.jdbcurl}; create=true"/&gt;
      &lt;property name="username" value="${db.username}"/&gt;
      &lt;property name="password" value="${db.password}"/&gt;
      &lt;property name="initialSize" value="3"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Below is the error I am getting. </p>
  
  <pre><code>Sep 11, 2014 12:03:45 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
  INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1d33a6b: startup date [Thu Sep 11 12:03:45 EDT 2014]; root of context hierarchy
  Sep 11, 2014 12:03:45 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  INFO: Loading XML bean definitions from class path resource [spring.xml]
  Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 7 in XML document from class path resource [spring.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 30; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
  </code></pre>
  
  <p>I am also getting "The fully qualified name of the bean's class, except if it serves only as a parent definition for child bean definitions." when I hover my mouse over class="org.apache.commons.dbcp.BasicDataSource" What does it mean?</p>
  
  <p>Could someone help me resolve the issue. I am trying to work on a simple spring hibernate and mysql. Thanks.</p>