Sei sulla pagina 1di 14

Weblogic Webserver - Installation and deployment

20/08/2012

Verizon Anant Agarwal (465149) Telecom/Server Installation

anant1.a@tcs.com

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 Ethics Counselor or the CEO of TCS. All communication received in this regard will be treated and kept as confidential.

TableofContent 1. 2. 3. 4. InstallationofWeblogicserver: ................................................................................................................................ 4 Deployment............................................................................................................................................................... 8 CreateJDBCDatasource(DBConfiguration).......................................................................................................... 10 CommonlyOccurredIssues .................................................................................................................................... 13

1. Installation of Weblogic server:


Prerequisites: Weblogic latest zip file JDK 1.6 or above Linux System Steps: 1. Download JDK 1.6 or above http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html and install it in /usr/java/jdk1.6 2. Download the weblogic latest zip file http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html and put the file in home directory of weblogic and extract the file using unzip command.

3. Set JAVA_HOME and MW_HOME as export JAVA_HOME=/usr/java/jdk1.6 export MW_HOME=/home/weblogic/weblogic 4. Go to extracted folder and give ./configure.sh

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

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 and password for your weblogic console.

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.

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/console 3. Enter the username and password for the same 4. Click on Deployments under Domain Structure

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

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.

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.

10

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

5. After Next Test data source configuration

11

6. After Next Select Target

7. Finish and restart Weblogic server

12

4. Commonly Occurred Issues


1. 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.

Thank You
Contact For more information, contact gsl.cdsfiodg@tcs.com (Email Id of ISU) AboutTataConsultancyServices(TCS) TataConsultancyServicesisanITservices,consultingandbusinesssolutions organizationthatdeliversrealresultstoglobalbusiness,ensuringalevelofcertaintyno otherfirmcanmatch.TCSoffersaconsultingled,integratedportfolioofITandIT enabledinfrastructure,engineeringandassuranceservices.Thisisdeliveredthroughits TM uniqueGlobalNetworkDeliveryModel ,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

14

Potrebbero piacerti anche