When doing iterative development with this web application, follow these steps if you are using NetBeans IDE:
Close your web browser.
Clean and recompile the files from the previous build by right-clicking hello2_basicauth and selecting Clean and Build.
Redeploy the application by right-clicking hello2_basicauth and selecting Undeploy and Deploy.
Open your web browser and reload the following URL:
https://localhost:8181/hello2_basicauth/greeting
Follow these steps if you are using the Ant tool:
Close your web browser.
Undeploy the web application. To undeploy the application, use the following command in the directory:
ant undeploy |
Clean out files from the previous build, using the following command:
ant clean |
Recompile, repackage, and redeploy the application, using the following commands:
ant ant deploy |
Open your web browser and reload the following URL:
https://localhost:8181/hello2_basicauth/greeting