To create a connection pool for use in a JSF web application you need to bring up the GlassFish admin console as shown below. Click on the "Create New JDBC Connection Pool" button. This will start a 2 step dialog.
For step 1 you need to give a name to your connection pool. This name will be used soon when you set up the pool as a resource. Also use the combo box widgets to select the "Resource Type" and "Database Vendor". These should be exactly as shown below. Then click on the "Next" button.
In step 2 you first need to click on the "Ping" enabled checkbox, then delete the security information and fill in some additional information. You will need to scroll down to do these things.
Click on the checkbox next to the "SecurityMechanism" field. Then click on the "Delete Properties" button.
You need to fill in the following fields using data you specified in the database creation dialog:
After entering this information click on the "Finish" button.
If everything was done correctly you should see the display below. The name of your connection pool should appear in the "Pool Name" column.