weblogic formatted

Upload: mohamed-abrar

Post on 03-Apr-2018

237 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 Weblogic Formatted

    1/14

    Weblogic Webserver - Installation and deployment

    20/08/2012

    Verizon

    Anant Agarwal (465149)

    Telecom/Server Installation

    [email protected]

    mailto:[email protected]:[email protected]:[email protected]
  • 7/28/2019 Weblogic Formatted

    2/14

    2

    Confidentiality Statement

    Confidentiality and Non-Disclosure Notice

    The information contained in this document is confidential and proprietary to TATA

    Consultancy Services. This information may not be disclosed, duplicated or used for any

    other purposes. The information contained in this document may not be released in

    whole or in part outside TCS for any purpose without the express written permission of

    TATA Consultancy Services.

    Tata Code of Conduct

    We, in our dealings, are self-regulated by a Code of Conduct as enshrined in the Tata

    Code of Conduct. We request your support in helping us adhere to the Code in letter and

    spirit. We request that any violation or potential violation of the Code by any person be

    promptly brought to the notice of the Local Ethics Counselor or the Principal EthicsCounselor or the CEO of TCS. All communication received in this regard will be treated

    and kept as confidential.

  • 7/28/2019 Weblogic Formatted

    3/14

    3

    TableofContent

    1. InstallationofWeblogicserver: ................................................................................................................................ 4

    2. Deployment............................................................................................................................................................... 8

    3. CreateJDBCDatasource(DBConfiguration)..........................................................................................................10

    4. CommonlyOccurredIssues ....................................................................................................................................13

  • 7/28/2019 Weblogic Formatted

    4/14

    4

    1. Installation of Weblogic server:Prerequisites:

    Weblogic latest zip file JDK 1.6 or above Linux SystemSteps:

    1. Download JDK 1.6 or abovehttp://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.htmland install it in /usr/java/jdk1.6

    2. Download the weblogic latest zip filehttp://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.htmland put the file in home directory of weblogic and extract the file using unzip command.

    3. Set JAVA_HOME and MW_HOME asexport JAVA_HOME=/usr/java/jdk1.6export MW_HOME=/home/weblogic/weblogic

    4. Go to extracted folder and give ./configure.sh

    http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.htmlhttp://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.htmlhttp://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.htmlhttp://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html
  • 7/28/2019 Weblogic Formatted

    5/14

    5

    5. $MW_HOME /wlserver/server/bin/setWLSEnv.shIt will set the environment variables needed for the installation.

  • 7/28/2019 Weblogic Formatted

    6/14

    6

    6. Create a new WLS domain and start WLS.mkdir /home/weblogic/web

    cd /home/weblogic/web

    $JAVA_HOME/bin/java $JAVA_OPTIONS Xmx1024m XX:maxPermSize=128m weblogic.Server

    7. During the installation you would be asked to configure the weblogic server. Give the user name andpassword for your weblogic console.

  • 7/28/2019 Weblogic Formatted

    7/14

    7

    Now the weblogic is installed and running in your system. You can access it using

    http://localhost:7001/console Use the username and password given at the time of installation.

    http://localhost:7001/consolehttp://localhost:7001/console
  • 7/28/2019 Weblogic Formatted

    8/14

    8

    2.

    Deployment

    1. Start the weblogic server as below$ cd /home/weblogic/web/bea/user_projects/domains/domainName/bin

    $ cp /dev/null nohup.out (optional* clear nohup.out logs)

    $ ./stopWebLogic.sh (stop the web server if its already running)

    $ ./startWebLogic.sh (start the web server)

    2. Login to console: For example : http://localhost:7001/console3. Enter the username and password for the same4. Click on Deployments under Domain Structure

    5. Select the existing ear which is currently running, Stop -> force stop now

    http://localhost:7001/consolehttp://localhost:7001/consolehttp://localhost:7001/console
  • 7/28/2019 Weblogic Formatted

    9/14

    9

    6. Check the status of App, is should be prepared.7. Now delete the existing one.

    8. Install the latest package -> install -> Select the file path that represents the application root directory,archive file, exploded archive directory, or application module descriptor that you want to install. You can

    also enter the path of the application directory or file in the Path field.

    9. Once application installed successfully.

  • 7/28/2019 Weblogic Formatted

    10/14

    10

    3.

    Create JDBC Data source (DB Configuration)

    1. Click on Deployments under Domain Structure -> JDBC -> Data Sources

    2. Click on NEW to create new data source

    3.

    Provide the below details under JDBC Data source properties.

  • 7/28/2019 Weblogic Formatted

    11/14

    11

    4. After couple of Next define the db connection properties.

    5. After Next Test data source configuration

  • 7/28/2019 Weblogic Formatted

    12/14

    12

    6. After Next Select Target

    7. Finish and restart Weblogic server

  • 7/28/2019 Weblogic Formatted

    13/14

    4. Commonly Occurred Issues1. While installation, getting error saying Permission Denied.Sol: Include user Weblogic into root group.

    2. Deployment is failing.Sol: There might be one of following possibilities.

    a. Check the database connection, if you are using. This may cause deployment failure.

    b. War file you are trying to deploy, that might be corrupted.

    c. There might be low space in home directory or root user space.

  • 7/28/2019 Weblogic Formatted

    14/14

    14

    Thank You

    Contact

    For more information, contact [email protected](Email Id of ISU)

    AboutTataConsultancyServices(TCS)

    TataConsultancyServicesisanITservices,consultingandbusinesssolutions

    organizationthatdeliversrealresultstoglobalbusiness,ensuringalevelofcertaintyno

    otherfirmcanmatch.TCSoffersaconsultingled,integratedportfolioofITandIT

    enabledinfrastructure,engineeringandassuranceservices.Thisisdeliveredthroughits

    uniqueGlobalNetworkDeliveryModelTM

    ,recognizedasthebenchmarkofexcellencein

    softwaredevelopment.ApartoftheTataGroup,Indiaslargestindustrialconglomerate,

    TCShasaglobalfootprintandislistedontheNationalStockExchangeandBombay

    StockExchangeinIndia.

    Formoreinformation,visitusatwww.tcs.com.

    ITServices

    BusinessSolutions

    Outsourcing

    All content / information present here is the exclusive property of Tata Consultancy Services Limited (TCS). The content /

    information contained here is correct at the time of publishing. No material from here may be copied, modified, reproduced,

    republished, uploaded, transmitted, posted or distributed in any form without prior written permission from TCS.

    Unauthorized use of the content / information appearing here may violate copyright, trademark and other applicable laws,

    and could result in criminal or civil penalties. Copyright 2011 Tata Consultancy Services Limited

    mailto:[email protected]:[email protected]