Using Sun Java System Web Server With Sun Identity Manager and MySQL SoftwarePartha Dey, October 2008 This document is designed for those who plan to install Sun Identity Manager software and perform initial deployment tasks on top of a web server, because a web server is relatively lightweight in comparison to heavyweight application servers. This article covers the following topics:
IntroductionSun Java System Web Server 7.0 Update 3 and above runs on the following wide variety of platforms with Java 2 Platform, Standard Edition (J2SE) Development Kit (JDK) 5 and 6 support:
Sun Java System Web Server 7.0 (hereafter Web Server) Update 3 supports the NetBeans 6.0 IDE. Superior security features include Denial of Service (DoS) attack detection, cross-site detection, and Elliptic Curve Cryptography (ECC) support (see Sun Java System Web Server site). Update 3 also introduces auto-deploy functionality that enables you to deploy one or more web applications just by placing them under a designated directory. The web application to be auto-deployed could be a WAR file, a directory where a web archive is exploded, or a symbolic link to a directory where a web archive is exploded. Task Flow for Setting UpDepending on your choice of application server or web server and database, the steps you need to follow for setup differ. In general, you do the following:
Here, we discuss the installation of Sun Identity Manager 8.0 software using Web Server 7.0 Update 3 or above (exploiting its auto-deploy feature) and MySQL 5.0 as the database. Setting Up a Java Virtual Machine and Java CompilerThe application requires a Java compiler and a JVM to run the Java classes that perform actions within the Sun Identity Manager software. Both of these items can be found in a JDK. (The Java Runtime Environment [JRE] packages do not include a Java compiler.) Tips:
Setting Up an Index DatabaseYou should use a third-party relational database to store the system index data. Note: You must configure your database with a character set that supports the characters that you want to store. If you need to store multi-byte characters, you should use a character set, such as UTF-8, that supports Unicode. About the Sample Database ScriptsSun Identity Manager software provides sample database scripts that you can modify and use to create tables and indexes. You may choose to use an alternate method to create equivalent tables and indexes, but the tables and indexes must meet these requirements:
You can modify the sample scripts to suit your environment. Common changes include the following:
Note: If you make changes to the sample scripts, then you must make equivalent changes to any sample database upgrade scripts that you receive in the future. Here, we restrict ourselves to using only MySQL software as the database. Setting Up the MySQL DatabaseFollow these steps to set up the MySQL database for use with Sun Identity Manager software. 1. Install the MySQL software. Start the MySQL process (if it does not start automatically). 2. Create the database. To do this: a. Copy the b. Modify the c. Create the new tables by using one of the following commands: On Microsoft Windows: c:\mysql\bin\mysql -u root < create_waveset_tables.mysql On UNIX: $MYSQL/bin/mysql -u root < create_waveset_tables.mysql Installing Sun Identity Manager for Sun Java System Web ServerUse the following information and procedures to install Sun Identity Manager software for use with Web Server version 7 Update 3. Before You BeginDuring installation, you will need to know the following:
Installation StepsFollow these installation and configuration steps: 1. Install the Web Server software. You can choose either Express or Custom installation to install the web server. You can also use either graphical or command-line mode for the installation. For graphical mode installation, execute Express installation is the default installation type, and it makes assumptions regarding host name, port numbers, and JDK installation. If you select Express, you do not specify these settings during installation. Custom installation provides more flexibility and enables you to configure settings that are not specified during Express installation, such as administration server and web server port numbers and which JDK to use. Use Custom installation if you want to customize your installation. You can also install through the command-line interface, which is an interactive, text-based interface that prompts for responses in a terminal window.
To activate the command-line mode, start the installation program using the You can also use Silent installation mode to install the web server. This mode is a non-interactive mode that enables you to run the installer on
multiple hosts using an installer configuration file (state file). To install in silent mode, generate a state file, and then start the installation
program using the After the silent mode is activated, installation takes place without additional user input. The installer configuration file (state file) is created
when the
Most of the installation parameters are self-explanatory. You can refer to the Sun Java System Web Server 7.0 Update 3 Installation and Migration Guide for the details about configuration parameters. 2. Install the Sun Identity Manager software in the Web Server Instance's auto-deploy directory. You can use the bundled JDK of Web Server or any other custom JDK (5.0 or higher). You must export
a. Install the software using one of two methods:
b. Click Next to display the Install or Upgrade? panel. c. Leave the New Installation option selected, and then click Next. The installer displays the Select Installation Directory panel. d. Replace the displayed directory location with the location where you want to install the Sun Identity Manager software. This could be a staging location or a specific folder. You can install in a staging location, then make a WAR file from the installed location, and then deploy the WAR file using the Add Web Application tab. If you want to use the auto-deploy feature of the web server then use the following: %WebServer_HOME%\<Instance_Directory>\auto_deploy\idm Enter the location (or click Browse to locate it), and then click Next. e. Click Next to begin installation. After installing files, the installer displays the Launch Setup panel. f. Before proceeding further, add the Java http://java.sun.com/products/javamail http://java.sun.com/products/beans/glasgow/jaf.html http://java.sun.com/products/jms/index.jsp Caution: Before you continue, if you plan to use an index database, you might need to copy one or more files to the
g. Click Next on the Setup Wizard panel. The product displays the Locate the Repository panel. h. Select an index database from the list provided. Depending on your selection, setup prompts for additional setup information. i. Click Next. The Continue Identity Manager Demo Setup? panel appears. j. If this is a non-demo installation, click No, I will configure Identity Manager myself. This will end the Installation steps. k. Check the logs for any issue. Post-Installation TasksAfter the installation, if you installed the Sun Identity Manager software inside the auto-deploy directory, then you don't need to do anything else except start the web server instance. If instead you installed in a staging directory, then you need to deploy Identity Manager by making a WAR file of it. You need to mention a URI as the application's context root. After the instance starts up, you can access the Sun Identity Manager login page here: http://<instance_id>:port_number/Application_URI/login.jsp Then you can enjoy using the Sun Identity Manager software. For More InformationHere are links to related resources:
Comments (latest comments first)Discuss and comment on this resource in the BigAdmin Wiki
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
BigAdmin SubscriptionsBigAdmin Areas
BigAdmin Sun Center
BigAdmin Topics | ||||