To build, package, and deploy the example using NetBeans IDE, follow these steps, or the steps described in Building, Packaging, and Deploying the Service.
Follow the steps in Setting Up Your System for Running the Security Examples.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to the project.
Click Open Project.
In the Projects tab, right-click the project and select Clean and Build.
In the Projects tab, right-click the project and select Deploy.
This step builds and packages the application into a WAR file, and deploys this war file to your Enterprise Server instance.