0 Replies Latest reply on Oct 12, 2006 10:53 PM by Dennis Angelo

    Embeddable EJB3

    Dennis Angelo Newbie

      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?