Appendix
1. Loading the NetBeans project
Download NetBeans project (autoenroll.zip) and unzip it to any directory
Open NetBeans
Go to File > Open Project
Browse to the directory where the project was unzipped to
Select the Project and click Open Project
2. Building the servlet WAR file
The WAR file can be done either from within NetBeans, if you are a NetBeans developer, or from the command line using ant.
Using NetBeans
Right click the project and select "Clean and Build" or click Run on the menu bar and select "Clean and Build Project".
A new WAR file will be created in the dist directory
This file and be deployed to Tomcat
Using ant
Open a command line in the autoenroll directory
build the WAR file with the command ant
The new WAR file will be created in the dist directory