-
1. Re: java.lang.ClassNotFoundException: org.hibernate.transaction.JTATransactionFactory
jaikiran Mar 4, 2010 4:53 AM (in response to ticoli)ticoli wrote:
java.lang.ClassNotFoundException: org.hibernate.transaction.JTATransactionFactoryWhere is that being configured? In hibernate.cfg.xml or persistence.xml? Looks like the xml where this classname is specified contains a space at the start of the classname which is causing this exception.
-
2. Re: java.lang.ClassNotFoundException: org.hibernate.transaction.JTATransactionFactory
ticoli Mar 4, 2010 5:05 AM (in response to jaikiran)I'm using a spring configuration, without hibernate.cfg.xml or persistence.xml
spring conf file :
<!--sessionFactory will get autowired-->
<bean id="fppFormDbSessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="fppFormDbDataSource"></property>
<property name="schemaUpdate">
<value>false</value>
</property>
<property name="annotatedClasses" ref="annotatedClassesList" />
<property name="hibernateProperties">
<ref bean="fppFormDbHibernateProperties" />
</property>
</bean>
<util:list id="annotatedClassesList">
<value>com.mycompany.class1</value>
<value>com.mycompany.class2</value>
</util:list>
<bean id="fppFormDbHibernateProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<prop key="hibernate.dialect">${fpp.form.formdb.dialect}</prop>
<prop key="hibernate.show_sql">${fpp.form.formdb.hibernate.show_sql}</prop>
<prop key="hibernate.transaction.factory_class">
${fpp.form.formdb.hibernate.transaction.factory_class}
</prop>
<prop key="hibernate.transaction.manager_lookup_class">
${fpp.form.formdb.hibernate.transaction.manager_lookup_class}
</prop>
<prop key="hibernate.connection.isolation">3</prop>
<prop key="hibernate.current_session_context_class">jta</prop>
</props>
</property>
</bean>
-
3. Re: java.lang.ClassNotFoundException: org.hibernate.transaction.JTATransactionFactory
jaikiran Mar 4, 2010 5:08 AM (in response to ticoli)1 of 1 people found this helpfulticoli wrote:
<prop key="hibernate.transaction.factory_class">
${fpp.form.formdb.hibernate.transaction.factory_class}
</prop>
<prop key="hibernate.transaction.manager_lookup_class">
${fpp.form.formdb.hibernate.transaction.manager_lookup_class}
</prop>
There should be no leading or trailing spaces in the values for these properties.
-
4. Re: java.lang.ClassNotFoundException: org.hibernate.transaction.JTATransactionFactory
ticoli Mar 4, 2010 5:20 AM (in response to jaikiran)thanks for answer, I will check and give you a feed back.
edit: problem resolved! thanks a lot!