title: Failed to convert property value of type [java.util.ArrayList] to required type [java.lang.Class[] ] for property 'annotatedClasses'
body: <pre><code>org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'adminPanelController': Unsatisfied dependency expressed through field 'blog_statusDAO'; nested exception is
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Blog_statusDAO' defined in ServletContext resource [/WEB-INF/config/spring/dispatcher-servlet.xml]: Cannot resolve reference to bean 'hibernate4AnnotatedSessionFactory' while setting bean property 'sessionFactory'; nested exception is
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernate4AnnotatedSessionFactory' defined in ServletContext resource [/WEB-INF/config/spring/dispatcher-servlet.xml]: Initialization of bean failed; nested exception is
  org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.lang.Class[]' for property 'annotatedClasses'; nested exception is
  java.lang.IllegalArgumentException: Cannot find class [com.journaldev.spring.model.Connection]
  </code></pre>
  
  <p>That is my log error, and I use the following code in my spring configuration:</p>
  
  <pre><code>    &lt;beans:bean id="hibernate4AnnotatedSessionFactory"    class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt;
          &lt;beans:property name="dataSource" ref="dataSource" /&gt;
          &lt;beans:property name="annotatedClasses"&gt;
          &lt;beans:list&gt;
                  &lt;beans:value&gt;com.journaldev.spring.model.Blog_status&lt;/beans:value&gt;
                  &lt;beans:value&gt;com.journaldev.spring.model.Car&lt;/beans:value&gt;
                   &lt;beans:value&gt;com.journaldev.spring.model.Connection&lt;/beans:value&gt;
               &lt;!--     &lt;beans:value&gt;com.journaldev.spring.model.Tool&lt;/beans:value&gt; 
   --&gt;        &lt;/beans:list&gt;
          &lt;/beans:property&gt; 
      &lt;/beans:bean&gt;
  </code></pre>