Ensure that GlassFish Server Open Source Edition 3.0.1 is installed on your machine.
To ensure that the pkg command can locate the application image, change to the base installation directory for GlassFish Server.
cd as-install |
The base installation directory for GlassFish Server.
Remove the following publishers from the list of publishers for the image:
dev.glassfish.org
stable.glassfish.org
release.javaeesdk.sun.com
pkg unset-publisher dev.glassfish.org stable.glassfish.org \ release.javaeesdk.sun.com |
Add repositories for Oracle GlassFish Server to the application image.
The properties to specify for each repository are listed in the following table.
Publisher Name |
Origin Uniform Resource Indentifier (URI) |
---|---|
release.glassfish.sun.com |
http://pkg.sun.com/glassfish/v3/release/ |
dev.glassfish.sun.com |
http://pkg.sun.com/glassfish/v3/dev/ |
The publisher release.glassfish.sun.com must be the preferred publisher.
For more information about these repositories, see Oracle GlassFish Server Repositories.
Add the repository whose publisher is release.glassfish.sun.com, which must be the preferred publisher.
pkg set-publisher -P -O http://pkg.sun.com/glassfish/v3/release/ \ release.glassfish.sun.com |
Add the repository whose publisher is dev.glassfish.sun.com.
pkg set-publisher -O http://pkg.sun.com/glassfish/v3/dev/ \ dev.glassfish.sun.com |
Install the add-on component for upgrading the distribution of GlassFish Server Open Source Edition that is installed:
If the Web Profile distribution is installed, install the Oracle GlassFish Server Web Profile add-on component.
pkg install glassfish-enterprise-web-profile |
If the Full Platform distribution is installed, install the Oracle GlassFish Server Full Platform add-on component.
pkg install glassfish-enterprise-full-profile |
To apply your changes, restart GlassFish Server.
See To Restart a Domain.
For the full syntax and options of the pkg command, see the pkg(1) man page. This man page is installed only after the pkg utilities have been fully installed.
To view this man page on UNIX and Linux systems, type the following command in a terminal window:
man -M as-install-parent/pkg/man/ pkg
To view this man page on Windows systems, use the type command to view the file as-install-parent\pkg\man\cat1\pkg.1.