Application Server-WebLogic installation and configuration

Source: Internet
Author: User
Application Server-WebLogic installation and configuration-Linux Enterprise Application-Linux server application information. The following is a detailed description. WebLogic installation and configuration

As we all know, a website developed by JSP/SERVLET is released, in addition to the corresponding WEB server to respond to requests from common WEB pages, a dedicated application server is also required to respond to requests from dynamic WEB pages JSP/SERVLET. For commercial users, the most popular application server software is WebLogic developed by BEA. The following describes the version of WebLogic5.1.

First, decompress WebLogic to the/usr directory. You need to modify the StartWebLogic. sh script file in the WebLogic installation directory to set your CLASSPATH and JAVA_HOME. Finally, you can use this script file to start the service. Currently, the started service does not support JSP, EJB, Servlet, and other technologies. Therefore, you must modify the WebLogic. properties file in the weblogic installation directory. The following describes how to configure this file.

Bytes ------------------------------------------------------------------------------------------

Row 3:

Weblogic. system. listenPort = 80

Set the HTTP port. The default value is 7001.

Row 3:

Weblogic. password. system = 11111111

Set the password for starting the Console. The default password length is 8 characters.

Row 3:

Weblogic. system. SSLListenPort = 7002

Set the SSL port. The default value is 7002.

Row 3:

Weblogic. system. minPasswordLen = 8

Minimum password length. The default value is 8 characters.

Rows 3-495th:

Set your own RMI. The command format is as follows:

Weblogic. system. startupClass. [virtualName] = [fullPackageName]

For example:

Weblogic. system. startupClass. hello = examples. rmi. hello. HelloImpl

Row 3:

# Weblogic. ejb. deploy =

#/Usr/WebLogic/myserver/Your_Ejb.jar,

EJB is not allowed by default. If you want to use it, you can remove the preceding comment and set your EJB path.

Rows 3-539th:

Add a user list. The command format is as follows:

Weblogic. password. [username] = XXX

For example:

Weblogic. password. xxx = 11111111

Row 3:

Weblogic. httpd. session. enable = true

Sessions can be used on the server side. sessions are useful when developing e-commerce programs.

Rows 3-663rd:

Row 663: # weblogic. jdbc. connectionPool. db2Pool =

Row 664: # url = jdbc: db2 // localhost/database,

Row 3: # driver = COM.ibm.db2.jdbc.net. DB2Driver,

Row 3: # loginDelaySecs = 1,

Row 3: # initialCapacity = 4,

Row 3: # maxCapacity = 10,

Row 3: # capacityIncrement = 2,

Row 3: # allowShrinking = true,

Row 3: # shrinkPeriodMins = 15,

Row 3: # refreshMinutes = 10,

Row 3: # testTable = table,

Row 3: # props = user = db2admin; password = db2admin

Set the jdbc pool you want to use. It is not allowed by default. If you want to use the jdbc pool, you can remove the preceding comment. However, your JDBC driver must be in StartWebLogic. sh CLASSPATH already exists. Among them, lines 663 set the jdbc pool name (such as db2Pool); lines 664 and 665 register the JDBC driver and connected database; and 667 act the default number of connections; 668 maximum number of connections in the behavior connection pool; 674 username and password used to connect to the database

Row 3:

Weblogic. httpd. register. *. shtml = weblogic. servlet. serversidemo-deservlet

Allows you to use ssiand allows you to use .shtml as a suffix extension.

Row 3:

Weblogic. httpd. register. servlets = weblogic. servlet. ServletServlet

Servlet is allowed, such as URL:

Http: // localhost/servlets/foo/hello

The actual path is:

/Home/servlet/foo/hello. class

Row 3:

Weblogic.httpd.doc umentRoot =/home/www/

This action sets the publishing Directory on the Web Page

Row 3:

Weblogic. httpd. servlet. classpath =/home/servlet

This row is used to set the directory for storing class files such as Servlet. Of course, this directory must also exist in the CLASSPATH of StartWebLogic. sh

Rows 3-861st:

Row 861: # weblogic. httpd. register. *. jhtml =

Row 3: # weblogic. servlet. jhtmlc. PageCompileServlet

Row 863: # weblogic. httpd. initArgs. *. jhtml =

Row 3: # pageCheckSeconds = 1,

Row 3: # packagePrefix = examples. jhtml,

Row 3: # compileCommand =/usr/java/bin/javac,

Row 3: # workingDir =/home,

Row 3: # verbose = true

These lines are used to support JHTML technology. By default, JHTML Extensions cannot be used. To use JHTML, remove the preceding annotations. The *. jhtml following row 861 is used to register any file with the jhtml extension. The javac directory is set in row 866.

Rows 3-878th:

Row 878: # weblogic. httpd. register. *. jsp =

Row 3: # weblogic. servlet. JSPServlet

Row 880: # weblogic. httpd. initArgs. *. jsp =

Row 3: # pageCheckSeconds = 1,

Row 3: # compileCommand =/usr/java/bin/javac,

Row 3: # workingDir =/home,

Row 3: # verbose = true

These lines are used to support JSP. By default, the JSP extension cannot be used. To use JSP, remove the preceding comment. *. Jsp is used to register any file whose extension is jsp. The javac directory is set in line 882. If you want to run test. jsp file, which is first compiled into _ test. the class is running, so the directory set in line 883rd is used to put the compiled directory. class File

Bytes -------------------------------------------------------------------------------------------

So far, WebLogic has been basically configured. You can use the StartWebLogic. sh script to start the service and use the technology that is already allowed.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.