Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure WebLogic

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to install and configure WebLogic. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

To publish a website developed by JSP/SERVLET, we not only need a corresponding WEB server to respond to the request of ordinary web pages, but also need a special application server to respond to the request of dynamic web page JSP/SERVLET. For business users, the most popular application server software is WebLogic developed by BEA. The following is the version of WebLogic5.1.

First extract the WebLogic to the / usr directory, modify the StartWebLogic.sh script file in the WebLogic installation directory to set up your CLASSPATH and JAVA_HOME, and finally use this script file to start the service. The service started now does not support technologies such as JSP/EJB/Servlet, so you also need to modify the weblogic.properties file in the WebLogic installation directory. How to configure this file is described in detail below.

-

Line 98:

Weblogic.system.listenPort=80

Set the HTTP port. Default is 7001.

Line 114:

Weblogic.password.system=11111111

Set the password to start Console. The default password length is 8 digits.

Line 139:

Weblogic.system.SSLListenPort=7002

Set the SSL port. Default is 7002.

Line 236:

Weblogic.system.minPasswordLen=8

Set the minimum password length, which defaults to 8 bits

Line 495-Line 508:

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

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

For example:

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

Line 524:

# weblogic.ejb.deploy=

# / usr/WebLogic/myserver/Your_Ejb.jar

By default, EJB is not allowed. If you want to use it, you can remove the previous comments and set the path of your EJB.

Line 539-Line 543:

Add the list of users. The command format is as follows:

Weblogic.password. [username] = XXX

For example:

Weblogic.password.xxx=11111111

Line 604:

Weblogic.httpd.session.enable=true

Allowing the use of session;session on the server side is very useful when developing e-commerce programs

Line 663-Line 674:

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

Line 664: # url=jdbc:db2//localhost/database

Line 665: # driver=COM.ibm.db2.jdbc.net.DB2Driver

Line 666: # loginDelaySecs=1

Line 667: # initialCapacity=4

Line 668: # maxCapacity=10

Line 669: # capacityIncrement=2

Line 670: # allowShrinking=true

Line 671: # shrinkPeriodMins=15

Line 672: # refreshMinutes=10

Line 673: # testTable=table

Line 674: # props=user=db2admin;password=db2admin

Set the JDBC POOL you want to use, which is not allowed by default. You can remove the previous comments if you want to use JDBC POOL, but first your JDBC driver must already exist in StartWebLogic.sh 's CLASSPATH. Line 663 is the name of the set JDBC POOL (such as db2Pool); lines 664 and 665 are the database to which the JDBC driver and connection are registered; 667 the default number of connections in the behavior; the maximum number of connections in the behavior connection pool; and the user name and password of the behavior connection database

Line 767:

Weblogic.httpd.register.*.shtml=weblogic.servlet.ServerSideIncludeServlet

Allows the use of SSI, that is, an extension with a .shtml suffix

Line 790:

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

Allow the use of Servlet, such as URL:

Http://localhost/servlets/foo/hello

The actual path is:

/ home/servlet/foo/hello.class

Line 814:

Weblogic.httpd.documentRoot=/home/www/

This behavior sets the publishing directory of the WEB page

Line 831:

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

This line is used to set the directory where class files such as Servlet are placed. Of course, this directory must also exist in the CLASSPATH of StartWebLogic.sh.

Line 861-Line 868:

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

Line 862: # weblogic.servlet.jhtmlc.PageCompileServlet

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

Line 864: # pageCheckSeconds=1

Line 865: # packagePrefix=examples.jhtml

Line 866: # compileCommand=/usr/java/bin/javac

Line 867: # workingDir=/home

Line 868: # verbose=true

These lines are used to support JHTML technology, and the JHTML extension cannot be used by default. If you want to use JHTML, you can remove the previous comments. Line 861 is followed by * .jhtml to register any file with the extension jhtml; line 866 sets the directory of javac

Line 878-Line 884:

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

Line 879: # weblogic.servlet.JSPServlet

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

Line 881: # pageCheckSeconds=1

Line 882: # compileCommand=/usr/java/bin/javac

Line 883: # workingDir=/home

Line 884: # verbose=true

These lines are used to support JSP, and the JSP extension cannot be used by default. If you want to use JSP, you can remove the previous comments. The * .jsp after line 878 is used to register any file with the extension jsp; line 882 sets the directory of javac; if you want to run the test.jsp file in WebLogic, the file is compiled to _ test.class and then run, so the directory set on line 883 is used to put the compiled .class file.

Thank you for reading! This is the end of the article on "how to install and configure WebLogic". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report