I am in the process of learning CXF with the help of this Apache CXF Web Service Development book but, alas, one of the book\'s sample projects won\'t even compile!
Endorsing the 2.2 version of the jaxws-api jar should work. You could also pass the "-fe jaxws21" flag to the CXF wsdl2java command to make it generate 2.1 compatible code instead.