To build, package, and deploy this application using NetBeans IDE, follow these steps:
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.
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.
Open the project in NetBeans IDE by selecting File->Open Project.
Browse to the tut-install/javaeetutorial5/examples/web/hello1_formauth/ directory.
Make sure that Open as Main Project is selected.
Select Open Project.
If you are prompted to regenerate the build-impl.xml file, select the Regenerate button.
Right-click hello1_formauth in the Projects pane, then select Clean and Build.
Right-click hello1_formauth in the Projects pane, then select Undeploy and Deploy.
Follow the steps in Testing the Form-Based Authentication Web Client.