Configuring Eclipse and the WebSphere Application Server Liberty Profile server
After you deploy the IBM® Intelligent Operations Center installation files and install the database, configure Eclipse.
About this task
Note:
- In the following procedure, change the server configuration on the Design tab. Do not edit any settings on the Source tab.
- If the settings specified in this procedure are entered incorrectly, or left as the defaults, Java errors will result.
Procedure
- To start Eclipse,
either open a command prompt and enter the following command,
or create a desktop shortcut for the command:
C:\home\ibmadmin\eclipse\eclipse.exe - At the prompt, select the following workspace: C:\home\ibmadmin\workspaces\spf
- Configure the server:
- In Eclipse, in the Servers view, right-click in any open space and then click New > Server.
- Either enter or select the following values,
and then click Next:
- If you installed IBM Intelligent Operations Center V5.2.1, for Server type select IBM > Liberty Server.
- If you installed IBM Intelligent Operations Center V5.2.0, for Server type select IBM > WebSphere Application Server Liberty.
- For Server's host name, enter localhost.
- For Server name, enter WebSphere Application Server Liberty Profile.
- Either enter or select the following values,
and then click Next:
- For Runtime Environment Name, enter WebSphere Application Server Liberty Profile.
- For How do you want to create the runtime environment, select Choose an existing installation.
- For Path, enter C:\home\ibmadmin\liberty.
- For JRE, select Use default JRE.
- For Liberty profile server, select defaultServer, and then click Finish.
- Import the IBM Intelligent Operations Center development environment projects
into the workspace:
- In Eclipse, click File > Import > General > Existing Projects into Workspace, and then click Next.
- Select Select root directory.
- Click Browse, and select C:\home\ibmadmin\workspaces\spf. The Projects list shows the available projects.
- Click Select All.
- Under Options and Working Sets, clear all the options.
- Click Finish.
- Wait for Eclipse to refresh and build the workspace. This process can take up to 5 minutes.
- Add the projects to the server:
- In Eclipse, in the Servers view, right-click WebSphere Application Server Liberty Profile > Add and Remove.
- Add the following projects to the server:
- ica_solution_ear
- ioc_solution_ear
- ioc_theme_ear
- Optional: If you installed SPSS® Modeler Server, SPSS Modeler Batch, and SPSS Data Access Pack, add the ASK_ear project to the server.
- Optional: If you added the ASK_ear project
to the server, run the following commands from a command prompt:
mkdir c:\opt\IBM\ioc\ASK xcopy c:\home\ibmadmin\workspaces\spf\ioc_install\ioc\ASK c:\opt\IBM\ioc\ASK /s /e - From Eclipse, edit the
c:\home\ibmadmin\workspaces\spf\dev_ioc_install\ioc\config\setup.properties
file and modify all variables to match your environment. Ensure that you update the
DB2_HOSTNAME, DB2_PORT, DB2_INSTANCE_USER,
and JAVA_DIR variables to match the values that you selected when you installed
the database.
- If you installed IBM Intelligent Operations Center V5.2.1, from Eclipse, edit the
c:\home\ibmadmin\workspaces\spf\dev_ioc_install\ioc\config\setup.properties
file and modify all variables to match your environment. Ensure that you update the
DB2_HOSTNAME, DB2_PORT, DB2_INSTANCE_USER,
and JAVA_DIR variables to match the values that you selected when you installed
Db2®.
SET DB2_HOSTNAME=localhost SET DB2_PORT=50000 SET DB2_INSTANCE_USER=db2i1own SET DB2_INSTANCE_USER_PWD=db2_instance_user_pwd SET JAVA_DIR=C:\Program Files\IBM\Java80\jre\bin - If you installed IBM Intelligent Operations Center V5.2.0, from Eclipse, edit the
c:\home\ibmadmin\workspaces\spf\dev_ioc_install\ioc\config\liberty\setup.bat
script and modify all variables to match your environment. Ensure that you update the
DB2_HOSTNAME, DB2_PORT, DB2_INSTANCE_USER,
and JAVA_DIR variables to match the values that you selected when you installed
DB2®.
SET DB2_HOSTNAME=localhost SET DB2_PORT=50002 SET DB2_INSTANCE_USER=db2i1own SET DB2_INSTANCE_USER_PWD=db2_instance_user_pwd SET JAVA_DIR=C:\Program Files\IBM\Java70\jre\bin- The JAVA_DIR variable in the setup.bat script refers to
a Java 7.0 installation location. If the installation uses Java 8.0, update this variable to refer to the Java 8.0 path.
SET JAVA_DIR=C:\Program Files\IBM\Java80\jre\bin
- The JAVA_DIR variable in the setup.bat script refers to
a Java 7.0 installation location. If the installation uses Java 8.0, update this variable to refer to the Java 8.0 path.
- If you installed IBM Intelligent Operations Center V5.2.1, from Eclipse, edit the
c:\home\ibmadmin\workspaces\spf\dev_ioc_install\ioc\config\setup.properties
file and modify all variables to match your environment. Ensure that you update the
DB2_HOSTNAME, DB2_PORT, DB2_INSTANCE_USER,
and JAVA_DIR variables to match the values that you selected when you installed
Db2®.
- To configure the server.xml file
for WebSphere® Application Server Liberty Profile,
run the following commands from a command prompt:
cd C:\home\ibmadmin\workspaces\spf\dev_ioc_install\ioc\config\liberty setup.batNote: Ensure that the setup.bat command has completed before you proceed to the next step. - In Eclipse, on the Servers tab in the bottom pane, expand WebSphere Application Server Liberty Profile at localhost.
- To open the server.xml file, double-click Server Configuration [server.xml].
- Click the Design tab. The Design tab is at the bottom of the
Server Configuration: defaultServer (server.xml) tab.
Note: Do not edit the XML on the Source tab.
- On the Design tab, expand
Server Configuration > Data Source: jdbc/ioc,
and then click DB2 JCC Properties.
Scroll down through the list of properties
to locate and update the following value
with the value that you configured for your databases:
- Password
Next to the Password field, click Set. In the "Set Password" window, enter the password and accept the default encoding method.
Note: Set the Password value and then confirm that the Port number, Server name, and User values are already set correctly.
- Password
- On the Design tab, expand
Server Configuration > Data Source: jdbc/iocdata,
and then click DB2 JCC Properties.
Scroll down through the list of properties
to locate and update the following value
with the value that you configured for your databases:
- Password
Next to the Password field, click Set. In the "Set Password" window, enter the password and accept the default encoding method.
Note: Set the Password value and then confirm that the Port number, Server name, and User values are already set correctly.
- Password
- On the Design tab, expand
Server Configuration > Data Source: DefaultDataSource,
and then click DB2 JCC Properties.
Scroll down through the list of properties
to locate and update the following values
with the value that you configured for your databases:
- Password
Next to the Password field, click Set. In the "Set Password" window, enter the password and accept the default encoding method.
Note: Set the Password value and then confirm that the Port number, Server name, and User values are already set correctly.
- Password
- To save the server configuration,
press CTRL-S.
Alternatively,
close the Server Configuration: defaultServer (server.xml) tab
and save the server configuration at the prompt. Note: It might take several minutes for the configuration to be saved, during which time Eclipse appears to stop responding.
- If you installed IBM Intelligent Operations Center V5.2.0, complete the following steps create the SSL certificate. These steps are not required for
V5.2.1.
- In Eclipse, in the Servers view, right-click WebSphere Application Server Liberty Profile at localhost > Utilities > Create SSL Certificate..
- Either enter or select only the following values:
- For Keystore password, enter a password that you will remember.
- For Encoding, select xor (encode using XOR).
- Do not select any other options. Click Finish.
- At the prompt, select Yes to overwrite the key.jks file.
- Click OK to close the completion message.