title: javac cannot find symbol constructor Service
body: <p>I am in the process of learning CXF with the help of this <a href="https://rads.stackoverflow.com/amzn/click/com/1847195407" rel="nofollow noreferrer" rel="nofollow noreferrer">Apache CXF Web Service Development</a> book but, alas, one of the book's sample projects won't even compile!</p>
  
  <p>The code in question is Chapter 3's <code>contractfirst</code> and it's not a typo problem because I am using the source code verbatim as downloaded from <a href="http://www.packtpub.com/support/4096" rel="nofollow noreferrer">the book's support site</a>.</p>
  
  <p>The 3 compilation errors point actually to a single problem:</p>
  
  <pre><code>Chapter3\contractfirst\src\demo\order\OrderProcessService.java:52: cannot find symbol
  symbol: constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
  location: class javax.xml.ws.Service
  super(WSDL_LOCATION, SERVICE, features);
  ^
  </code></pre>
  
  <p>In the file OrderProcessService.java.</p>
  
  <p>Initial re<a href="http://goo.gl/ccfLa" rel="nofollow noreferrer">search</a> suggests that this may be a <a href="http://www.weston-fl.com/blog/?p=1673" rel="nofollow noreferrer">JAX-WS 2.2 vs. 2.1</a> issue but I have no idea how to make this ANT-based compilation environment "endorse" JAX-WS 2.2.</p>
  
  <p>I tried placing a <code>jaxws-api.jar</code> in <code>%JAVA_HOME%\lib\endorsed</code> and I tried adding that jar to the project's libraries list but none seemed to help.</p>
  
  <p>I am not using <a href="https://stackoverflow.com/q/6947451/562776">Maven</a>, so I can't even list it as a dependency and hope that this will be magically resolved.</p>
  
  <p>Any idea how to solve this problem? So that I can make this very simple project build?</p>