Hi All,
I tried running the Embeddable EJB3 in our unit test but was getting this
exception when I'm initialising Hibernate:
Caused by: java.lang.ClassCastException:
net.sf.hibernate.transaction.JTATransactionFactory
at
org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:37)
at
org.hibernate.cfg.SettingsFactory.createTransactionFactory(SettingsFactory.java:389)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:121)
>From what I can see it looks like it is just instantiating the Transaction
>magaer setting in my hibernate.cfg.xml:
factory =
(TransactionFactory)ReflectHelper.classForName(strategyClassName).newInstance();
strategyClassName = net.sf.hibernate.transaction.JTATransactionFactory
has anyone encountered this before?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978052#3978052
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978052
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user