Release Notes - GlassFish Server 4
Posted by on 25 October 2013 03:10 PM
|
|
Overview - GlassFish 4This Release Note covers all point releases for GlassFish 4 that are offered by eApps. Upgrade instructions are included. eApps recommends, as a best practice, to maintain a staging server where you can test software upgrades before moving them into production. This approach will allow you to minimize the risk of data loss and downtime of your production service when performing software upgrades. If necessary, you can rebuild your staging Virtual Server on demand so that you have a fresh installation to test on. If you need more information about setting up a Virtual Server for staging or testing, please contact eApps Sales. IMPORTANT: GlassFish 4 has an extensive list of new features and changes, and is the first application server to support Java EE 7 and this release has introduced significant new functionality to GlassFish. See the official GlassFish 4 Release Notes for a list of changes that may cause issues when upgrading: GlassFish 4 Release Notes. Please read this document carefully to understand all the changes in GlassFish 4. Upgrading to this version may significantly impact the operation of your database and applications. All GlassFish 4 documentation is located here: GlassFish 4 Documentation Before upgrading to GlassFish 4, please carefully read and review the official documentation related to this release. Failure to read, review, and test before upgrading may result in data loss and downtime for your customers. eApps Release Notes for GlassFish 4.1 How to upgrade Highlighted Features and Fixes in GlassFish 4.1Features
Fixes
The official Release Notes for GlassFish 4.1 are available here (please note that this is a PDF file) https://glassfish.java.net/docs/4.1/release-notes.pdf Highlighted Features in GlassFish 4.0Features
The official Release Notes for GlassFish 4.0 are available here (please note that this is a PDF file) - https://glassfish.java.net/docs/4.0/release-notes.pdf How to upgradeThe method you choose to upgrade GlassFish depends on which version of GlassFish you are currently on:
You will need to be able to connect to your Virtual Server using SSH and work from the command line as the root user. It is also advised that you back up your existing GlassFish applications and configurations before starting the upgrade process. These files are usually in the Before upgrading GlassFish make a backup of your database. Follow the instructions for your database: MySQL, MariaDB, or PostgreSQL. GlassFish 3 to GlassFish 4 (ISPmanager 4 only)Because GlassFish 4 is a major release, you cannot upgrade your existing GlassFish 3 installation in place. You will need to:
There are some additional steps that are specific to ISPmanager that are covered in that section. You will need to work from the command line as the root user to uninstall GlassFish 3. After you remove GlassFish, you will install it from the ISPmanager Control Panel. Before beginning the upgrade process, make a backup of your databases and your existing GlassFish applications and configurations. See the How to upgrade section for more information if necessary. To upgrade GlassFish in ISPmanager, connect to the Virtual Machine using SSH. Do the following as the root user.
Stop the glassfish service with the [root@eapps-example ~]# /etc/init.d/glassfish stop It may take a minute or so for the glassfish service to stop.
Use the [root@eapps-example ~]# mv /opt/glassfishv3 /opt/glassfishv3.orig
Remove GlassFish 3 with the [root@eapps-example ~]# yum remove glassfishv3
For ISPmanager 4 only, several commands have to be run to remove the existing GlassFish 3 configuration from the Control Panel so that the correct version will show after the new version is installed. Copy and paste these commands into your terminal window so that they are entered correctly. Enter one command at a time, run that command, and then go on to the next one.
[root@eapps-example ~]# sed -i.glassfish_v3_backup '/glassfishv3/,+6d' /usr/local/ispmgr/etc/ispmgr.conf
ISPmanager 4 - go to Server Settings > Applications. GlassFish 4 will be available to install. Note that the default password for the GlassFish Admin Console is shown in this screen. ISPmanager 5 - go to Settings > Features, and install GlassFish 4.
Once GlassFish 4 has been installed, you will need to redeploy your applications from the /opt/glassfishv3.orig directory. GlassFish 4.x to 4.y (newer version)In order to update to GlassFish 4.1 (or any newer version in the 4.x branch) you will already need to be on GlassFish 4. If you are on GlassFish 3 and ISPmanager 4, please see the upgrade instructions here first - GlassFish 3 to GlassFish 4 (ISPmanager 4 only). The update from GlassFish 4.0 to 4.1 uses the Before beginning the update process, make a backup of your databases and your existing GlassFish applications and configurations. See the How to upgrade section for more information if necessary. Here are the steps to update GlassFish 4.0 to GlassFish 4.1:
1. Install the required 32 bit compatibility dependencies If you are running a 64 bit Virtual Machine/Virtual Server (the majority of eApps customers are on a 64 bit OS), you will need to install several dependencies in order for the [root@eapps-example ~]# yum install -y zlib.i686 libstdc++.i686 glibc.i686 libidn.i686 krb5-libs.i686 2. Verify that you can log in to the GlassFish Admin Console and that your GlassFish applications are running Verify that you can successfully log in to the GlassFish Admin Console, located at http://eapps-example.com:4848 or http://IP_Address:4848 (substitute your own domain name for eapps-example.com). In the GlassFish Admin Console, note the current version of GlassFish. If you have forgotten the password for the GlassFish Admin Console, please contact eApps Support for assistance. Also verify that your GlassFish applications are running as expected. 3. Update the By default the [root@eapps-example ~]# cd /opt/glassfish4/bin 4. Run the Once you have set up the [root@eapps-example ~]# ./pkg list 5. Stop your GlassFish domain(s) Before doing the update, stop your GlassFish domain(s). NOTE - you are NOT stopping the glassfish service, you are stopping the application server part of GlassFish. To do this, you will need to become the [root@eapps-example bin]# su - gfish 6. Run the Once the GlassFish domain(s) are stopped, you can run the [root@eapps-example bin]# ./pkg image-update 7. Start your GlassFish domain(s) Once the update process is complete, switch back to the [root@eapps-example bin]# su - gfish 8. Update the RPM database to show the correct version of GlassFish After the GlassFish update is complete, you will need to update the system RPM database to show the correct version of GlassFish. This is a long command that needs to be on one line. The best suggestion is to copy and paste this command into a plain text editor (Notepad or TextEdit), and then into your command prompt.
[root@eapps-example ~]# mkdir /tmp/glassfish4_pkg; yum install -y yum-utils; yumdownloader --destdir=/tmp/glassfish4_pkg glassfish4; rpm -Uvh --justdb /tmp/glassfish4_pkg/glassfish4*; rm -rf /tmp/glassfish4_pkg 9. Log in to the GlassFish Admin Console and verify that your GlassFish applications are running Once the GlassFish domain(s) are running, log back in to the GlassFish Admin Console using your existing username and password. Note that the GlassFish version should be updated, and your GlassFish applications should now be running. | |
|