Follow the steps in To Set Up Your System for Running the Security Examples.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to:
tut-install/examples/security |
Select the hello2_basicauth folder.
Select the Open as Main Project check box.
Click Open Project.
Right-click hello2_basicauth in the Projects pane and select Deploy.
This option builds and deploys the example application to your GlassFish Server instance.