Caused by: org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available
sessionFactory配置:
<bean id="sessionFactory_HL" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource_dbcp" />
<property name="mappingResources">
<list>
<value>com/habuma/spitter/domain/Spitter.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="dialect">org.hibernate.dialect.HSQLDialect</prop>
<prop key="show_sql">true</prop>
</props>
</property>
</bean>
改成
<bean id="sessionFactory_HL" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource_dbcp" />
<property name="mappingResources">
<list>
<value>com/habuma/spitter/domain/Spitter.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
</bean>
<prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop>