• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

IBM WebSphere Tutorials

Welcome to IBM WebSphere Tutorials. The objective of these tutorials is to provide in depth understand of IBM WebSphere.

In addition to free IBM WebSphere Tutorials, we will cover common interview questions, issues and how to’s of IBM WebSphere.

Introduction

When using WebSphere Application Server Community Edition there may be several XML files that you need to create as part of deploying an application. WAS-CE has the concept of “deployment plans” which describe how to deploy a Java Enterprise application to WAS-CE. Since these files may be complex any errors in syntax can cause wasted time and effort trying to deploy an application to WAS-CE.

WAS-CE is a combination of several open source projects into a Java EE 5 compatible Java Application Server. The most notable project included in WebSphere Community Edition is the Apache Geronimo Project. WebSphere Community Edition is FREE to download and use, even in production systems. IBM provides several different support options, including fee-based support options.

Install Java

The first step to configuring an environment for WAS-CE is to install a Java environment. This section will provide steps to install the IBM Java installation provided with the WAS-CE download. You would follow similar instructions for other Java installations.

After starting the installation program and being presented with the normal screens for license acceptance and installation location, the IBM Java installation will present an option for which type of installation to perform. For this demonstration we will select the “Custom” installation to show and discuss various options.

Capture 184

One feature that you should leave selected is the installation of the “SDK”. This will provide various tools that WAS-CE may need to run tools and commands. Installing source code is optional.

Capture 185

The next option of interest is the option to install a “System JVM”. This would configure your system to automatically recognize and run Java programs using this Java installation. We will select “No” for this option and setup the system to recognize Java commands in a way that has less impact on the system and other Java programs.

Capture 186

After configuring these options you can finish running the installation program by clicking through the remaining screens. If you are presented with a screen asking about browser plug-ins you may again wish to choose these options based on whether your system already has Java installed and if this version will conflict with any Java Applets that run in your web browser.

Install WebSphere Community Edition

Now that you have a Java installation we will install the WebSphere Application Server Community Edition package.

The size of the setup program may be different depending on what type of download you used but the name should always be similar, something like ‘wasce_setup-2.0.0.1-win.exe‘.

When you start the setup program it will search for a Java version to install the server with. Check the following screen to be sure the correct version of Java is found that you wish to run with WAS-CE.

Capture 187

Note: If the installation does not find a Java installation or finds the wrong one you may need to change the value of your Windows PATH environment variable. If you used the default directory for the IBM JVM you would add something like ‘C:\Program Files\IBM\Java50\bin’ to the PATH. You can run a ‘java -version’ command from a command prompt to see the default Java installation that is located on the PATH.

Go through the normal screens of license acceptance and installation location until you come to the installation summary screen. Press the Install button to install WAS-CE.

Capture 188

Press the Finish button when the installation is complete.

Check WAS-CE Installation

Before configuring anything else it will be good to check that you can start and stop the WAS-CE server and troubleshoot any installation problems.

From the Windows Start menu select ‘Programs -> IBM WebSphere -> Application Server Community Edition -> Start the server’.

A separate command prompt window should open and begin starting the server. If you get a prompt from a firewall application select to ‘unblock’ the server. Once the server is finished starting you should see the output shown below.

Capture 189

Leave this command prompt open as it is running the server.

These core tutorials will help you to learn 
the fundamentals of IBM WebSphere.
For an in-depth understanding and practical experience,
explore Online IBM WebSphere Training.

From the Windows Start menu select ‘Programs -> IBM WebSphere -> Application Server Community Edition -> Administrative console‘.

At this point you will most likely get a prompt about the “certificate” of the server. This is because the server is trying to establish a secure connection but you do not recognize the validity of the certificate. Go ahead and accept the certificate to proceed to the administrative console.

Login to the administrative console using the default username of ‘system’ and default password of ‘manager’. You should be presented with the main page of the administrative console as shown below.
Capture 190

Once you have verified you can access the administrative console close the web browser.

From the Windows Start menu select ‘Programs -> IBM WebSphere -> Application Server Community Edition -> Stop the server‘. Enter the username of ‘system’ and the password of ‘manager’ to shutdown the server. The command prompt running the server should close automatically after several seconds.

Install and Configure Eclipse WTP

In this section you will install and configure your Eclipse WTP environment. You will setup a shortcut that allows you to avoid altering the configuration of things like the PATH variable just to run Eclipse.

If you downloaded the “All-in One” Eclipse WTP bundle you have a Zip file with all of the files required for Eclipse and the Eclipse WTP extensions. If you downloaded a different file or have a pre-existing installation of Eclipse you would have to follow other instructions to configure this.

To install the “All-in-One” package all you have to do is unzip the downloaded file to any location. This can be any location you desire although it is generally best to stay away from long file paths to the root of the Eclipse directory to avoid long path names within the subdirectories of Eclipse.

In this article we will extract Eclipse directly to the C: drive. This will create the ‘C:\eclipse’ directory which is the root of the Eclipse installation.

To run Eclipse all you have to do is run the ‘eclipse.exe’ application on a system configured to run Java programs. Since we avoided installing a “System JVM” we will create a shortcut with an option to point Eclipse to the Java installation, a setup that has much less potential for conflict with other programs.

Open a Windows Explorer window and navigate to the directory where you unzipped Eclipse.

Right click on the ‘eclipse.exe’ application and select ‘Send To -> Desktop (create shortcut)‘. Minimize all the windows so you can see the shortcut on the Desktop.

Right click on the new shortcut and select ‘Properties‘.

On the shortcut properties add a space after the current target and place the following option on the end. This will be slightly different depending on your Java installation folder.

-vm “C:\Program Files\IBM\Java50\bin\javaw.exe”

The final value of the ‘Target’ property should be something like:

C:\eclipse\eclipse.exe -vm “C:\Program Files\IBM\Java50\bin\javaw.exe”
Capture 191

You can also go to the ‘General’ tab and rename the shortcut if you want. When you settings appear as above press the OK button to accept the properties.

Update Eclipse WTP with WAS-CE Server Adapter

If you will be developing applications using Eclipse it will be useful to be able to easily deploy and test these applications on the WAS-CE server. IBM provides an Eclipse plug-in, called the WAS-CE “Server adapter” that can help you do this. This section will show you how to install and configure this adapter to connect Eclipse and WAS-CE.

Double-click on the shortcut you configured in the last section to start Eclipse WTP.

When a dialog appears asking for a workspace enter a directory that you want to use for a workspace and click the OK button.

Capture 192

Once Eclipse opens close the Welcome screen by clicking the ‘X’ in the tab near the top left.

Capture 193

Select ‘Window -> Open Perspective -> Other…

On the “Open Perspective” dialog select Java EE and press the OK button.
Capture 194

Along the bottom group of tabbed views, select the tab for ServersCapture 195

Wait a minute while the list is populated and then select “WASCE v2.0 Server Adapter” from the list and click the Next button.

Capture 196

Note: If you need to configure proxy information to connect to the internet to download the WAS-CE server adapter you can do this by selecting ‘Window -> Preferences’. Go to the ‘General -> Network Connections’ section to enter information on how to connect using your proxy server.

Accept the license terms and press the Finish button. Confirm that you wish to download and install the WASCE v2.0 server adapter.

After several minutes of downloading and installing the update Eclipse will restart. Enter the location of the workspace if needed.

You should still see the ‘Servers’ view in the ‘Java EE’ perspective. Right-click in the open area of the Servers view and select ‘New -> Server’.

Expand the ‘IBM’ group and select the ‘IBM WASCE v2.0 Server’ option. Press the Next button.

Capture 197

On the next screen use the Browse button to find the installation directory of WAS-CE. If you used the default installation directory this would be:

C:\Program Files\IBM\WebSphere\AppServerCommunityEdition

Click the Next button once the installation directory is noted.

Capture 198

On the next screen you can change some of the details for the server configuration. Since we used the standard configuration these details are fine and you can press the Next button.

Capture 199

The final screen can be used to deploy projects to the server. Since you do not have any if you use a new workspace you can simply click the Finish button to create the server definition.

Now that your server definition has been added to the Servers view you can use the toolbar buttons of the view to start/stop the server.

Capture 200

Note: The first time you start the server you may need to “unblock” the server process if a firewall is active.

Once you start the server various messages will appear in the Console view.

Once the server is started you can right click the server in the Servers view and select ‘Launch WASCE Console’ to open the administrative console in a browser inside of Eclipse.

If you need to change the properties of the server, like the username and password or ports, you can right click the server and select Open to open an editor to change the server definition.

Contact US

Need an Instructor Led Training, Contact Us





Support


Please leave a message and we'll get back to you soon.

I agree to be contacted via e-mail.