I migrating my app from WebLogic to JBoss AS 5.1.0 and I have deployed my app (an ear with 2 wars) to JBoss successfully. Now I am trying to run my existing integration tests and I got java.lang.NoClassDefFoundError: javax/transaction/RollbackException error when creating bean - transactionManager. see the below full stack trace. I tried to add jta.jar but it then produce a new error with typemismatchexception for usertransaction. I did some diggings and found out it was class loader issue with jta.jar I added. so I removed it and now I am still facing this RollbackException not found issue.

Thanks for quick response. jta is the dependency in hibernate (I have hibernate3.6 and hibernate-annotation 3.4.) so when I add jta.jar it cause class loader problem i.e. typeMismatchException for transaction manager. BTW I am using spring 2.5.6