Sun Java System Application Server 

Samples Index

The Basic Authentication Sample Application

The Basic Authentication application is a collection of simple applications that demonstrate how to use the servlet and JavaServer Pages (JSP) APIs. Assemble and deploy this application for a quick introduction to web applications and application development and administration tools.

The general instructions for building, deploying, and running sample applications are provided in Building, Deploying, and Running Sample Applications. In reading this document, use the following application-specific variables for this application:

Follow this general procedure:

  1. Build the Application. The build file, build.xml, is in the app_dir directory, specifically, install_dir/webapps/apps/security/basic-auth/.
  2. Deploy the Application. The WAR file is install_dir/samples/webapps/apps/security/basic-auth/web-basic-auth.war.
  3. Run the Application. The application name is web-basic-auth.
Note You must run asant undeploy before redeploying this sample. This ensures that all modules are undeployed and the resources are disabled. The application is undeployed, however. To remove resources, run the asant keydel command.
Warning: Do not execute this asant keydel step if the form--auth security sample is running.

 


Copyright © 2006 Sun Microsystems, Inc. All rights reserved.