![]() |
|||||||||||||||||||||||||
|
Version
Table of Contents 1.2 What do you need to understand this book 3 3 Installing openCRX for Sun Application Server 8.2 5 5 Configuring the Java Virtual Machine 7 List of Figures Figure 1: Sun Application Server 8.2 Admin Console. 5 Figure 2: Configure the Java Virtual Machine. 7 Figure 3: Create a Connection Pool. 10 Figure 4: Enter the data source class name. 11 Figure 5: Specify the database-specific properties. 12 Figure 6: Create a JDBC resource. 13 Figure 7: Manage users. 14 Figure 8: Add user guest. 15 Figure 9: List of users who have access to openCRX. 16 Figure 10: Deploy the opencrx-core-CRX-App EAR. 17 Figure 11: Accept the default values in deploy enterprise application. 18 Figure 12: Deploy the openCRX web application. Select Precompile JSP. 19 Figure 13: The openCRX applications must be deployed and enabled. 20
List of Listings Listing 1: Listing of domain1.log.properties. 8 Listing 2: File permissions in server.policy before modification. 9 Listing 3: File permissions in server.policy before modification. 9
1 About this BookThis book describes the installation of openCRX for Sun Application Server 8.2. 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 Sun Application Server 8.2. The book assumes that you are familiar with Sun Application Server 8.2 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 Sun Application Server 8.2. • 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 Sun Application Server 8.2After installing Sun Application Server 8.2 you should be able to start and stop it and launch the Administrative Console as shown below:
Figure 1: Sun Application Server 8.2 Admin 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 SunAS. You can do this by copying the libraries to the directory ./Sun/AppServer/lib.
5 Configuring the Java Virtual MachineNow you must add options to the JVM configuration. Navigate to Application Server > JVM Settings Servers > JVM Options as shown below:
Figure 2: Configure the Java Virtual Machine.
Add the following options:
Create the file ${com.sun.aas.instanceRoot}/config/domain1.log.properties using a text editor with the following content. Listing 1: Listing of domain1.log.properties. #
Log properties
6 Configuring server.policyIn the file ${com.sun.aas.instanceRoot}/config/server.policy modify the line shown in Listing 2 to the line shown in Listing 3. Listing 2: File permissions in server.policy before modification. permission java.io.FilePermission "<<ALL FILES>>", "read,write"; Listing 3: File permissions in server.policy before modification. permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete"; 7 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 > Connection Pools and create a new Connection Pool as shown below:
Figure 3: Create a Connection Pool. For PostgresSQL fill out the fields as follows:
On the next page you must enter the
Figure 4: Enter the data source class name. Additional Datasource Classnames:
Click Next and enter the database-specific properties as shown in Figure 5. For PostgresSQL fill out the fields as follows:
Figure 5: Specify the database-specific properties.
Next you must create a JDBC resource. Select Resources > JDBC > JDBC Resources and then click New. Enter the values as shown below:
Figure 6: Create a JDBC resource. The datasource configuration is now complete. 8 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. Go to Configuration > Security > Realms > file > Manage Users as shown below:
Figure 7: Manage users. In the Manage Users screen click New to add the user guest as shown below:
Figure 8: Add user guest. Make the user member of the group OpenCrxUser. openCRX defines the following security roles:
The roles are defined in the deployment descriptors of the application enterprise archives. In a next step add all the users who should have access to openCRX. At least add the following users:
Finally, the users list should look similar as shown below:
Figure 9: List of users who have access to openCRX. 9 Deploying openCRXopenCRX comes with two enterprise application archives (EAR):
In a first step you deploy opencrx-core-CRX-App.ear. Select Enterprise Applications and then click the Deploy button to select the EAR file as shown below:
Figure 10: Deploy the opencrx-core-CRX-App EAR.
Click Next and accept the default values in the next screen as shown below:
Figure 11: Accept the default values in deploy enterprise application.
Click OK in order to deploy the application.
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, in the Deploy Enterprise Application screen select the option Precompile JSP as shown below. The web application contains Java Server Pages which must be precompiled during deployment.
Figure 12: Deploy the openCRX web application. Select Precompile JSP.
10 Final StepsBefore you proceed to the openCRX QuickStart guide make sure that you have deployed and enabled the applications as shown below:
Figure 13: The openCRX applications must be deployed and enabled.
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. |
||||||||||||||||||||||||