Copy LoginModuleSample.jar from JAR_DIR to AccessManager-base\web-src\services\WEB-INF\lib
In the Web Container from which this sample has to run, update the classpath with LoginModuleSample.jar.
Update server.xml with the new classpath and server.xml locations:
Sun Java System Web Server : <WS-install-dir>\https-<WS-instance-name>\config\server.xml
Sun Java System Application Server: <AS-install-dir>\domain<appserver domain><appserver_instance>\config\server.xml
Example:<AS-install-dir>\domain\domain1\server1\config\server.xml
Copy LoginModuleSample.xml from base-directory \samples\authentication\spi\providers to base-directory\web-src\services\config\auth\default.
Restart the web container
Web Server: <WS-home-dir>\https-<WS-instance-name>\restart
Application Server: AppServer-home-dir>\domains\<domain name><server_instance>\bin\restartserv