Olá.
Estou utilizando o spring + hibernate e estou com o seguinte problema na configuração. Segue a minha configuração:
sessionFactory:
    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
        <property name="dataSource">
            <ref local="comercialDataSource"/>
        </property>
        <property name="hibernateProperties">
           	<props>
	   			<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
				<prop key="hibernate.show_sql">true</prop>
				<prop key="hibernate.c3p0.minPoolSize">5</prop>
				<prop key="hibernate.c3p0.maxPoolSize">20</prop>
				<prop key="hibernate.c3p0.timeout">600</prop>
				<prop key="hibernate.c3p0.max_statement">50</prop>
				<prop key="hibernate.c3p0.testConnectionOnCheckout">false</prop>
  			</props>
        </property>
        <property name="mappingResources">
            <list>
                <value>\br\com\teste\model\Registro.hbm.xml</value>
            </list>
        </property>
    </bean>
transactionManager:
	<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
		<property name="sessionFactory">
     		<ref local="sessionFactory"/>
		</property>
	</bean>
E o DAO:
	<bean id="registroDAO" class="br.com.teste.dao.hibernate.RegistroDAO">
		<property name="sessionFactory">
			<ref local="sessionFactory"/>
		</property>
	</bean>
Quando eu tento startar a aplicação aparece a seguinte exception no log do tomcat:
[quote]org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘registroDAO’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: net/sf/hibernate/Session
java.lang.NoClassDefFoundError: net/sf/hibernate/Session[/quote]
Alguém sabe o que pode estar acontecendo ? Estou com o JAR do hibernate na pasta lib… mas parece que ele está apontando para uma versão antiga do hibernate, pois o hibernate3 não possui o pacote net/sf/hibernate…
Obrigado!