title: Why is JAX-WS part of the JDK but JAX-RS is not?
body: <p>When using Eclipse, I'm able to use JAX-WS annotations (e.g. <code>@WebService</code>) without including any external dependencies, but I can't do the same for JAX-RS annotations (e.g. <code>@Path</code>). I took a look at <a href="https://stackoverflow.com/a/10007183/2227788">this</a> answer and I understand that <code>javax.ws.rs</code> is not a part of the JDK. Why is it that JAX-WS is part of the JDK and JAX-RS is not?
  Secondly, if I deploy a JAX-WS annotated application on a GlassFish or WildFly server, does the server use a well-known WebService stack to run the application (e.g. Metro) or its own implementation?</p>