The Java EE 6 Tutorial

Deploying a Web Module

You can deploy a WAR file to the GlassFish Server by

Throughout the tutorial, you will use NetBeans IDE or Ant for packaging and deploying.

ProcedureTo Deploy the hello1 Web Module Using NetBeans IDE

  1. Right-click the hello1 project and select Deploy.

ProcedureTo Deploy the hello1 Web Module Using Ant

  1. In a terminal window, go to:


    tut-install/examples/web/hello1/
    
  2. Type the following command:


    ant deploy