Install Weblogic Server for SOA

Oracle Weblogic server is the best application server for deploying and running SOA application. Of course you can run ADF and other Oracle framework application. To install 11g server you need to have JDK, and a database on which SOA repository is maintained. In this post I will take you through the process of Oracle XE database, weblogic and SOA server installations. Weblogic server installation and SOA server installation are independent of database existence. But to create SOA domain you need database in place. Below picture shows the sequence in which you can prepare weblogic server for SOA Applications use.

Figure 1 Weblogic server preparation for SOA

This post is discussed for windows operating system. For other operating systems, the process is going to be little different.

  1. JDK Installation: Prerequisite JDK version for 11g server is JDK 1.7.X. Download and install JDK 1.7. I am not discussing JDK installation here as this is simple process. If you already have JDK installed on your machine use below command to find out the version. If the version is not 1.7.X please install it afresh.
  2. Weblogic Server Installation: Install JDK before to installing weblogic server.
    1. Download weblogic install from below location
      1. Browse below link
      2. Accept the license agreement.
      3. Download “Oracle WebLogic Server 10.3.6” Generic install or copy and paste below URL in the same browser where you have accepted license agreement.
    2. Start install by running the downloaded jar file. This will take some to launch the installer.
    3. Once the installer is launched, click Next on welcome page.

    4. Choose Middleware Home Directory. Make sure that the structure ends with Oracle\Middleware and click Next.

    5. If you want to register for security updates, you can provide your email address, otherwise, uncheck the check box and say Yes on the confirmation window and then click Next.

    6. Clicking Next on previous window opens up another prompt saying email address not specified (in case you choose not to register for security updates). Say Yes or No depending on your choice of registration for security updates.

    7. On choose “Install Type” page, select Typical. Click Next.
    8. On JDK selection page, browse for local JDK and select jdk folder. Click Next.

    9. You can accept the default values for product installation directories and click Next.
    10. Click Next on Summary page.

    11. Installation process begins. After successful installation, on confirmation page, uncheck “Run Quickstart” and click on Done.

    Now what you have is a bare Weblogic server. To run SOA Applications, you need a SOA server on top of weblogic server.

  3. SOA Server Installation:
    1. Download SOA Server
      1. Navigate to below download site.
      2. Accept the license agreement.
      3. Download product installations Part1 and 2. Or browse below URLs in the same browser where you have accepted the license agreement.

    2. Unzip the above downloaded zips into separate folders. For example into ofm_soa_generic_11. into ofm_soa_generic_11.
    3. Go into ofm_soa_generic_11. and copy disk4, disk5 and disk6 into folder ofm_soa_generic_11.
    4. Navigate to folder ofm_soa_generic_11.\Disk1\install\win64 and run setup.exe.

      Click Next on welcome screen.

      You can optionally select Skip Software Updates

      Click Next after successful prerequisite checks.

      Provide the installation location (Middleware home where weblogic server is installed)

      Click Next on Application Server page.

      Review installation summary and click Install.

      This will start the installation process.

      Click Finish button after installation completion.

      Now you have weblogic and SOA servers ready. To deploy and run SOA projects you need to create domain. But for domain creation you need repository created on a database. So let’s proceed with database installation and repository creation.

  4. Install Database: In this post I am considering Oracle XE database. Install Oracle XE databse, and run below sql scripts sequentially. Here I am not discussing the installation process as it is simple.
    1. Open SQL command prompt
    2. conn sys/manager as sysdba
    3. alter system set processes=1000 scope=spfile;
    4. alter system set sga_target=350M scope=spfile;
    5. alter system set sga_max_size=350M scope=spfile;
    6. shutdown
    7. startup

    You have Oracle XE ready for use.

  5. Repository Creation:
    1. Download Repository Creation Utility
      1. Navigate to below download site.
      2. Accept the license agreement.
      3. Download by clicking on the download link against Repository Creation Utility or browse below URLs in the same browser where you have accepted the license agreement.

      4. Unzip the downloaded into ofm_rcu_win_11. Open the folder and go into rcuHome folder and then into BIN folder. Run rcu.bat file as administrator (right click on rcu.bat file and select run as administrator)

        Click Next on welcome screen.

        Select create repository option and click Next.

        Provide the installed database (XE in this case) details.
        Click Next

        Clicking Next on previous screen checks for prerequisites. Click Ok.

        In Select components window, select SOA and BPM. This will select some more dependant components. Click Next.

        Clicking Next on previous screen does some dependancy check. Click OK on the popup.

        On Schema Passwords page, Provide a password and remember this. Click Next.

        Click Next on Map Tablespaces page.

        Click OK on the confirmation page.

        Tablespaces are created and validated. Click OK on the confirmation page.

        Review the summary and click on Create button.

        This will start repository creation.

        After successful creation, click Close button on Summary page.

        After repository creation, execute below sql scripts.

        conn sys as sysdba

        Grant select on sys.dba_pending_transactions to dev_soainfra;

        Grant force any transaction to dev_soainfra;

        Please note that the schema name I have provided is dev_soainfra. This can vary depending on the prefix that you have provided in Select Components window in one of the above steps.

        SHUTDOWN and STARTUP the database.

        Now you have the repository created, the only step left is to create a domain, and then start deploying and running SOA projects.

  6. Configure Domain

    Select All Programs -> Oracle Weblogic -> Weblogic Server -> Tools -> Configuration Wizard.

    Domain creation wizard will be launched. Select Create a new weblogic domain and click Next.

    Select “Oracle SOA Suite for developers” and “Oracle Enterprise Manager”. This implies in selection of] addition dependent components. Click Next.

    Provide a domain name and click Next.

    Configure weblogic administrator user name and password.

    Configure Server Start Mode (Development or Production) and click Next.

    On JDBC component schema configuration page, select all the schemas and provide database server, host name and port number. Provide a password for all the selected schemas and make a note of it. Optionally separate passwords/configuration can be provided by selected individual shcemas.

    Click Next.

    A test on JDBC is run. After successful test, click Next.

    Click Next on Optional Configuration.

    Review summary and click on Create.

    This will start creation of Domain. After successful creation click Done.

    Now you have the setup complete. Start the weblogic server by navigating running startWebLogic.cmd file present at location “Middleware home directory” \user_projects\domains\soa_domain\bin\. This will open a command prompt where weblogic server is started. This process takes some time for the first time. Wait for the log statement “Server started in RUNNIN mode”. Once after you see this statement you can start using the server.

    Enterprise Manager : http//host:port/em (example : http://localhost:7001/em)

    Admin console : http://host:port/console (example : http://localhost:7001/console)

    Login with the weblogic administrator user name and password.

One thought on “Install Weblogic Server for SOA

Leave a Reply

Your email address will not be published. Required fields are marked *