The spring configuration file applicationContext.xml may contain this line:

<property name=”dialect”>org.hibernate.dialect.DB2Dialect</property>

Instead of this line you should try this:

<prop key=”hibernate.dialect”>org.hibernate.dialect.DB2Dialect</prop>

Hibernate properties within a spring configuration file start with ‘hibernate.’