This topic provides instructions that lead you through the procedures to successfully install GlassFish ESB using a command-line interface (CLI). This interface allows you to interact with software or an operating system using a terminal, remote shell, or command prompt.
Prior to attempting an installation, read Planning for GlassFish ESB Installation. It provides pertinent information such as supported platforms, operating system limitations, and parameter definitions. If you have any questions or problems, go to the GlassFish ESB web site at http://www.glassfish-esb.org.
To access all the GlassFish ESB documentation in HTML format, go to the GlassFish ESB web site at http://wiki.open-esb.java.net/Wiki.jsp?page=GlassFishESBDocs.
What You Need to Know
This topic contains conceptual information about the installation.
What You Need to Do
These topics contain the procedures for installing a Java Development Kit (JDK) and GlassFish ESB.
Before beginning the installation, read Planning for GlassFish ESB Installation, which contains information that is necessary for you to complete a successful install of GlassFish ESB such as supported platforms, operating system limitations, and parameter definitions. You can use a command–line installation script on any of the supported operating systems by first generating the .xml state file and then invoking the installation script. The command–line installation performs a complete installation of GlassFish ESB.
Complete Command Line Interface Installation
The following software is installed:
NetBeansTM IDE 6.1 ML
IDE is an acronym for an integrated development environment. It consists of a number of components, such as a compiler, source code editor, build tools, debugger, browser, object inspector, class hierarchy diagram, and so on. These components can be used when performing object-oriented software development. The integrated tools can also be used to build a graphical user interface (GUI).
GlassFish v2 Update Release 2 (UR2)
Open ESB core components
Java Business Integration (JBI) service engines
Java Business Integration (JBI) binding components
Java Business Integration (JBI) component tooling
The process also installs the Sun Uninstallation software.
GlassFish ESB does not support spaces in the installation directory path.
You must have the JDKTM (Java Development Kit) software installed and JAVA_HOME set prior to installing GlassFish ESB or the Installer will halt the installation. See Installing the JDK Software and Setting JAVA_HOME for details.
If you do not already have the JDK software installed or if JAVA_HOME is not set, the GlassFish ESB installation will not be successful. The following tasks provide the information you need to install the JDK software and set JAVA_HOME on UNIX or Windows systems.
The following list provides the GlassFish ESB JDK requirements by platform.
JDK5: At least release 1.5.0_14
JDK6: At least release 1.6.0_03
JDK5: At least release 1.5.0_14
JDK6: At least release 1.6.0_03
JDK5: The latest 1.5 release supported by Apple
JDK5: At least release 1.5.0_14
JDK6: At least release 1.6.0_03
The GlassFish ESB Installer does not support JDK release 1.6.0_04 in the 64–bit version on the Solaris SPARC or AMD 64–bit environments.
Install the JDK software.
Set JAVA_HOME.
Change the permissions to enable you to run the GlassFish ESB Installer.
chmod 755 JavaCAPS.bin
Install the JDK software.
Set JAVA_HOME:
In order to run a silent command line installation, you must first do a full GUI installation. The GUI installer generates a state file that provides all of the user-entered parameters that the installer requires. This section provides a procedure for generating the state file for silent installation. After you generate the silent installation state file, note its location so that you can reference it when you launch the silent installation.
After creating a configuration properties file, you are ready to perform a silent CLI installation. For more information, see Installing GlassFish ESB Silently Using CLI.
From the command line, run the GlassFish ESB GUI installer with the --record option, specifying where you want to save the state file. For example:
glassfishesb-full-installer.sh --record /home/jdoe/glassfishesb-state.xml
For detailed information about running the GUI installer, see Using the GlassFish ESB Installation GUI.
When the GUI installer is finished, run the GlassFish ESB uninstaller and remove the GUI installation.
For detailed information about running the GlassFish ESB uninstaller, see Uninstalling GlassFish ESB.
Using a text editor or XML editor, open the state file and verify that the installation properties correspond to those that you entered during the GUI installation. Here is an example of the .xml state file:
Ensure that items such as usernames, passwords, filepaths, and so on are correct, save any changes, and close the state file.
<?xml version="1.0" encoding="UTF-8"?> <state xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="state-file.xsd"> <properties> <property name="street.address.windows-x86.en_US"/> <property name="country.windows-x86.en_US">United States</property> <property name="company.windows-x86.en_US"/> <property name="password.windows-x86.en_US"/> <property name="email.address.windows-x86.en_US"/> <property name="first.name.windows-x86.en_US"/> <property name="last.name.windows-x86.en_US"/> <property name="register.choice.windows-x86.en_US">skip</property> <property name="zip.code.windows-x86.en_US"/> <property name="city.windows-x86.en_US"/> </properties> <components> <product platform="windows linux solaris-sparc solaris-x86 macosx-ppc macosx-x86" status="to-be-installed" uid="nb-base" version="6.1.0.0.200809090101"> <properties> <property name="start.menu.shortcut.location.windows-x86.en_US">all.users</property> <property name="desktop.shortcut.location.windows-x86.en_US">all.users</property> <property name="jdk.location.windows-x86.en_US">C:\Program Files\Java\jdk1.6.0_07</property> <property name="installation.location">$N{install}/netbeans</property> <property name="installation.location.windows">$N{install}/netbeans</property> <property name="installation.location.macosx">$N{install}/netbeans.app</property> <property name="installation.location.windows-x86.en_US">C:\GlassFishESB\netbeans</property> </properties> </product> <product platform="windows linux solaris-sparc solaris-x86 macosx-ppc macosx-x86" status="to-be-installed" uid="nb-soa" version="6.1.0.0.80909"> <properties> <property name="installation.location.windows-x86.en_US">C:\GlassFishESB\netbeans</property> </properties> </product> <product platform="windows" status="to-be-installed" uid="glassfish" version="9.1.0.4.20080411"> <properties> <property name="admin.port.windows-x86.en_US">4848</property> <property name="jdk.location.windows-x86.en_US">C:\Program Files\Java\jdk1.6.0_07</property> <property name="http.port.windows-x86.en_US">8080</property> <property name="https.port.windows-x86.en_US">8181</property> <property name="password.windows-x86.en_US">adminadmin</property> <property name="installation.location">$N{install}/glassfish</property> <property name="username.windows-x86.en_US">admin</property> <property name="installation.location.windows-x86.en_US">C:\GlassFishESB\glassfish</property> </properties> </product> <product platform="windows linux solaris-sparc solaris-x86 macosx-ppc macosx-x86" status="to-be-installed" uid="openesb" version="2.0.0.80909.0"> <properties> <property name="password.windows-x86.en_US">adminadmin</property> <property name="username.windows-x86.en_US">admin</property> <property name="installation.location.windows-x86.en_US"> C:\GlassFishESB\glassfish\addons\jbi-components</property> </properties> </product> <product platform="windows linux solaris-sparc solaris-x86 macosx-ppc macosx-x86" status="to-be-installed" uid="jbicomponents" version="2.0.0.80909.1"> <properties> <property name="password.windows-x86.en_US">adminadmin</property> <property name="username.windows-x86.en_US">admin</property> <property name="installation.location.windows-x86.en_US"> C:\GlassFishESB\glassfish\addons\jbi-components</property> </properties> </product> </components> </state>
You can use the GlassFish ESB command-line installation script to perform a complete installation silently. A silent installation means that you will not interact with the Installer, nor will you see the process unless you open the directory to which you are installing.
In order to perform a silent installation, you must first generate the .xml state file. For more information, see Generating the State File for Silent Installations.
GlassFish ESB does not support spaces in the installation directory path.
Plan your installation by reading Planning for GlassFish ESB Installation, which contains information necessary for you to complete a successful installation of GlassFish ESB such as supported platforms, operating system limitations, and parameter definitions.
Install the JDK software and set JAVA_HOME. For more information, see Installing the JDK Software and Setting JAVA_HOME
Generate the .xml state file. For more information, see Generating the State File for Silent Installations.
Download the installation executable file from the GlassFish ESB Downloads page: https://open-esb.dev.java.net/Downloads.html
If you have not done so already, copy the .xml state file to the directory where you are going to install GlassFish ESB.
For more information, see Generating the State File for Silent Installations.
Extract the installation executable file to the directory where you are going to install GlassFish ESB.
Windows: glassfishesb-full-installer-windows-yyyydddd.exe
Solaris Sparc glassfishesb-full-installer-solaris-sparc-yyyydddd.sh
Solaris —X86 glassfishesb-full-installer-solaris-x86-yyyydddd.sh
Linux glassfishesb-full-installer-linux-yyyydddd.sh
Mac OSX X86 glassfishesb-full-installer-macosx-x86-yyyydddd.command
Mac OSX PPC glassfishesb-full-installer-macosx-ppc-yyyydddd.command
Go to the installation directory where you copied the configuration properties file and the installation executable file and execute the file.
Windows: glassfish-full-installer-windows-yyyddd.exe --silent --state \filepath\state_file_name.xml
Solaris and Linux: glassfish-full-installer-platform-yyyddd.sh --silent --state /filepath/state_file_name.xml
Mac OSX: glassfish-full-installer-macosx-cpu_type-yyyddd.command --silent --state /filepath/state_file_name.xml
GlassFish ESB is installed in the directory you specified.
To start NetBeans, after the initial installation, navigate to the GlassFish ESB install directory or to the directory where the component is installed that you want to start. Run the appropriate command.
Component |
From GlassFish ESB Installation Directory |
---|---|
NetBeans IDE |
Windows GUI: Double-click the NetBeans desktop icon or select NetBeans from the Start menu Mac OSX GUI: Select the NetBeans icon in the Dock or double-click NetBeans.app in the Applications directory Windows CLI directory: install-directory\netbeans.exe Solaris and Linux directory: install-directory/netbeans/bin |