J2EE 1.4 samples
Issue: There are three documented ways to deploy the security sample applications.
Admin GUI-based deployment
The user ("j2ee") and password ("secret") are created automatically when one uses
asant. However, if one chooses
asadmin or the
GUI console to deploy the application, the documentation doesn't describe instructions to create the user and password for the sample application to work correctly.
If the user "j2ee" is not configured then it might result in the following error:
"You could not be authenticated with the information provided..
Please check your Username and Password..
The user principal is: null"
Resolution: The fact that it complains that the user principal is "null" is an indication that the user "j2ee" is not configured.
To resolve this, create a j2ee user (defined below) before running the sample application.