Wednesday, 12 November 2008

Maven 2.0.9 + Sping 2.5.5 a useful note

I'll start from here... even if is not the best way... but it's usefull for me and I hope even for somebody else.

I'm preparing an POC for my Company UPC (www.upc.nl) in which I use Spring (v.2.5.5), Maven (v.2.0.9), Apche CXF (v.2.2) and Hibernate.
I'll surely later add some more details about how to prepare a Maven project from scratch but now it is important fix this issues that I have had ... and because my memory is getting wrong (probably I need a defrag :-) ) this could be a nice place.

So arrive to the nut:
I compile successufully with
mvn -U -up clean install
but when I have done 
mvn -U -up jetty:run 
I've got the following error:
Embedded error: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx]
Offending resource: file [C:\java\...\...\applicationContext.xml]

So after some check on google I've found I have missed one of the dependency.
The dependency missed:
     org.springframework
     spring-tx
     2.5.1

After put that into the pom... it compiles succefully !  Prima! the dutch will say! :-)

No comments: