<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer">
<property name="location"><value>/WEB-INF/hibernate.properties</value></property>
</bean>
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
<property name="url"><value>${hibernate.connection.url}</value></property>
<property name="driverClassName"><value>${hibernate.connecti on.driver_class}</value></property>
<property name="username"><value>${hibernate.connection.user name}</value></property>
<property name="password"><value>${hibernate.connection.pass word}</value></property>
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSess ionFactoryBean">
<property name="dataSource"><ref bean="dataSource"/></property>
<property name="mappingResources">
<list>
<value>com/test/model/CatalogItem.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
</props>
</property>
</bean>
<!--
-->
<!--
<bean id="catalogItemDao" class="com.test.dao.hibernate.CatalogItemDaoImp">
<property name="sessionFactory"><ref bean="sessionFactory"/></property>
</bean>
-->
</beans>
I'm not sure how to go about debugging this stuff. I'm having a problems with the sessionFactory bean. If I comment it out, then the application will load on tomcat without any problems. As soon as I uncomment it...it won't load. I've looked at the tomcat logs and they don't really have very much information.


Reply With Quote