The Java EE 5 Tutorial

Building, Packaging, and Deploying the JAX-WS Coffee Supplier Service

    To build the JAX-WS service and client library and to package and deploy the JAX-WS service using NetBeans IDE, follow these steps:

  1. In NetBeans IDE, choose Open Project from the File menu.

  2. In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/coffeebreak/.

  3. Select the cb-jaxws folder.

  4. Select the Open as Main Project and Open Required Projects check boxes.

  5. Click Open Project.

  6. Right-click the cb-jaxws project and choose Build.

  7. Right-click the cb-jaxws project and choose Undeploy and Deploy.

    To build the JAX-WS service and client library and to package and deploy the JAX-WS service using Ant, follow these steps:

  1. In a terminal window, go to tut-install/javaeetutorial5/examples/coffeebreak/cb-jaxws/.

  2. Run ant. This task calls the default target, which compiles the source files of the JAX-WS service.

  3. Make sure the Application Server is running.

  4. Deploy the JAX-WS service:


    ant deploy