The Update Center is an open source project integrated with GlassFish 3.1 and Java EE 6 SDK Update 2. It provides both the ability to seamlessly apply updates to already installed content and to download and install additional applications. Note: you can also use this document for Update Center integrated with GlassFish 3.0.1 and Java EE 6 SDK Update 1. Cannot resolve external resource into attachment. Using the Update Center Before you can use the Update Center, you must have GlassFish Open Source Edition 3.1, Oracle GlassFish Server 3.1 or Java EE 6 SDK Update 2 installed. Download the distribution you want from the GlassFish Open Source Edition Download Website or Java EE 6 SDK and Oracle GlassFish Server Download Website. To launch the Updatetool:
- From the GlassFish installation directory, navigate to the top level bin directory (<GlassFish_Install_Dir>/bin).
- Launch the Update Tool by typing: updatetool.
- If the Updatetool client installation option was deselected in installer, or if you installed zip file distribution, the script may need to download and install the necessary runtime packages the first time you invoke it. User will need to run the script again after the bootstrap. Note that the bootstrap may take a while to download and initialize the packages, depending on your connection speed.
- The Updatetool GUI client displays.
Cannot resolve external resource into attachment. Setting Up Proxy Configuration If there are no components listed on the screen of Available Add-ons, you may be behind a proxy server. To connect the Update Center to the proxy server:
- Select the Preferences button.
- Select the "Manual proxy configuration" option.
- Provide the proxy server names and port numbers.
- If the proxy server requires authentication, select the "Proxy require authentication" checkbox and provide the username and password.
- Select OK button.
Cannot resolve external resource into attachment. Select the Available Add-ons node once again to display the components that are available for installation. If you select a package and install it, the installed package is no longer displayed in Available Add-ons screen. You can view these newly installed components in the Installed Components screen. Available Add-ons The Available Add-ons screen shows all the software components available for installation through the Update Center. Notice that the modules are categorized in associated groupings. The Package Details section of the window shows more information about the software package. Available Updates The Available Updates screen shows when updates are available for installation. It shows the basic details about each software updates. You can select the desired package(s) from the table and click Install button. The Package Details section of the window shows more information for the component selected in the table. Installed Components The Installed Components screen shows the software components currently installed. The Package Details section of the window shows more information for the installed software including technical specifications, documentation, and other useful resources. Preferences When you click on the Preferences button, the Preferences dialog will appear. It lets you configure the Update Center settings and specify a schedule for the updates. Image Properties When you select File -> Image Properties menu, the image properties dialog will appear. From this dialog, you can add or edit update center repository URLs. Replacing Community Repository Configuration with Oracle Repository Configuration In several upgrade scenarios you may need to replace open source distribution repository configuration with Oracle branding repository configuration. Here are the steps: 1. Start Update Tool
- Start update tool by going to top level "bin" directory and running "updatetool" script. The GUI should appear.
2. Reconfigure repositories and set "release.glassfish.oracle.com" as preferred publisher in Image Properties
- On Update Tool menu, select File -> Image Properties...
- This should bring up a dialog.
- Select "dev.glassfish.org" publisher row, click "Edit". Enter dev.glassfish.oracle.com as Publisher Name and http://pkg.oracle.com/glassfish/v3/dev/ as Repository URL. Click "OK".
- Select "stable.glassfish.org" publisher row, click "Edit". Enter release.glassfish.oracle.com as Publisher Name and http://pkg.oracle.com/glassfish/v3/release/ as Repository URL. Click "OK" Make sure that this publisher still has Preferred checkbox set.
- Select "release.javaeesdk.oracle.com" ("release.javaeesdk.sun.com" if using GlassFish 3.0.1) publisher row, click "Remove".
- (optional step) Enter "Oracle GlassFish Server" as image title.
Resulting configuration should look similar to the screenshot below. Cannot resolve external resource into attachment. Replacing Community Repository Configuration with Java EE SDK Repository Configuration In several upgrade scenarios you may need to replace open source distribution repository configuration with Java EE SDK repository configuration. Here are the steps: 1. Start Update Tool
- Start update tool by going to top level "bin" directory and running "updatetool" script. The GUI should appear.
2. Reconfigure repositories and set "release.javaeesdk.oracle.com" as preferred publisher in Image Properties
- On Update Tool menu, select File -> Image Properties...
- This should bring up a dialog.
- Select "dev.glassfish.org" publisher row, click "Edit". Enter dev.javaeesdk.oracle.com as Publisher Name and http://pkg.oracle.com/javaeesdk/6/dev/ as Repository URL. Click "OK".
- Check Preferred checkbox in "release.javaeesdk.oracle.com" ("release.javaeesdk.sun.com" if using GlassFish 3.0.1) publisher row.
- Select "stable.glassfish.org" publisher row, click "Remove".
- (optional step) Enter "Java EE 6 SDK" as image title.
Resulting configuration should look similar to the screenshot below. Cannot resolve external resource into attachment. Common Distribution Upgrade Scenarios Upgrading from GlassFish Open Source Edition to Oracle GlassFish Server Using the Update Center, users are able to upgrade their community installation to Oracle GlassFish Server installation, but note that this changes the license terms of such installation. Use following steps: 1. Set Oracle Repository
- Replace community repository configuration with Oracle repository configuration using these instructions.
2. Install Oracle GlassFish Server Distribution Artifacts
- Stop the server, if running.
- Go to "Available Add-Ons" screen and install one of these packages, depending on desired distribution profile:
- Oracle GlassFish Server Full Platform (glassfish-enterprise-full-profile) or
- Oracle GlassFish Server Web Profile (glassfish-enterprise-web-profile)
This will download the necessary artifacts and upgrade your installation. 3. Verifying the Upgrade
- You are now using Oracle GlassFish Server.
- You may run "asadmin version" command to verify the upgrade.
- Alternatively, you may also log on to the management console after server restart and verify the version of the product on the masthead.
Upgrading from GlassFish Open Source Edition to Java EE 6 SDK Using the Update Center, users are able to upgrade their existing installation of GlassFish Open Source Edition to Java EE 6 SDK, but note that this changes the license terms of such installation. Use following steps: 1. Set Java EE SDK Repository
- Replace community repository configuration with Oracle Java EE SDK repository configuration using these instructions.
2. Install Java EE 6 SDK Distribution Artifacts
- Go to "Available Add-Ons" screen and install one of these packages, depending on desired Java EE 6 SDK distribution profile:
- Java EE 6 SDK Full Platform (javaee-sdk-full-profile) or
- Java EE 6 SDK Web Profile (javaee-sdk-web-profile)
This will download all Java EE 6 SDK components and upgrade your installation to the equivalent of Java EE 6 SDK. Upgrading From GlassFish Open Source Edition Web Profile to GlassFish Open Source Edition Full Platform 1. Install GlassFish Full Platform Artifacts
- Go to "Available Add-Ons" screen and install following full profile metapackage:
- GlassFish Full Profile (glassfish-full-profile)
This will download all required components and upgrade your installation to the equivalent of full platform GlassFish Open Source Edition. Upgrading Oracle GlassFish Server Web Profile to Oracle GlassFish Server Full Platform 1. Install GlassFish Full Platform Artifacts
- Go to "Available Add-Ons" screen and install following full profile metapackage:
- Oracle GlassFish Server Full Platform (glassfish-enterprise-full-profile)
This will download all required components and upgrade your installation to the equivalent of full platform Oracle GlassFish Server. Upgrading From Java EE 6 SDK Web Profile to Java EE 6 SDK Full Platform 1. Install Java EE 6 SDK Full Platform Artifacts
- Go to "Available Add-Ons" screen and install following full profile metapackage:
- Java EE 6 SDK Full Platform (javaee-sdk-full-profile)
This will download all required components and upgrade your installation to the equivalent of full platform Java EE 6 SDK. Setting Up Automatic Update Checks To Schedule an update check:
- Select the Preferences button.
- In the Updates section of the dialog, select "Automatically check for updates" checkbox and set a desired frequency of update check.
- Click OK button.
The Update Center notifier automatically checks for updates based on the schedule you defined in the Update Preferences. However, you can also check for an update at anytime using the Refresh button. If any updates become available, they are displayed in the Available Updates screen. More components are being added every day, so check the Update Center frequently.
|