The Java EE 6 Tutorial

ProcedureTo Build, Package, and Deploy the Servlet Basic Authentication Example Using NetBeans IDE

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

  2. In NetBeans IDE, select File->Open Project.

  3. In the Open Project dialog, navigate to:


    tut-install/examples/security
    
  4. Select the hello2_basicauth folder.

  5. Select the Open as Main Project check box.

  6. Click Open Project.

  7. Right-click hello2_basicauth in the Projects pane and select Deploy.

    This option builds and deploys the example application to your GlassFish Server instance.