Oracle Glassfish Server Upgrade Guide Release 3.1.2 E24942-01
Total Page:16
File Type:pdf, Size:1020Kb
Oracle GlassFish Server Upgrade Guide Release 3.1.2 E24942-01 February 2012 This guide explains how to upgrade to Oracle GlassFish Server 3.1.2 from previous GlassFish Server and Sun GlassFish Enterprise Server product releases. Also included in this guide are instructions for upgrading configuration data and Java EE applications from binary-compatible earlier versions of this software to work with Oracle GlassFish Server 3.1.2. Finally, this guide describes compatibility issues that affect data and applications that are to be migrated. Oracle GlassFish Server Upgrade Guide, Release 3.1.2 E24942-01 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services. Contents Preface ................................................................................................................................................................. ix 1 GlassFish Server Upgrade Compatibility Issues Binary-Compatible Releases For GlassFish Server 3.1.2 .................................................................. 1-1 New Default Installation Directory...................................................................................................... 1-2 Changes to Group Management Service Settings ............................................................................. 1-2 Application Client Interoperability...................................................................................................... 1-2 Node Agent Support................................................................................................................................ 1-3 HADB and hadbm Command Support .................................................................................................. 1-3 Command Line Interface: The asadmin Command............................................................................ 1-3 Deprecated asadmin Subcommands................................................................................................ 1-4 Deprecated, Unsupported, and Obsolete Options........................................................................ 1-4 Applications That Use Java DB ............................................................................................................. 1-5 Applications That Use Persistence........................................................................................................ 1-6 HTTP Service to Network Service Changes........................................................................................ 1-7 Changes to Dotted Names ................................................................................................................ 1-7 Changes to asadmin Subcommands ................................................................................................ 1-8 Remapping of HTTP Service Attributes and Properties .............................................................. 1-8 New Network Service Elements and Attributes ........................................................................ 1-12 NSS Cryptographic Token Support................................................................................................... 1-15 2 Upgrading an Installation of Application Server or GlassFish Server Upgrade Overview ................................................................................................................................... 2-1 Upgrade Paths .................................................................................................................................... 2-2 Upgrade Terminology ....................................................................................................................... 2-2 Summary of Upgrade Tools and Procedures................................................................................. 2-3 Supported Releases for Upgrade to GlassFish Server 3.1.2 ......................................................... 2-6 Upgrading From Version 8.x or Older Product Releases............................................................. 2-6 Upgrading GlassFish Server Inside a Closed Network................................................................ 2-6 Performing a Side-By-Side Upgrade With Upgrade Tool ................................................................ 2-6 Upgrade Tool Summary.................................................................................................................... 2-7 Upgrade Tool Functionality ............................................................................................................. 2-7 To Upgrade From the Command Line Using Upgrade Tool ...................................................... 2-8 To Upgrade Using the Upgrade Tool Wizard ............................................................................ 2-11 Performing an In-Place Upgrade With the Update Center Tools................................................. 2-13 iii Update Center Tool Procedures.................................................................................................... 2-13 To Upgrade Using the Update Tool GUI..................................................................................... 2-13 To Upgrade Using the Software Update Notifier ...................................................................... 2-14 To Upgrade From the Command Line Using the pkg Utility................................................... 2-15 Upgrading Installations That Use NSS Cryptographic Tokens ................................................... 2-16 To Prepare for the Upgrade........................................................................................................... 2-16 To Perform Post-Upgrade Configuration.................................................................................... 2-17 To Upgrade PKCS#11 Hardware Tokens .................................................................................... 2-19 Upgrading Clusters and Node Agent Configurations ................................................................... 2-20 Overview of Cluster and Node Agent Upgrade Procedures.................................................... 2-20 To Correct the Configuration of a Node After an Upgrade...................................................... 2-21 To Re-Create a Cluster...................................................................................................................