If i do not paste xmlns:tx="http://www.springframework.org/schema/tx" then there are no problems. However if i do insert the text i get an cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven' error.
I have also tried to modify <tx:annotation-driven /> like so : <tx:annotation-driven transaction-manager="transactionManager"/>
FIXED: forgot to add
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd