title: How to export Java Web Service using Netbeans 8.0?
body: <p>I am learning how to create a Java Web Service JAX-WS. To achieve this I followed this Netbeans 8.0 guide:</p>
  
  <ul>
  <li><a href="https://netbeans.org/kb/docs/websvc/jax-ws.html" rel="nofollow">https://netbeans.org/kb/docs/websvc/jax-ws.html</a></li>
  </ul>
  
  <p>In the guide we learn how to create a Web Server, and a Client. Before running the server, I deploy it to NetBeans GlassFish server, and then the client access it. Everything works well locally.</p>
  
  <p>However, now I wish to export the web server into an external file (war, jar, etc) and to run it on a remote machine, so I can then try to access it using my local client. </p>
  
  <p>I have tried using "right-click" on project and searched for export options, but I found none. In the File menu, I am only allowed to export to a ZIP file, which is not what I want because I want to be able to run my code on a remote server that has no NetBeans and no GlassFish installed. </p>
  
  <p>How do I do this?</p>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>I wish to launch this without maven or any other tools of the kind.</p>
  
  <p>After reading a completely unrelated article from Oracle for Java EE7 I found that i can create wars build building and cleaning the project (following is the version of that article for Java EE6, because I cannot find the one for EE7 :S ):</p>
  
  <ul>
  <li><a href="http://docs.oracle.com/javaee/6/tutorial/doc/bnayn.html" rel="nofollow">http://docs.oracle.com/javaee/6/tutorial/doc/bnayn.html</a></li>
  </ul>
  
  <p>Having this in mind the challenge is now to launch the generated <code>.war</code> file using <code>java -jar something.jar</code>. For this purpose I am considering using Jetty 8.</p>