![]() |
|||||
|
openCRX Installation Guide for WebLogic 8Version 1.5.0www.opencrx.orgThe 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 here
Chapter 1. About this BookopenCRX is the leading open source CRM tool. openCRX is based on the openMDX [02] application framework, an open source application framework based on the OMG's model driven architecture (MDA) standards. This guarantees maximum openness, standards compliance and a state-of-the-art component-based architecture. Who this book is forThis book describes the installation of openCRX for WebLogic 8.x. The intended audience are openCRX and application server system administrators. What do you need to understand this bookThe book assumes that you are familiar with WebLogic deployment concepts and administration. Chapter 2. PrerequisitesAs a first step select the openCRX version you want to install. Based on the published version compatibility information you can determine the appropriate versions of openMDX and WebLogic.
Chapter 3. Installing openCRX for WebLogicIn a first step you must install WebLogic. You should be able to start and stop WebLogic and launch the WebLogic Server Console as shown in Figure 3-1. The openCRX installation requires the following steps:
Chapter 4. Installing LibrariesAs a first step you must copy the openMDX and Jdbc driver libraries to a place where WebLogic has access to it. You can do this as follows:
Chapter 5. Configuring the Java Virtual MachineSecond you must add some options to the Java Virtual Machine configuration. You can do this by adding the following settings to the WebLogic startup script, e.g. startWebLogic.cmd as follows: Example 5-1. openCRX-specific Java VM properties rem Setup openCRX-specific properties
set DOMAIN_HOME=c:\pgm\bea\user_projects\domains\mydomain
set CLASSPATH=%CLASSPATH%;%DOMAIN_HOME%\lib\openmdx-kernel.jar
set CLASSPATH=%CLASSPATH%;%DOMAIN_HOME%\lib\msutil.jar;%
set CLASSPATH=%CLASSPATH%;%DOMAIN_HOME%\lib\msbase.jar;
set CLASSPATH=%CLASSPATH%;%DOMAIN_HOME%\lib\mssqlserver.jar
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dorg.openmdx.compatibility.base.application.j2ee.domain=apps
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dorg.openmdx.compatibility.base.application.j2ee.server=server1
set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.protocol.handler.pkgs=org.openmdx.kernel.url.protocol
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dorg.openmdx.log.config.filename=%DOMAIN_HOME%\server.log.properties
set JAVA_OPTS=%JAVA_OPTS% -Dmail.SSLSocketFactory.class=org.opencrx.kernel.mail.SendMailSSLSocketFactory
@REM Call WebLogic Server
...
Chapter 6. Configuring the DatasourceThe openCRX application requires the configuration of a JDBC datasource which connects to the openCRX database. You can do this a follows: Navigate to Services > JDBC > Connection Pools and click on Configure a new JDBC Connection Pool. Select the database vendor from the drop down, e.g. MS SQL Server as shown in Figure 6-1. Then select the driver from the Database Driver drop down, e.g. Microsoft's MS SQL Server Driver (Type) Version 2000 as shown in Figure 6-2. Then click continue. On the next form you must configure the connection pool. You must set the following properties:
This is shown in Figure 6-3. Then click continue. Verify the database connection properties on the next page as shown in Figure 6-4 and then click Test Driver Configuration. If everything works fine you should see the Connection successful message as shown in Figure 6-5. Click Create and deploy. This finally creates the connection pool. As next step you must create a datasource using the connection pool you have just created. Navigate to Services > JDBC > Data Sources and click Configure a new JDBC Data Source as shown in Figure 6-6. You must set the properties as follows:
Then click Continue. On the next page you must select the database connection pool from the drop down. Select the pool you have just created, i.e. crx-CRX as shown in Figure 6-7. Then click Continue. On the next page you must select the servers where the new datasource should be deployed to. You must select the servers to which you plan to deploy the openCRX application. This is shown in Figure 6-8. Then click Create. You are now finished creating the datasource for openCRX. Chapter 7. Configuring SecurityopenCRX requires that each user is properly authenticated. This allows openCRX to correlate a session to user-specific application data and to perform access control. openCRX does not support non-authenticated sessions. User authentication must be configured as follows:
Then select Global Roles > Configure a new Global Role. Create the roles OpenCrxRoot, OpenCrxAdministrator and OpenCrxUser as shown in Figure 7-2. As a next step you must add the Caller is a member of the group condition to the newly created global roles as follows:
This is shown in Figure 7-3. You now have successfully mapped the role names defined by the openCRX application to WebLogic-defined role names. You are now ready to create users and make them member of the groups OpenCrxRoot, OpenCrxAdministrator or OpenCrxUser. A user must be member of OpenCrxRoot if he/she wants to access the servlet opencrx-core-CRX-Root. The servlet opencrx-core-core-CRX requires to be member of the groups OpenCrxUser or OpenCrxAdministrator. Standard users are member of the group OpenCrxUser. Segment administrators are member of the group OpenCrxAdministrator. This is shown in Figure 7-4. As a start you can add the following users:
Chapter 8. Deploying openCRXopenCRX comes with three enterprise application archives (EAR):
In a first step you deploy opencrx-core-CRX-App.ear. Select Deployments > Applications > Deploy a new Application > Upload your files. Click Browse and select the file opencrx-core-CRX-App.ear as shown in Figure 8-1. Repeat this step for the files opencrx-core-CRX-Root-web.ear and opencrx-core-CRX-web.ear. The files are now ready for deployment. Navigate now to Deployments > Applications > Deploy a new Application and then to the upload directory of your administration server, e.g. domains/mydomain/myserver/upload. In this directory you should find the files you have just uploaded. Select the file opencrx-core-CRX-App.ear as shown in Figure 8-2. Then click Continue. On the next screen you must specify the deployment targets and the application name. Leave the default values unchanged and then click Deploy as shown in Figure 8-3. Repeat the deployment step for the archives opencrx-core-CRX-Root-web.ear and opencrx-core-CRX-web.ear. Finally, the tree of the deployed applications should look as shown in Figure 8-4. Chapter 9. Next StepsBefore you proceed to the openCRX QuickStart guide make sure that you have deployed and started all applications. The application is initialized the first time a user calls the login page. If the startup fails you should consult the following log files:
Bibliography |
||||