The tutorial example source is contained in the tutorial component. To obtain the tutorial component, use the Update Tool.
If you are behind a firewall that prevents you from using the Update Tool to obtain components, you can obtain the tutorial from the java.net web site.
Start the Update Tool.
Expand the GlassFish Server Open Source Edition node.
Select the Available Add-ons node.
From the list, select the Java EE 6 Tutorial check box.
Accept the license agreement.
After installation, the Java EE 6 Tutorial appears in the list of installed components. The tool is installed in the as-install/docs/javaee-tutorial directory. This directory contains two subdirectories: docs and examples. The examples directory contains subdirectories for each of the technologies discussed in the tutorial.
Updates to the Java EE 6 Tutorial are published periodically. For details on obtaining these updates, see Getting the Latest Updates to the Tutorial.
Follow these steps exactly. If you place the tutorial in the wrong location, the examples will not work.
Open the following URL in a web browser:
Click the Documents & Files link in the left sidebar.
In the table on the Documents & Files page, locate the latest stable version of the Java EE 6 Tutorial zip file.
Right-click the zip file name and save it to your system.
Copy or move the zip file into the GlassFish SDK directory.
By default, this directory is named glassfishv3.
Unzip the zip file.
The tutorial unzips into the directory glassfish/docs/javaee-tutorial.