|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Installation Manual (WebLogic Server Edition)1. IntroductionThis document describes how to install SIP Servlet Engine (WebLogic Server Edition). 2. File ConfigurationThe following table shows the contents of the distribution file.
The apps/sip-docs.war file contains the documents about this product. All contents of this file are made up of static files (such as HTML files, image files). Therefore, you can see these documents directly on your PC by decompressing the file*1, instead of deploying them as Web applications. 3. Preparationsa. SoftwareMake sure that the following software are already installed in the target machine.
Note that the above software indicated in Italics can be used only for development. That is, they can not be used for production. Install JMF only when you want to try all functions of the sip-demo. JMF enables you to use the voice mail demo function. But if you use Linux-like operating systems, JMF does not work correctly*2. The WebLogic Server distribution file includes Ant-1.5.3. b. Environment VariablesMake sure that the following environment variables are set properly.
c. Creating Your WebLogic DomainCreate your WebLogic domain in which SIP Servlet Engine is installed. This document describes on the assumption that your domain name is mydomain. d. Locating Your License FileIf you have your SIP Servlet Engine license file, copy it to the $BEA_HOME/ directory as sip-license.xml. Because the evaluation license file is contained in the distribution file, you do not need to obtain another license file if you use this evaluation license. 4. InstallationInstall SIP Servlet Engine with the same OS user privilege that you used when you installed WebLogic Server. a. Decompressing the Distribution FileDecompress the distribution file into the appropriate directory. $ cd /tmp $ jar xvf sipap-3.0.0.zip $ cd sipap-3.0.0/ (Hereafter this directory will be referred to as $SIPAP.) b. Initializing Your Database
(i) Oracle Create a database using the Database Configuration Assistant. Select the UTF-8 character set to prevent Japanese characters contained in the DB from being garbled. Execute the script in the sql/oracle directory to create a table space, and its users and tables. And if you use the demo applications provided with the distribution file, execute the script initSIPAP_app.sh in the same directory. Here is an example. The following table describes the values and meanings of the arguments.
$ cd $SIPAP/sql/oracle $ sh crtTblspaces.sh system/manager /export/home/oracle/app/product/9.2.0/oradata/assipdb $ sh crtUser.sh system/manager sipns passwd $ sh crtUser.sh system/manager sipap passwd2 $ sh initAll.sh sipns passwd sipap passwd2 $ sh initSIPAP_app.sh sipap/passwd2
(ii) PostgreSQL $ cd $SIPAP/sql/pgsql $ sh ./createDB.sh sipdb $ sh ./createAppDB.sh sipdb
(iii) MySQL $ mysql --user=root mysql mysql> insert into user set user="sipap", host="localhost"; mysql> grant all on *.* to sipap@localhost; mysql> flush privileges; mysql> quit In addition, edit the my.cnf file so that Japanese characters can be contained in the DB.
# cd /etc # vi my.cnf Add the following two lines in the [myslqd] group. language=/usr/share/mysql/japanese default-character-set=ujis
language=C:/mysql/share/japanese default-character-set=sjis Create a database as follows. Specify the DB name and the DB user name as arguments of the script "createDB.sh". $ sh ./createDB.sh sipdb sipap $ sh ./createAppDB.sh sipdb sipap The above example creates the user "sipas" who has the same privileges as "root" with no password. If you need to specify its password in terms of security, modify the script accordingly.
(iv) SQLServer $createDB.bat $createAppDB.bat Specify the following items as arguments of the batch file.
Example $ cd sip-cage/db/sqlserver/ $ createDB.bat (local)\sipap sipas sa rootUser $ createAppDB.bat (local)\sipap sipas sa rootUser c. Editing the install.properties FileEdit the install.properties file to set values of the various items for installing. $ cd $SIPAP $ vi install.properties For more information about the items specified in this file, see this page. d. Installing Using Your Ant (1)Install the SIP Servlet Engine configuration files in WebLogic Server (referred to as WLS). $ cd $SIPAP $ sh ./wlinstall.sh install If the file installation has completed successfully, a splash screen appears for three seconds. When it does not appear, check if any configuration is incorrect. However, in some situations, such as when you are installing from a serial console, where the splash screen can not appear, add the -nogui option as follows so that the splash screen does not appear. $ sh ./wlinstall.sh -nogui install The following files are created by this task*3. $BEA_HOME/sip-license.xml $BEA_HOME/sip/lib/* $BEA_HOME/sip/auxlib/* $BEA_HOME/user_projects/domains/mydomain/startsSIPonWebLogic.sh $BEA_HOME/user_projects/domains/mydomain/startsManagedSIPonWebLogic.sh $BEA_HOME/user_projects/domains/mydomain/sipserver.xml $BEA_HOME/user_projects/domains/mydomain/log4j.xml $BEA_HOME/user_projects/domains/mydomain/sip_jaas.config $BEA_HOME/user_projects/domains/mydomain/logs/ For a sample output of this task, see wlinstall-install-log.txt. e. Starting WebLogic ServerWhen you use PostgreSQL or MySQL as a DB server, install the appropriate JDBC driver in the $BEA_HOME/sip/auxlib. $ cd $BEA_HOME/sip/auxlib $ cp .../pg73jdbc3.jar . $ cp .../mysql-connector-java-3.0.9-stable-bin.jar . Start WLS when the SIP Servlet Engine file installation has completed. Note that you should run the startSIPonWebLogic.sh copied in the previous step (d. Installing Using Your Ant (1)) rather than the standard startup script startWebLogic.sh. $ cd $BEA_HOME/user_projects/domains/mydomain $ ./startSIPonWebLogic.sh This script is used to add the class path required to run SIP Servlet Engine and start the startWebLogic.sh. For a sample output of this task, see wlinstall-install-wls.txt. f. Installing Using Your Ant (2)Set the WLS configuration for SIP Servlet Engine. $ cd $SIPAP $ sh ./wlinstall.sh config If the configuration has completed successfully, a splash screen appears for three seconds as when installing. When it does not appear, check if any configuration is incorrect. The following configuration information is added by this task.
In addition, SPI sample implementation required to run SIP Servlet Engine should be deployed here. For a sample output of this task, see wlinstall-config-log.txt. Sometimes, this task fails because of database -related configuration errors, etc. In this case, run "wlinstall config" again after returning to the state prior to the installation through the Admin Console. For the nodes added by this config process, see 5. a. described below. g. Configuring the Log4JPerform this step only when you use a domain created for WebLogic Portal or WebLogic Integration. You do not need to configure it when you use a normal WebLogic Server domain. WebLogic Portal (WLP) and WebLogic Integration (WLI) use the same Log4J as SIP Servlet Engine for outputting log messages. Because the normal WLP (or WLI) installation process overwrites logging configuration for SIP Servlet Engine, log messages output by SIP Servlet Engine are no longer recorded. Therefore, edit the Log4J configuration file according to the following step. $ cd $BEA_HOME/weblogic81/common/lib $ vi workshopLogCfg.xml (or workshopLogCfgVerbose.xml) For a sample configuration file that combines logging configurations for WLP and SIP Servlet Engine, see workshoplogcfg.xml.txt. h. Restarting WebLogic ServerPlease stop WLS in order to confirm renewal of a configuration, and please start WLS by startSIPonWebLogic.sh once again. $ cd $BEA_HOME/user_projects/domains/mydomain $ ./startSIPonWebLogic.sh For a sample output of this task, see wlinstall-config-wls.txt. With this, you come to the end of the SIP Servlet Engine itself installation task. i. Deploying the Demo ApplicationsIf you deploy the demo applications and the related documents, perform the following task to deploy the Web applications. $ sh ./wlinstall.sh deploy Perform the above task to deploy the Web applications. The demo applications are provided only when you use a development or evaluation license. They are not provided when you use a production license. If the deployment has completed successfully, a splash screen appears for three seconds as when performing other tasks. When it does not appear, check if any configuration is incorrect. For a sample output of this task, see wlinstall-deploy-log.txt. The deployed Web application files will be contained in the directory shown below. $BEA_HOME/sip/applications/ Restart WLS using the startSIPonWebLogic.sh after deploying. $ cd $BEA_HOME/user_projects/domains/mydomain $ ./startSIPonWebLogic.sh j. Installing WebLogic Server as a Windows Service (Windows Platforms Only)To install WebLogic Server as a Windows service, follow these steps. For general information about setting up a WebLogic Server instance as a Windows service, see the WebLogic Server document. First, run the installSIPonWebLogicAsService.cmd to install WebLogic Server as a Windows service. To run this batch file, you must log into the Windows computer with a user account that has privileges to modify the Windows registry. $ cd $BEA_HOME/user_projects/domains/mydomain $ installSIPonWebLogicAsService.cmd Then, set the user who runs the WebLogic Server instance as follows. For more information, see WebLogic Server document.
To uninstall WebLogic Server installed as a Windows service, run the uninstallService.cmd. $ cd $BEA_HOME/user_projects/domains/mydomain $ uninstallService.cmd 5. Checking the Operationsa. Verifying the Settings through the Admin ConsoleIf the installation has completed successfully, the nodes are added in the Admin Console as shown above.
The following steps should be performed only when you deployed the demo applications. The demo applications are not provided when you use a production license as described above. They are provided only when you use a development or evaluation license. b. Registering Users through the Sip-AdminThe sip-admin is the Web application which can manage SIP users and demonstrate how to use the Service Provider Interfaces (SPIs). You can access this application with the following URL. http://hostname:portnumber/sip-admin/ For information about how to use the sip-admin, see this page. c. Login to the Sip-DemoYou can log into the sip-demo using the user information you created in the sip-admin. The sip-demo is the application demo site which uses HTTP and SIP. In this site you can try the functions, such as Click2Dial and voice mail. You can access this site with the following URL. http://hostname:portnumber/sip-demo/ For information about how to use the sip-demo, see this page. d. Connecting to SoftphoneYou can connect to Softphone using the same user information that is used to log into the sip-demo. Appendix 1. Setup of JMF (Java Media Framework API)
JMF is needed when using the voice mail demonstration of demonstration application.
The notes at the time of installation # cp /usr/local/java/JMF-2.1.1e/lib/jmf.jar /usr/local/bea/jrockit81sp3_142_04/jre/lib/ext/jmf.jar
The notes at the time of a setup. User Settings
*2: Because JMF 2.1.1e Linux Edition has a problem with its RTP function. *3: They are based on the assumption that your domain name is "mydomain". Last Modified:Sat Jan 22 14:35:13 JST 2005 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|