![]() |
|||||||||||||||||||||||||||||
|
Version
Table of Contents 1.2 What do you need to understand this book 4 3 Installing openCRX for IBM WebSphere 6.1 6 5 Configuring the Java Virtual Machine 9
List of Figures Figure 1: IBM WebSphere 6.1 Administrative Console. 6 Figure 2: Add OPENMDX_HOME as WebSphere variable. 7 Figure 3: Add POSTGRESQL_JDBC_DRIVER_PATH as WebSphere variable. 8 Figure 4: Configure the Java Virtual Machine. 9 Figure 5: Disable Java2 security. 11 Figure 6: Create a JDBC provider. 12 Figure 7: Enter the JDBC driver class path. 13 Figure 8: Complete creation of JDBC provider. 13 Figure 9: Configure the datasource. 14 Figure 10: Select JDBC provider. 15 Figure 11: Set data store helper class name. 15 Figure 12: Finish creation of datasource definition. 16 Figure 13: Data source custom properties for PostgreSQL. 16 Figure 14: Enable WebSphere security. 17 Figure 15: Deploy the opencrx-core-CRX-App EAR. 18 Figure 16: Select Deploy EJBs. 19 Figure 17: Verify the deployment settings. 20 Figure 18: Deploy the Web EAR and check show me all installation options. 22 Figure 19: Deploy the openCRX web application. Select Pre-compile JSP. 23 Figure 20: Assign users and groups to openCRX roles. 24 Figure 21: Assign users and groups to openCRX roles. 25 Figure 22: The openCRX applications must be deployed and running. 27
List of Listings Listing 1: Listing of server.log.properties. 10 Listing 2: extend the Java security policy. 10
1 About this BookThis book describes the installation of openCRX for IBM WebSphere 6.1. 1.1 Who this book is forThe intended audience are openCRX and application server system administrators. 1.2 What do you need to understand this bookThis book describes the installation of openCRX for IBM WebSphere 6.1. The book assumes that you are familiar with IBM WebSphere 6.1 administration and deployment concepts. 1.3 Tips, Warnings, etc.We make use the following pictograms:
2 PrerequisitesAs a first you must download and install the following software: • Install IBM WebSphere 6.1. • Download openMDX from here (http://sourceforge.net/project/showfiles.php?group_id=75132). • Download openCRX from here (http://sourceforge.net/project/showfiles.php?group_id=95219).
3 Installing openCRX for IBM WebSphere 6.1After installing IBM WebSphere 6.1 you should be able to start and stop it and launch the Administrative Console as shown below:
Figure 1: IBM WebSphere 6.1 Administrative Console. The openCRX installation requires the following steps:
4 Installing LibrariesAs a first step you must install the openMDX and the database libraries and make them available to WebSphere. You can do this by navigating to Environment > Manage WebSphere Variables.
Figure 3: Add POSTGRESQL_JDBC_DRIVER_PATH as WebSphere variable. So far you only have created the environment variables. You now must copy the required libraries to the directories that you have configured:
Save the changes you have made so far.
5 Configuring the Java Virtual MachineNow you must add some options to the JVM configuration. Navigate to Servers > Application Servers > server1 > Process Definition > Java Virtual Machine as shown below:
Figure 4: Configure the Java Virtual Machine. You must configure the following options:
Listing 1: Listing of server.log.properties. ApplicationId
= opencrx-server1
Save the modifications you have made so far.
Next the Java security policy must be extended. Open the file C:/pgm/WebSphere/AppServer/java/jre/lib/security/java.policy with a text editor and add the lines listed below: Listing 2: extend the Java security policy. grant
codeBase "file:/C:/pgm/WebSphere/AppServer/openmdx/lib/*"
{ This allows the openMDX libraries to access Java system properties.
Alternatively you can disable the Java 2 security in the administration console as shown below:
Figure 5: Disable Java2 security. 6 Configuring the DatasourceopenCRX requires the configuration of a JDBC datasource to connect to the openCRX database. You can do this a follows: Navigate to Resources > JDBC Providers and create a new JDBC provider as shown below:
Figure 6: Create a JDBC provider. For PostgresSQL fill out the fields as follows:
On the next page you must enter the class path of the JDBC library as shown in Figure 8. For example for PostgreSQL enter ${POSTGRESQL_JDBC_DRIVER_PATH}/postgresql-8.1-407.jdbc3.jar and then click next.
Figure 7: Enter the JDBC driver class path. Verify whether the values match the environment variables and library names which you have configured in in the previous section. Also verify the values with your JDBC driver documentation. Then click Finish on the summary screen as shown below:
Figure 8: Complete creation of JDBC provider. Next you must create a datasource. Select Resources > JDBC > Data sources and then select New. Enter the values as shown below:
Figure 9: Configure the datasource. In Step 1 you must set the values for the following fields:
In Step 2 select the JDBC provider you have created in previously as shown below:
Figure 10: Select JDBC provider.
In Step 3 select the data store helper class name. Do not modify the default value as shown below:
Figure 11: Set data store helper class name. On the summary page verify the values and then click Finish as shown below:
Figure 12: Finish creation of datasource definition. Next you must complete the datasource configuration by setting the Additional Properties > Custom Properties as shown below:
Figure 13: Data source custom properties for PostgreSQL. The properties are driver-specific. The JDBC driver documentation should list the required properties. E.g. PostgreSQL requires the following custom properties:
The datasource configuration is now complete. Save the changes. 7 Configuring SecurityopenCRX requires that each user is properly authenticated so that sessions can be correlated to user-specific application data and to perform access control. openCRX does not support non-authenticated sessions. User authentication must be activated in WebSphere as follows:
Figure 14: Enable WebSphere security. Save the changes you have made so far. Shut down and restart WebSphere.
8 Deploying openCRXopenCRX comes with two enterprise application archives (EAR):
In a first step you deploy opencrx-core-CRX-App.ear. Select Applications > Enterprise Applications and then click the Browse button to select the EAR file as shown below:
Figure 15: Deploy the opencrx-core-CRX-App EAR. You can skip all screens and leave the default values until you reach Step 1: Installation options as shown below. Accept the default values and click Next.
Figure 16: Select Deploy EJBs. You can skip all steps and leave the default values until you reach the final step Step 9: Summary as shown below. Verify the values and then click Finish.
Figure 17: Verify the deployment settings.
Listing 3: Log of App EAR deployment. Installing...
The installed application should now appear in Applications > Enterprise Applications as openCRX Core EAR. Check the application and click Start.
Next you must install the web application opencrx-core-CRX-Web.ear. The process is the same as described previously for the opencrx-core-CRX-App.ear. However, there are a few differences. At the beginning check the option Show me all installation options and parameters as shown below. This is required to configure the security properly in the following steps.
Figure 18: Deploy the Web EAR and check show me all installation options.
In Step 1 you must select the option Pre-compile JSP as shown in the figure b elow. The web application contains Java Server Pages which must be precompiled during deployment.
Figure 19: Deploy the openCRX web application. Select Pre-compile JSP. The web application opencrx-core-CRX defines the following security roles:
The roles are defined in the deployment descriptors of the application enterprise archives and must be mapped in Step 5: Map security roles to users/groups to WebSphere users and groups. In a first step select the role, e.g. OpenCrxRoot, as shown below:
Figure 20: Assign users and groups to openCRX roles. Then either click Lookup users or Lookup groups. Lookup users allows you to add WebSphere users to the groups OpenCrxRoot, OpenCrxAdministrator and OpenCrxUser. Lookup groups allows you to add WebSphere groups. In order that a WebSphere user is able to login to the application he/she must be member of the configured WebSphere group.
The figure below shows how to add the user admin-Standard to the group OpenCrxAdministrator. Also assign the users who must have access to openCRX to the group OpenCrxUser.
Figure 21: Assign users and groups to openCRX roles. You can click Next on all the following steps and finally click Finish. If the application does not deploy without errors you cannot use openCRX; please review/correct your installation carefully until the application can be deployed without errors.
Listing 4: Log of Web EAR deployment. Installing...
9 Final StepsBefore you proceed to the openCRX QuickStart guide make sure that you have deployed and started all applications as shown below:
Figure 22: The openCRX applications must be deployed and running. The application is initialized the first time a user calls the login page. If the startup fails you should consult the following log files:
License
The contents of this file are
subject to a BSD license (the "License"); you may not use
this file except in compliance with the License. You may obtain a
copy of the License at http://
Copyright 2007 ©
CRIXP Corp. All rights reserved. |
||||||||||||||||||||||||||||