Hi,
I get a ClassNotFoundException when i try to do this:
ApplicationContext context = new FileSystemXmlApplicationContext("appContext.xml");
Hibernate version: 3
My appContext.xml contains the following:
<!-- Hibernate SessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
<property name="dataSource"><ref bean="dataSourceAlone"/></property>
<property name="mappingDirectoryLocations">
<list>
<value>nl.ictu.spg.berichten.LO3</value>
<value>nl.ictu.spg.gegevensmodel.LO3</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.dialect">false</prop>
</props>
</property>
</bean>
<bean id="testDAO" class="nl.ictu.spg.test.hibernate_spring.TestDAOHibernate">
<property name="sessionFactory"><ref bean="sessionFactory"/></property>
</bean>
TestDAOHibernate extends HibernateDaoSupport
i get the following exception:
Error creating bean with name 'sessionFactory' defined in file [appContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/Configuration
But i have alle the libs on the classpath and i can't find the Configuration in any of the libs under that package. What am i doing wrong?
Thanks,
Maarten
|