I now have this config and error message
Code:
bean id="wsJtaTm" class="org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean"/>
<bean id="rep.pen.jtaTransactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
<property name="transactionManager" ref="wsJtaTm"/>
</bean>
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rep.pen.hibernateTemplate' defined in class path resource [modules/rep-pen-context.xml]: Cannot resolve reference to bean 'rep.pen.sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rep.pen.sessionFactory' defined in class path resource [modules/rep-pen-context.xml]: Cannot resolve reference to bean 'rep.pen.jtaTransactionManager' while setting bean property 'jtaTransactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rep.pen.jtaTransactionManager' defined in class path resource [modules/rep-pen-context.xml]: Cannot resolve reference to bean 'wsJtaTm' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wsJtaTm' defined in class path resource [modules/rep-pen-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean]: Constructor threw exception; nested exception is org.springframework.transaction.TransactionSystemException: Could not access WebSphere's TransactionManagerFactory.getTransactionManager method; nested exception is java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.TranManagerSet incompatible with javax.transaction.TransactionManager
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rep.pen.sessionFactory' defined in class path resource [modules/rep-pen-context.xml]: Cannot resolve reference to bean 'rep.pen.jtaTransactionManager' while setting bean property 'jtaTransactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rep.pen.jtaTransactionManager' defined in class path resource [modules/rep-pen-context.xml]: Cannot resolve reference to bean 'wsJtaTm' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wsJtaTm' defined in class path resource [modules/rep-pen-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean]: Constructor threw exception; nested exception is org.springframework.transaction.TransactionSystemException: Could not access WebSphere's TransactionManagerFactory.getTransactionManager method; nested exception is java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.TranManagerSet incompatible with javax.transaction.TransactionManager
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rep.pen.jtaTransactionManager' defined in class path resource [modules/rep-pen-context.xml]: Cannot resolve reference to bean 'wsJtaTm' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wsJtaTm' defined in class path resource [modules/rep-pen-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean]: Constructor threw exception; nested exception is org.springframework.transaction.TransactionSystemException: Could not access WebSphere's TransactionManagerFactory.getTransactionManager method; nested exception is java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.TranManagerSet incompatible with javax.transaction.TransactionManager
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wsJtaTm' defined in class path resource [modules/rep-pen-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean]: Constructor threw exception; nested exception is org.springframework.transaction.TransactionSystemException: Could not access WebSphere's TransactionManagerFactory.getTransactionManager method; nested exception is java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.TranManagerSet incompatible with javax.transaction.TransactionManager
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean]: Constructor threw exception; nested exception is org.springframework.transaction.TransactionSystemException: Could not access WebSphere's TransactionManagerFactory.getTransactionManager method; nested exception is java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.TranManagerSet incompatible with javax.transaction.TransactionManager
Caused by: org.springframework.transaction.TransactionSystemException: Could not access WebSphere's TransactionManagerFactory.getTransactionManager method; nested exception is java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.TranManagerSet incompatible with javax.transaction.TransactionManager
Caused by: java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.TranManagerSet incompatible with javax.transaction.TransactionManager
at org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean.<init>(WebSphereTransactionManagerFactoryBean.java:110)
This can typically be a classloading issue?