The Java EE 6 Tutorial

ProcedureTo Build, Package, and Deploy the Form-Based Authentication Example Using Ant

  1. Follow the steps in To Set Up Your System for Running the Security Examples.

  2. In a terminal window, go to:

    tut-install/examples/security/hello2_formauth/
    
  3. Type the following command at the terminal window or command prompt:


    ant
    

    This target will spawn any necessary compilations, copy files to the tut-install/examples/security/hello2_formauth/build/ directory, create the WAR file, and copy it to the tut-install/examples/security/hello2_formauth/dist/ directory.

  4. To deploy hello2_formauth.war to the GlassFish Server, type the following command:


    ant deploy