Announcement Announcement Module
No announcement yet.
hibernate4: No Session found for current thread Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by Marten Deinum View Post
    Please use the search as this question has been answered numerous times before...

    Judging from your stacktrace and code you use component scanning and have duplicate components. How to overcome that is explained in the reference guide and answered many times on the forum before.
    Aww! That's fantastic! Just moving <tx:annotation-driven/> from applicationContext to dispatcherContext and it working now! Thank's!

    That's info from documentation was helpful for me:
    <tx:annotation-driven/> only looks for @Transactional on beans in the same application context it is defined in. This means that, if you put <tx:annotation-driven/> in a WebApplicationContext for a DispatcherServlet, it only checks for @Transactional beans in your controllers, and not your services. See Section 16.2, “The DispatcherServlet” for more information.
    Last edited by shoo; Apr 19th, 2012, 07:20 AM.