The Java EE 5 Tutorial

Building, Packaging, and Deploying the Form-Based Authentication Example Using NetBeans IDE

    To build, package, and deploy this application using NetBeans IDE, follow these steps:

  1. Follow the instructions in Building the Examples if you have not already done so. This step is necessary to provide the Ant targets with the location of your tutorial and Application Server installations.

  2. Add users to the file realm of the Application Server as described in Adding Authorized Roles and Users if you have not already done so.

  3. Open the project in NetBeans IDE by selecting File->Open Project.

  4. Browse to the tut-install/javaeetutorial5/examples/web/hello1_formauth/ directory.

  5. Make sure that Open as Main Project is selected.

  6. Select Open Project.

  7. If you are prompted to regenerate the build-impl.xml file, select the Regenerate button.

  8. Right-click hello1_formauth in the Projects pane, then select Clean and Build.

  9. Right-click hello1_formauth in the Projects pane, then select Undeploy and Deploy.

  10. Follow the steps in Testing the Form-Based Authentication Web Client.