| Sun GlassFish Enterprise Server |
Perform the following steps to build, deploy, and run the
application:
app_dir is the sample application base
directory: samples_install_dir/javaee6/security/http-method-omission.Change directory to app_dir.
app_dir> ant
The launch target opens the browser. Try the Post method to see a challenge posed to the user to enter username/password.Enter javaee6user/abc123 (the configured file-user for role javaee6user). Try the Get method to check that all users are denied access.
clean to undeploy the sample
application and to remove the temporary directories like build and
dist.
app_dir> ant
clean
Follow these instructions to build, deploy, and run this sample application using NetBeans IDE.
samples_install_dir/javaee6/security/http-method-omission
as the project.http-method-omission and select Run
Project which will build, deploy and run the project.Try the Post method to see a challenge posed to the user to enter username/password.Enter javaee6user/abc123 (the configured file-user for role javaee6user). Try the Get method to check that all users are denied access.
If you have problems when running the application, refer the troubleshooting document.
Copyright 2009 Sun Microsystems, Inc. All rights reserved.