I am new to WebLogic and fairly new to Hibernate / Spring applications, as my primary language is C# and my primary servers have always been Windows Servers, so please forgive any simple errors I may have.

I am having trouble deploying to our WebLogic 10.3.4 server. It works locally on my WebLogic instance, but not on the remote server.

I am using Hibernate 4.2.8 for persistence and Spring MVC 4.0 for my web application framework. The error I am receiving is:

OK - I think I understand the concept - I'll work on implementing it and hopefully get it working - I'm assuming it is something along the lines of creating the WebLogicJtaTransactionManager? Any suggestions on good resources for how to do this? I'm looking at some Spring documentation now (docs.spring.io/spring/docs/2.0.x/reference/transaction.html) but it is for an old version of Spring
– Laura RitcheyMay 20 '14 at 20:52

I quickly read it and I'll read it again to pull out relevant information, but it is referring to a lower version of Spring and is not using annotations or the autowiring with package-scans. Should be helpful though for understanding concepts, so thanks!
– Laura RitcheyMay 21 '14 at 12:58

I used the information given in the answer by @Vlad Mihalcea to improve my code; however, it was not the reason it was not working. One of @Vlad's comments that suggested looking for a persistence.xml file in the META-INF folder clued me into the answer.

Even though I was using the Spring configuration file for Hibernate, I had an old persistence.xml file under the META-INF folder. I wasn't using it, but WebLogic was picking it up automatically. Since I wasn't using it, I didn't have a data source specified in the persistence.xml file. WebLogic automatically assumes any persistence unit is JTA if not specified as RESOURCE LOCAL. I deleted that persistence.xml file, and it worked.

That said, I also fixed up my code to use the JTA data source as @Vlad Mihalcea suggested. I moved all my configuration code to the Spring-servlet.xml file to simplify the configuration. I'm sure it could be translated into the programmatic Spring configuration without too much trouble.

In the meantime, here is a working JTA transaction based Spring / Hibernate configuration file.

Great job, Laura! Thanks for posting the final configuration. Others in trouble will definitely find it useful.
– Vlad MihalceaMay 24 '14 at 16:42

I'm glad it's finally figured out! It was frustrating, but it's good to get some more knowledge under my belt. Hopefully it will save others some trouble. Thank you so much for all your help :)
– Laura RitcheyMay 24 '14 at 17:04