WebLogic installation and configuration

Source: Internet
Author: User

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 used to develop e-commerce Program Very useful
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.

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.