Installing WebSphere 6.1, JAX-WS, EJB 3.0 and Updates to MyEclipse
MyEclipse provides support for Java EE technologies, like JAX-WS and EJB 3.0, that are available for WebSphere 6.1 in the form of feature packs but not installed out of the box. This guide walks you through installing WebSphere 6.1, feature packs and updates. In this guide, you will:
- Install WebSphere 6.1 and updates
- Disable the Windows system service that runs WebSphere at startup
- Install the web service and EJB feature packs and updates
- Manage your profile
1. System Requirements
To use WebSphere with MyEclipse, you must have a MyEclipse Blue or Bling subscription.
This tutorial was created with MyEclipse, WebSphere 6.1 and the associated Web Service and EJB Feature Packs (as well as 3 update packs) all on Windows.
If you are on Unix/Linux, please see the appropriate WebSphere docs to guide you through the exact programs to launch that are synonymous with the ones outlined in this Windows tutorial. If there are comparable executables on Linux, the instructions, except for the directory paths, will be very similar.
Note: There is no WebSphere installation available for Macintosh.
2. Prerequisites
This document looks fairly sizable because there are many steps covered in it and you need a handful of different software programs to complete it. Below is a list of what is used in this tutorial and potential alternatives to which you might have access.
- WebSphere Application Server 6.1 Install (We used a ZIP, CD/DVD should work as well)
- Latest WebSphere Update Installer (We used a ZIP, CD/DVD should work as well)
- WebSphere Application Server 6.1.0.x Update PAK (.PAK file)
- WebSphere 6.1 Web Service Feature Pack (We used a ZIP, CD/DVD should work as well)
- WebSphere 6.1 PK53084 Interim Fix PAK (.PAK file)
- WebSphere 6.1 Web Service Feature Pack Fix PAK (.PAK file)
- WebSphere 6.1 EJB 3.0 Feature Pack (We used a ZIP, CD/DVD should work as well)
These are the installers, packs and PAKs used for this tutorial. If you are reading this tutorial at a later date and additional Feature Packs or update PAKs are available, be sure that none of the additional updates interfere with the functions of the Feature Packs outlined in this document. Most likely, there will be no conflicts.
3. Install WebSphere 6.1
- If you downloaded WebSphere 6.1 in the form of a ZIP file, unzip it. If you have a CD or DVD, insert the disk.
- If the startup installer app doesn’t launch automatically from the CD/DVD and you need to launch it manually, the name of the executable is launchpad.exe. Double-click the .exe to run it.
- After Launchpad starts, click the first option to run the WebSphere Application Server installer.
Note: If for some reason the link doesn’t work (e.g., for operating system security restrictions), you can close Launchpad and launch the WebSphere Application Server installer by going into the WAS folder, and running install.exe.
After the installer has initialized, the Installation wizard screen appears: - For the most part, accepting the defaults through the installation is fine. When you reach the Administrative Security portion of the wizard, disable that feature by deselecting the checkbox. Click Next.
This tutorial is geared towards a development installation of WebSphere Application Server, which is why Administrative Security is not necessary. - You are presented with a summary of the installation actions to be performed. Click Next again to begin installation.
- After the installer is done, click Finish to open the First Steps console.
- Click the Installation verification link on the
First Steps console.
Websphere starts up and a console window appears, displaying the startup
log.
- Look for verification success messages at the end of the console log before the installation is verified. This can take a few minutes to display.
- After the installation is verified, close the console window, and click Stop the Server on the First Steps console. Another console log appears. Close the Console window when complete.
- Close the First Steps console. Your installation of WebSphere Application Server is complete.
Note: If your default browser is at a path that includes embedded spaces, you might have difficulty during installation. If this is the case, modify the firststeps.bat file (in the firststeps folder of the profile) to add double quotes around all instances of %FirstStepsDefaultBrowserPath%.
4. Disable the Windows System
Service
By default, when WebSphere Application Server is installed, the installer adds a Windows System Service that runs WebSphere automatically on boot up. This is typically necessary only on a production server, but on a development machine, starting an entire application server on startup not only slows down your startup, but it also conflicts with managing WebSphere from inside MyEclipse. Because of this, you should disable this system service so it doesn’t start on boot up.
- On Windows XP, click the Start Menu, then Control Panel and then Administrative Tools and Services to find the list of system services. On Vista and 7, open the Start Menu and type Services into the filter box to find the link.
- On the Services window, scroll down to the service named IBM WebSphere Application Server V6.1 and likely the computer node name after that. Right-click the service, and select Properties or double-click the entry to to open its service properties.
- Select Disabled or Manual from the Startup type drop-down, and click OK.
Note: If the service is still running, click Stop.
5. Install the WebSphere Update
Installer
WebSphere Application Server updates are installed using the WebSphere Update Installer to install PAK files representing updates for the server.
- To install the WebSphere Update Installer, either unzip the ZIP file you received or insert the CD or DVD into your computer. If the installer does not autostart for you, you might need to drill down to find it.Drill down into the UpdateInstaller folder to find installer.exe, and then double-click to run it.
The Welcome screen of the WebSphere Update Installer appears. - Click Next on each installer page, selecting the defaults. On the last page of the wizard, the installer asks if you want to launch the WebSphere Update Installer, but you have not yet downloaded the PAK files to install, so deselect the checkbox for now, and click Finish.
In this tutorial, you run the Update Installer twice, first to apply the WebSphere Application Server 6.1.0.0 -> 6.1.0.x patch, and then again to apply two separate patches (Interim patch and Web Service Feature Pack patch).
6. Apply WebSphere Update 6.1.0.x
This is the first update you will apply to WebSphere Application Server; it updates the server from version 6.1.0.0 to 6.1.0.x.
- To apply this PAK file, download it, and place it in the maintenance folder of the WebSphere Update Installer, as this is the default location in which the Update Installer looks. In this case, because you installed the Updater Installer into the C:Program FilesIBMWebSphereUpdateInstaller folder, the folder in which to place PAK files is as shown below.
- Run the Update Installer by double-clicking the update.exe file in the same folder, or by running it from the Start menu.
Important Note: If you installed WebSphere Application Server to the C:Program Files folder, due to revised permission control on Windows 7 and Vista, we recommend you right-click the Update Installer windows shortcut, and select Run as Administrator from the menu to ensure the update doesn’t fail due to permission problems. - After launching the Update Installer and clicking Next, you are prompted for the installation folder of WebSphere Application Server. By default the Update Installer should find and display it, but confirm that it is correct.
- Click Next to
install or
uninstall a maintenence package; in this case accept the default, which is
Install. Click Next to enter the folder
containing the maintenance package files (PAK files). You placed them in the maintenance folder below the Update Installer’s
installation folder, which is displayed by default.
- After changing the directory or confirming the default and clicking Next, the Update Installer displays the update packs it found and prompts you to confirm/select the ones you want to install. In this case, you should only have one update pack listed.
- Click Next, and the installer verifies the action you are about to perform and prompts you to confirm it. Click Next again and the update process begins.
Note: Given the size of the update package being applied, on a fast machine this can take 2-5 mins; on a slower machine it could take up to 10 mins or more to run. - After the update is finished, the Update Installer confirms the process is complete.
Important Note: If the update process fails at any point, you can try to re-run the Update Installer. It attempts to recover the failed update. If recovery fails, it is possible that a server resource is locked due to a hung server process or running server. Be sure the server is stopped and we recommend rebooting your computer before trying to recover the update process to make sure all open file handles are closed.
7. Install the Web Service Feature Pack
Now that WebSphere is updated to the latest version, you are ready to install the Web Services Feature Pack, which adds support for the Java EE Web Service Specification: JAX-WS.
- The Web Service Feature Pack is installed by way of a stand alone installer contained in the ZIP or on CD/DVD. Either unzip the ZIP file or insert the CD/DVD into your computer. If you are installing from CD/DVD, the installer should run automatically. Otherwise, and locate and run the installer.exe file in the WEBSV subfolder.
Important Note: If you installed WebSphere Application Server to the C:Program Files folder, due to revised permission control on Windows 7 and Vista, we recommend you right-click the Update Installer windows shortcut, and select Run as Administrator from the menu to ensure the update doesn’t fail due to permission problems. - In the installation wizard, click Next on each page, agreeing to the license, confirming your WebSphere Application Server installation path, and then installation begins.
- After installation is complete, the wizard displays a summary of everything installed:
- Click Finish, which opens the Profile Management tool. You don’t need the tool at the moment, so you can close it.
8. Apply Updates PK53084 Interim Fix
and Web Service Feature Pack
Now that you have updated WebSphere and added the Web Service Feature Pack, you need to apply two updates for the Web Service Feature Pack:
- 6.1.0.9-WS-WASWebSvc-IFPK53084.pak
- 6.1.0-WS-WASWebSvc-WinX32-FP0000013.pak
- Copy or move both of these PAK files into the maintenance folder used in Section 6.
- And as you did with the WebSphere update, run the Update Installer again by launching it from the Start menu.
Important Note: If you installed WebSphere Application Server to the C:Program Files folder, due to revised permission control on Windows 7 and Vista, we recommend you right-click the Update Installer windows shortcut, and select Run as Administrator from the menu to ensure the update doesn’t fail due to permission problems. - Click Next on each page of the wizard, confirming the WebSphere installation to upgrade, and so on. When you reach the page displaying the list of updates to apply, two are listed.
- At this point, only the 6.1.0.9-WS-WASWebSvc-IFPK53084.pak is available to select. Select and apply it first.
- Click Relaunch (or click Finish, and manually restart the Update Installer) and step through the wizard to the point where the only remaining update is listed, and select it. Click Next.
The updater applies the last update to WebSphere. - Click Finish to finalize the Web Service Pack Feature update.
9. Install the EJB 3.0 Feature Pack
The last step in this tutorial is installing the EJB 3.0 Feature Pack for WebSphere Application Server 6.1. Installation of this pack is identical to the Web Service Feature Pack installation.
- Either unzip the ZIP file, and run the install.exe or insert the CD/DVD into your computer and do the same (if the installer doesn’t automatically start up). The installer file is found in the EJB 3.0 folder.
When you run the installer, you see the Welcome page as with the other installers. - Click Next on each page of the wizard, confirming the WebSphere installation location and eventually agreeing on the Summary page, which begins the installation.
After installation is complete, the wizard displays a summary of the installation. - Click Finish, which opens the Profile Management tool. We cover Profile augmentation in the next section. Leave the Profile Management tool open and continue to the next section, or close it and reopen it at a later date to continue.
10. Manage Your Profile
Now that you have installed all updates and feature packs for WebSphere 6.1, you have two choices to begin working with the new technologies:
- Create a new profile based on the feature packs
- Augment an existing profile to add support for one of the feature packs
Note: At the time of this writing it does not seem possible to expose an EJB 3.0 bean as a JAX-WS web service as defined in the Java EE 5 specification for profiles with both the EJB 3.0 and JAX-WS feature packs installed. IBM should likely fix this in a future update.
10.1 Augmenting a Profile
- Launch the Profile Management Tool from the Start menu.
- Click Augment.
- Select the profile you want to augment, and click Next.
- Select the augmentation you want to apply to the profile, and click Next.
Note: At the time of this writing there seems to be a bug with WebSphere 6.1 such that existing profiles can only be augmented with the EJB 3.0 feature pack and not the JAX-WS feature pack. The only way to get JAX-WS support is to create a new profile based on that feature pack.
WebSphere makes the necessary changes (it may take a few minutes).
10.2 Creating a New Profile
- Launch the Profile Management Tool from the Start menu.
- Click Create, and click Next.
- Select the features on which you want to base the new profile, and click Next.
Note: At the time of this writing, you cannot augment an EJB 3.0 profile with JAX-WS. To create a profile that uses both feature packs, you must create a JAX-WS profile first, and then augment it with the EJB 3.0 feature pack.
This process generates a new profile for WebSphere based on the platform technology you selected. You can use the profile or augment it further with additional features.