title: Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSourc[
body: <p>Ok log4j and servlet bugs have been fixed. Now I have the following problem:</p>
  
  <p><code>Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSourc</code></p>
  
  <p>my current <code>web.xml</code> looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
           http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;
  
  
   &lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
   &lt;/listener&gt;
  
   &lt;!--
    &lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.util.Log4jConfigListener&lt;/listener-class&gt;
   &lt;/listener&gt;
    --&gt;
  
   &lt;!-- Register and setup my servlet xml files here --&gt;
  
   &lt;servlet&gt;
    &lt;servlet-name&gt;appStore&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
     &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
     &lt;param-value&gt;&lt;/param-value&gt;
    &lt;/init-param&gt;
   &lt;/servlet&gt;
  
   &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;appStore&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.htm&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
  
   &lt;context-param&gt;
    &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;
     /WEB-INF/zang-file-service.xml
    &lt;/param-value&gt;
   &lt;/context-param&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>And the zang-file-service.xml is below:</p>
  
  <pre><code>&lt;beans xmlns="ht..p://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"
   xsi:schemaLocation="h..p://www.springframework.org/schema/beans
         h..p://www.springframework.org/schema/beans/spring-beans-2.5.xsd
         h..p://www.springframework.org/schema/jee
         h..p://www.springframework.org/schema/jee/spring-jee-2.0.xsd"&gt;
  
   &lt;!-- h..p://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd --&gt;
  
   &lt;!-- Config properties files --&gt;
  
   &lt;!-- Hibernate database stuff --&gt;
  
   &lt;bean id="propertyConfigurer"
    class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
    &lt;property name="locations"&gt;
     &lt;list&gt;
      &lt;value&gt;properties/jdbc.properties&lt;/value&gt;
     &lt;/list&gt;
    &lt;/property&gt;
   &lt;/bean&gt;
  
  
   &lt;bean id="dataSource1"
    class="org.springframework.jdbc.datasource.DriverManagerDataSourc"&gt;
    &lt;property name="driverClassName" value="${database.driver}" /&gt;
    &lt;property name="url" value="${database.url}" /&gt;
    &lt;property name="username" value="${database.user}" /&gt;
    &lt;property name="password" value="${database.password}" /&gt;
    &lt;property name="maxActive" value="${database.maxConnections}" /&gt;
   &lt;/bean&gt;
  
  
   &lt;!-- LocalSessionFactoryBean u need to put the hbm files in the WEB-INF/classes 
    root director --&gt;
  
   &lt;bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt;
    &lt;property name="dataSource" ref="dataSource1"&gt;&lt;/property&gt;
    &lt;property name="mappingResources"&gt;
     &lt;list&gt;
      &lt;value&gt;FileObject.hbm.xml&lt;/value&gt;
     &lt;/list&gt;
    &lt;/property&gt;
    &lt;property name="hibernateProperties"&gt;
     &lt;props&gt;
      &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/prop&gt;
      &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
      &lt;prop key="hibernate.hbm2ddl.auto"&gt;create&lt;/prop&gt;
     &lt;/props&gt;
    &lt;/property&gt;
   &lt;/bean&gt;
  
  
   &lt;bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"&gt;
    &lt;property name="sessionsFactory" ref="sessionFactory"&gt;&lt;/property&gt;
   &lt;/bean&gt;
  
   &lt;bean id="fileDownload" class="com.kc.models.FileManipulator"&gt;
    &lt;property name="dbTemplate" ref="hibernateTemplate"&gt;&lt;/property&gt;
   &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>edit: here is my jdbc/properties file</p>
  
  <pre><code># DB properties file
  
  database.url=jdbc:mysql://localhost:3306/zangshop
  database.driver=com.mysql.jdbc.Driver
  database.user=XXXX
  database.password=XXXX
  database.maxConnections=25
  </code></pre>
  
  <p>EDIT: Full error from tomcat</p>
  
  <pre><code>SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
  org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSourc] for bean with name 'dataSource1' defined in ServletContext resource [/WEB-INF/zang-file-service.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSourc
      at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
      at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
      at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4323)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4771)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:785)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:763)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:558)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:987)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:540)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1390)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:355)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
      at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:312)
      at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:292)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:998)
      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:772)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:990)
      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:275)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:424)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:648)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:138)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
  Caused by: java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSourc
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1664)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
      at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
      at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
      at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
      ... 41 more
  </code></pre>