Sun GlassFish Enterprise Server v3 Prelude Release Notes

Chapter 1 Sun GlassFish Enterprise Server v3 Prelude Release Notes

The Sun GlassFishTM Enterprise Server v3 Prelude Release Notes contain important information for the Enterprise Server v3 Prelude release, including new Enterprise Server features and known issues with workarounds, if available.

Check this document prior to installing and setting up your software, and read this document before you begin using Sun GlassFish Enterprise Server v3 Prelude. Consult this document periodically to view the most up-to-date documentation.

Revision History

This section provides a record of changes inSun GlassFish Enterprise Server v3 Prelude Release Notes.

Table 1–1 Revision History

Date 

Description of Changes 

November 2009 

Added bug 6881540 to known issues. 

October 2009 

Added bug 6879701 to known issues. 

November 2008 

Revised JDK content. 

October 2008 

Initial release. 

What’s New in the Sun GlassFish Enterprise Server v3 Prelude Release?

Sun GlassFish Enterprise Server v3 Prelude provides a server for the development and deployment of Java Platform, Enterprise Edition (JavaTM EE platform) applications and web technologies based on Java technology.

Web applications that are developed by using Enterprise Server v3 Prelude can be deployed in earlier versions of the Enterprise Server, for example, GlassFish v2 Application Server.

The following new features of Enterprise Serverare described here:

Modular Design

Sun GlassFish Enterprise Server v3 Prelude has split the GlassFish code into modules to provide flexibility and improved runtime performance. The modular architecture is implemented on top of OSGi Alliance standards and enables reusability of Enterprise Server v3 Prelude modules as well as other modules.

This design change allows you to download and install only the modules that you require for the applications that you are deploying. Runtime is used only for applications that use it, and upgrades can be implemented without a complete system reinstallation. This change minimizes startup times, memory consumption, and disk space requirements.

The modular design provides the ability to do the following:

Support for Extending Enterprise Server

A new Sun GlassFish Enterprise Server v3 Prelude container system provider interface (SPI) defines interfaces that the container developer must implement so that Enterprise Server can call into it at appropriate times. This change enables Enterprise Server users to create custom application servers by adding administrative commands and graphical add-on components.

Enterprise Server also provides streamlined support of new module types, such as Ruby on Rails.

Support for Embedding Enterprise Server

Because Sun GlassFish Enterprise Server v3 Prelude is based on OSGi Alliance standards, OSGi modules can easily be embedded in any runtime based on OSGi. Enterprise Server itself can be embedded in other compatible modules or applications.

A non-modular version of Enterprise Server v3 Prelude with a reduced set of dynamic features can be embedded in a Java or native runtime.

Update Tool Integration

Update Tool is now embedded in the Sun GlassFish Enterprise Server v3 Prelude Administration Console. This tool provides automated updates, and facilitates managing add-on components and related applications that are available for extending Enterprise Server v3 Prelude functions.

The Administration Console provides access to the Update Tool page through the navigation tree. The Update Tool page provides tabs to display the following:

Integration of Update Tool in Administration Console enables administrators to extend and update Enterprise Server without the need to launch a standalone version of Update Tool by using the updatetool command.

The Update Tool is developed through the Update Center project. The Administration Console uses the Update Center 2.0 API to display a list of available components, versions and dates. For information about Update Center 2.0, see the Release Notes for Update Center 2.0 .

Support for Scripting Languages

To facilitate rapid application development and deployment, Sun GlassFish Enterprise Server v3 Prelude supports a variety of scripting languages. The use of scripting languages enables Enterprise Server to be applied beyond developments that are centered on Java technology. Supported scripting languages include the following:

Support for these scripting languages is provided by components that are available through Update Tool.

Web Tier Extensions

Sun GlassFish Enterprise Server v3 Prelude supports the web tier of the Java EE specification to enable the deployment of web applications. Enterprise Server implements the following Java EE technology standards:

Building on these standards, Enterprise Server v3 Prelude provides a number of extensions, including the following:

Hardware and Software Requirements

This section lists the requirements that must be met before installing the Sun GlassFish Enterprise Server v3 Prelude product.

Supported Platforms

Sun GlassFish Enterprise Server v3 Prelude requires a minimum of 200 Mbytes of free disk space to install, and 100 Mbytes of free memory to run.

This following table lists supported operating systems and provides minimum memory, recommended memory, minimum disk space, recommended disk space, and Java virtual machine for each.

Table 1–2 Supported Operating Systems

Operating System 

Minimum Memory 

Recommended Memory 

Minimum Disk Space 

Recommended Disk Space 

Java Virtual Machine 

SolarisTM Operating System

Solaris 10 (SPARCTM platform)

512 MB 

512 MB 

250 MB free 

500 MB free 

J2SETM 5.0

Java SE 6 

Solaris 10 (x86 platform) 

512 MB 

512 MB 

250 MB free 

500 MB free 

J2SE 5.0 

Java SE 6 

OpenSolarisTM

512 MB 

512 MB 

250 MB free 

500 MB free 

J2SE 5.0 

Java SE 6 

Linux

RedHat Enterprise Linux 5.0 

512 MB 

1 GB 

250 MB free 

500 MB free 

J2SE 5.0 

Java SE 6 

RedHat Enterprise Linux 4.0 

512 MB 

1 GB 

250 MB free 

500 MB free 

J2SE 5.0 

Java SE 6 

SuSE Linux Enterprise Server 10 

512 MB 

1 GB 

250 MB free 

500 MB free 

J2SE 5.0 

Java SE 6 

Ubuntu Linux 8.0.4 

512 MB 

1 GB 

250 MB free 

500 MB free 

J2SE 5.0 

Java SE 6 

Windows

Windows XP Professional SP2 

1 GB 

2 GB 

500 MB free 

1 GB free 

J2SE 5.0 

Java SE 6 

Windows Vista (Business Edition) 

1 GB 

2 GB 

500 MB free 

1 GB free 

J2SE 5.0 

Java SE 6 

Windows 2008 

1 GB 

2 GB 

500 MB free 

1 GB free 

J2SE 5.0 

Java SE 6 

MacOS

MacOS X 10.4 and 10.5 

1 GB 

2 GB 

500 MB free 

1 GB free 

J2SE 5.0 

Java SE 6 

On UNIX® platforms, you can check your operating system version by using the uname command. Disk space can be checked by using the df command.


Note –

Use the NTFS file system rather than FAT or FAT32 when running the Enterprise Server on any Microsoft Windows platform.


System Virtualization Support

System virtualization is a technology that enables multiple operating system (OS) instances to execute independently on shared hardware. Functionally, software deployed to an OS hosted in a virtualized environment is generally unaware that the underlying platform has been virtualized. Sun performs testing of its Sun Java System products on select system virtualization and OS combinations to help validate that the Sun Java System products continue to function on properly sized and configured virtualized environments as they do on non-virtualized systems. For information about Sun support for Sun Java System products in virtualized environments, see System Virtualization Support in Sun Java System Products.

Required Disk Space

Your temporary directory must have a minimum of 35 MB of free space for the installation of Enterprise Server v3 Prelude.

Required Free Ports

You must have seven unused ports available.

The installation program automatically detects ports that are in use and suggests currently unused ports for the default settings.

The initial default port assignments are listed in the following table. If these default port numbers are in use, the installation program assigns a randomly selected port number from the dynamic port range. The selected port number might not be the next available port number.

Table 1–3 Default Port Assignments for Enterprise Server v3 Prelude

Port Number 

Usage 

4848 

Administration Console 

8080 

HTTP 

8081 

HTTPS 

8686 

Pure JMX clients 

3700 

IIOP 

3820 

IIOP/SSL 

3920 

IIOP/SSL with mutual authentication 

Important Patch Information

Solaris Patch Requirements

If you are using the Solaris 10 operating system, you must apply the appropriate patch for your platform as listed in the following table.

Platform 

Patch Number 

SPARC platform 

119963-08  

x86 platform 

119964-08 

These patches are available from the SunSolveSM program web site. In the Patch Finder section, type the patch number in the text box, and click the Find Patch button.

If you are using the Solaris 10 OS (x86, SPARC platforms), ensure that the Sun recommended patch cluster is applied. This patch cluster is available from the SunSolve program web site. In the Downloads section, click the Recommended and Security Patches link. When the license agreements is displayed, click the Agree button.

Required JDK Version

Installation of Sun GlassFish v3 Prelude Enterprise Server requires JDKTM release 5 or JDK release 6.

The following binary files that are used with Enterprise Server must come from the JDK software, not the Java Runtime Environment (JRETM) software:

To meet this requirement, ensure that the bin directory of the JDK software is at the start of your path.

Supported JDBC Drivers and Databases

The following table lists databases and drivers that meet the Java EE compatibility requirements. All supported configurations of the Sun GlassFish Enterprise Server v3 Prelude must contain at least one combination of database and driver from this table, such as the Java DB and driver. In addition, the Enterprise Server is designed to support connectivity through Java DataBase Connectivity (JDBCTM) technology to any additional database management system (DBMS) with a corresponding driver that supports the JDBC API (JDBC driver).

Table 1–4 Java EE-Compatible JDBC Drivers

JDBC Driver Vendor 

JDBC Driver Type 

Supported Database Server 

MySQL Connector/J Driver 5.0 

Type 4 

MySQL 5.0 

JavaDB 10.2.0 

Type 4 

Derby 10.2 

Oracle 10G 

Type 4 

Oracle 10g 

In general, the Sun GlassFish Enterprise Server v3 Prelude supports all JDBC drivers that meet the Java EE specification.

Supported Browsers

The following table lists supported browsers and versions.

Table 1–5 Supported Web Browsers

Browser 

Version 

Mozilla 

1.7.12 

Internet Explorer 

6.0 and 7.0 

Firefox 

2.o

SeaMonkey 

1.0 

Known Issues

This section lists the following known issues with Enterprise Server:

Registration Not Available During Red Hat Linux Installations (Issue 6058)

Description

Product Registration through installation is not supported when Open JDK is used in Red Hat Linux operating system.

For more information, see Issue report.

Workaround

    To register your installation:

  1. During installation on this environment, select the Skip Registration option.

  2. Use the Administration Console or Update Center to register your installation.

Start and Stop Menu Items Launch the Administration Console in Minimized State (Issue 5100)

Description

The property Run field for the Start and Stop Application Server menu items is specified as Normal to open the Administration Console in a maximized state, but these menu items launch the Administration Console as though the property were set to Minimized.

For more information, see Issue report.

Workaround

You must maximize the Administration Console manually.

Start Menu Items Do Not Display on Windows Vista Installations (Issue 5087)

Description

After a Windows Vista installation is completed, the Start menu program group has these problems:

For more information, see Issue report.

Workaround

You must log out and log back in to display the Start menu item program group.

The delete-domain Command Does Not Check That Domain is not Running (Issue 6196)

Description

The delete-domain command does not verify whether the domain to be removed is running. If the domain to be removed is running when the delete-domain command runs, the command should fail and should notify the user to stop the domain.

For more information, see Issue report.

Workaround

Before the delete-domain command is executed, run the stop-domain command.

Windows Installation Directory Cannot be Removed When Update Tool Notifier is Running (Issue 5789)

Description

If you try to delete the glassfishv3-prelude directory from c:\Program files when Update Tool Notifier is running, you receive this error message: Error deleting File or Folder: Cannot delete msvcp71: Access is denied.

For more information, see Issue report.

Workaround

Before you delete the installation directory, stop Update Center Notifier by closing the window for this utility.

The uninstall.sh Command Does Not Delete All Files (Issue 6032)

Description

The message WARNING: Cannot delete file filename filename is generated following execution of uninstall.sh command.

For more information, see Issue report.

Workaround

Examine the contents of your directories to verify that the files are removed. If files remain, remove them manually. If you are removing a UNIX installation, check for and delete hidden directories.

The uninstall.exe Command to Does Not Remove the Desktop Shortcut (Issue 5856)

Description

The Desktop shortcut for Enterprise Server v3 Prelude remains in the Programs menu, and an error message is written to the log file after as-install/uninstall.exe, where as-install is the Enterprise Server installation directory.

For more information, see Issue report.

Workaround

Overwrite the entry by installing Enterprise Server v3 Prelude again, or manually remove the shortcut from the list.

File Permissions on Domain /applications Directory Can Cause NullProcessException (Issue 6545)

Description

If a domain's /applications directory restricts access, or if you use directory deployment from a restricted directory, the server cannot read the files in the expanded directory. A NullProcessException error occurs during deployment.

For more information, see Issue report.

Workaround

Change the file access settings for such directories yo grant the server permission to read the directory contents.

The Windows Installation Log File is not Readable (Issue 4881)

Description

The time-stamp-install.log file cannot be read, because all lines written to the file are concatenated into a single long string.

For more information, see Issue report.

Workaround

Use a different editor, and manually open the installation log file created under the %TEMP% directory.

Running updatetool Command to Start Update Center Produces a Segmentation Violation (Issue 5514)

Description

After Update Center is installed on a Solaris 10 x86 system, using the updatetool to start Update Center fails due to a segv error.

For more information, see Issue report.

Workaround

Use the Enterprise Server Administration Console to access Update Center.

For Solaris 10 x86 operating system installations, install patch 119964-08 and patch 125212-01.

Client VM Is Not Supported on Windows AMD64 (Issue 6395)

Description

By default Enterprise Server uses client VM to achieve best startup and deployment performance. If you use a JDK that includes only server VM, you must edit the domain.xml configuration file and remove the client line.

For more information, see Issue report.

Workaround

Ensure that Client JVM is supported on your platform/operating system. If it is not supported, edit the domain.xmlfile to remove the line <jvm-options>–client<jvm-options>. In this case, JVM ergonomics will choose the appropriate kind of VM for given platform.

For more information about platform support, see Ergonomics in the 5.0 Java Virtual Machine.

Anonymous User Has Administrator Privileges After a User Is Created (Issue 6481)

Description

Anonymous user is the default user created for the default domain. If another administrative user is added to the default domain, the anonymous user definition remains available for use. Any user can use the privileges of the anonymous user to perform Enterprise Server management tasks. This access can create a security problem for some development and production deployments.

For more information, see Issue report.

Workaround

Delete the anonymous user manually.

Access to Statistics For New Virtual Servers Requires Server Restart (Issues 6238 and 6422)

Description

Monitoring statistics about newly added virtual servers are available only after the server is restarted.

For more information, see the reports for Issue 6238 and Issue 6422.

Workaround

After adding a virtual server, restart the server to view monitoring data for the virtual server.

No Support for Logging Configuration is Provided in the Administration Console or at the Command Line (Issue 6630)

Description

No Support for logging configuration is provided in the Administration Console or at the command line.

For more information, see Issue report.

Workaround

Use a plain text editor to edit the as-install/domains/domain1/config/logging.properties file. For more information, see Configuring Logging in Sun GlassFish Enterprise Server v3 Prelude Administration Guide.

Attempt to Use Administration Console to Create a Connection Pool Fails Even if the Driver Is Present (Issue 6671)

Description

In some circumstances, an attempt to use the Administration Console to create a JDBC connection pool fails even if the driver is present. When this failure occurs, the Administration Console returns a server error such as HTTP Status 500.

For more information, see Issue report.

Workaround

Repeat the attempt to create the JDBC connection pool, specifying the data-source class name explicitly. You can use either the Administration Console or the asadmin utility for this task.

The required class name depends on the resource type. For example, for the MySQL database, the required class name for each resource type is as shown in Table 1–6.

For other database drivers, consult the documentation from the database driver vendor.

Table 1–6 Resource Types and Data-Source Class Names for the Driver for the MySQL Database

Resource Type 

Data-Source Class Name 

javax.sql.ConnectionPoolDataSource

com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource

javax.sql.DataSource

com.mysql.jdbc.jdbc2.optional.MysqlDataSource

javax.sql.XADataSource

com.mysql.jdbc.jdbc2.optional.MysqlXADataSource


Example 1–1 Creating a JDBC Connection Pool by Using the asadmin Utility

This example shows how to create a JDBC connection pool that is named mysql-pool for the MySQL database. The vendor-supplied JDBC data-source class is com.mysql.jdbc.jdbc2.optional.MysqlDataSource. This class implements the javax.sql.DataSource interface.


asadmin create-jdbc-connection-pool 
--datasourceclassname=com.mysql.jdbc.jdbc2.optional.MysqlDataSource
--restype=javax.sql.DataSource
--property="user=DBUSER:password=DBPASSWORD:url=jdbc\\:mysql\\://DB_HOSTNAME\\:3306/DATABASE_NAME"
mysql-pool

ProcedureTo Specify the Data-Source Class Name Explicitly When Using Administration Console

Perform this workaround only if an attempt to use the Administration Console to create a JDBC connection pool returns a server error such as HTTP Status 500. Use this workaround with the instructions for creating a JDBC connection pool in the Administration Console online help.

  1. In the step for selecting a database vendor, do not select a vendor from the Database Vendor drop-down list.

    You perform this step on the New JDBC Connection Pool (Step 1 of 2) page.

    As a result of not selecting a vendor, the data source class name in the New JDBC Connection Pool (Step 2 of 2) page will not be filled in for you.

  2. In the step for specifying the data-source class name, type the required class name in the Datasource Classname field.

    You perform this step on the New JDBC Connection Pool (Step 2 of 2) page.

    The required class name depends on the resource type that is selected from the Resource Type drop-down list. For example, for the MySQL database, the required class name for each resource type is as shown in Table 1–6.

    For other database drivers, consult the documentation from the database driver vendor.

  3. In the step for specifying additional properties, fill in the property table with the required property names and values.

    You perform this step on the New JDBC Connection Pool (Step 2 of 2) page.

    The required property names and values depend on the data-source class.

Option Missing From Help Information for create jbdc-connection-pool (Issue 5766)

Description

The option --validateatmostonceperiod=interval is missing from the Synopsis section and the Options section of the help information for the create jbdc-connection-pool command.

The description of this option is as follows:

--validateatmostonceperiod

Specifies the time interval in seconds between successive request to validate a connection at most once. Setting this attribute to an appropriate value minimizes the number of validation requests by a connection.

The default value is 0, which specifies that the connection is never validated.

For more information, see Issue report.

Workaround

For complete information about the create jbdc-connection-pool, see the create-jdbc-connection-pool(1) man page.

In Bourne shell, all DAS, node agent, and instance processes exit when console window is closed. (6879701)

Description

If you log in as root with the Bourne shell (/bin/sh) and run asadmin commands, then log out of the console window, all the domain administration server (DAS), node agent, and instance processes are killed. This is because in the Bourne shell all child terminals inherit the TTY by default, so when the terminal is logged out, all child processes are killed too.

Workaround

Before running any asadmin commands, do the following:

  1. Log in to the server.

  2. Log in to the server.


    # exec /bin/ksh
    
  3. In K shell, run all the asadmin commands to bring up the DAS, node agents, and instances.

Operand is missing from the man page example for ping-connection-pool. (6881540)

The example in the man page is missing the operand at the end of the command. An error occurs if the command is entered as shown in the example. Correct example is:


asadmin> ping-connection-pool --user admin1
--passwordfile pwordfile sampleConnectionPool

Restrictions

This section describes the following Sun GlassFish v3 Prelude Enterprise Server restrictions:

Upgrades

An upgrade scenario from an earlier installation into Enterprise Server v3 Prelude is not supported. The command-line interface and configuration are compatible.

application-root Attribute in the domain.xml File

You should not modify the default setting in the domain.xml file for the application-root attribute.

The domain element's application-root attribute In the domain.xml file is intended to specify where the server will expand application archives when the user deploys them.

Currently, not all places in Enterprise Server v3 Prelude that should use this attribute do so. Some uses of the attribute assume that applications are to be expanded in ${com.sun.aas.instanceRoot}/applications.

Unsupported Options in asadmin Commands

The help for asadmin commands describes some options that are not supported by Sun GlassFish Enterprise Server v3 Prelude. For example:

If you specify an unsupported option, a syntax error does not occur. Instead, the command runs successfully, and the unsupported option is silently ignored.

Multi-Mode Operation

Examples in the help for asadmin commands show the commands in multi-mode operation. Multi-mode operation is not supported by Sun GlassFish Enterprise Server v3 Prelude. All asadmin commands must be typed separately on the operating system command line.

Security

Secure mode (with a security manager) is not supported.

Enterprise Server Documentation Set

The following table provides titles and short descriptions of books in the Enterprise Server documentation set.

Table 1–7 Books in the Enterprise Server Documentation Set

Book Title 

Description 

Release Notes

Provides late-breaking information about the software and the documentation. Includes a comprehensive, table-based summary of the supported hardware, operating system, Java Development Kit (JDK), and database drivers. 

Quick Start Guide

Explains how to get started with the Enterprise Server product. 

Installation Guide

Explains how to install the software and its components. 

Application Deployment Guide

Explains how to assemble and deploy applications to the Enterprise Server and provides information about deployment descriptors. 

Developer’s Guide

Explains how to create and implement Java Platform, Enterprise Edition (Java EE platform) applications that are intended to run on the Enterprise Server. These applications follow the open Java standards model for Java EE components and APIs. This guide provides information about developer tools, security, and debugging. 

Add-On Component Development Guide

Explains how to use published interfaces of Enterprise Server to develop add-on components for Enterprise Server. This document explains how to perform only those tasks that ensure that the add-on component is suitable for Enterprise Server.

RESTful Web Services Developer’s Guide

Explains how to develop Representational State Transfer (RESTful) web services for Enterprise Server. 

Getting Started With JRuby on Rails for Sun GlassFish Enterprise Server

Explains how to develop Ruby on Rails applications for deployment to Enterprise Server. 

Getting Started With Project jMaki for Sun GlassFish Enterprise Server

Explains how to use the jMaki framework to develop Ajax-enabled web applications that are centered on JavaScriptTM technology for deployment to Enterprise Server.

Roadmap to the Java EE 5 Tutorial

Explains which information in the Java EE 5 Tutorial is relevant to users of the v3 Prelude release of the Enterprise Server.

Java EE 5 Tutorial

Explains how to use Java EE 5 platform technologies and APIs to develop Java EE applications. 

Java WSIT Tutorial

Explains how to develop web applications by using the Web Service Interoperability Technologies (WSIT). The tutorial focuses on developing web service endpoints and clients that can interoperate with Windows Communication Foundation (WCF) endpoints and clients. 

Administration Guide

Explains how to configure, monitor, and manage Enterprise Server subsystems and components from the command line by using the asadmin(1M) utility. Instructions for performing these tasks from the Administration Console are provided in the Administration Console online help.

Administration Reference

Describes the format of the Enterprise Server configuration file, domain.xml.

Troubleshooting Guide

Describes common problems that you might encounter when using Enterprise Server and how to solve them. 

Reference Manual

Provides reference information in man page format for Enterprise Server administration commands, utility commands, and related concepts. 

How to Report Problems and Provide Feedback

If you have problems with Sun GlassFish Enterprise Server v3 Prelude, provide feedback through one of the following mechanisms:

Additional Resources

Useful information can be found at the following locations:

Third-Party Web Site References

Third-party URLs are referenced in this document and provide additional, related information.


Note –

Sun is not responsible for the availability of third-party Web sites mentioned in this document. Sun does not endorse and is not responsible or liable for any content, advertising, products, or other materials that are available on or through such sites or resources. Sun will not be responsible or liable for any actual or alleged damage or loss caused by or in connection with the use of or reliance on any such content, goods, or services that are available on or through such sites or resources.


Accessibility Features

To obtain accessibility features that have been released since the publication of these media, consult Section 508 product assessments available from Sun upon request to determine which versions are best suited for deploying accessible solutions. Updated versions of applications can be found at http://sun.com/software/javaenterprisesystem/get.html.

For information on Sun's commitment to accessibility, visit http://sun.com/access.