Repost Quick Configuration WebLogic8.x Application Directory YHJVC [Original]

xiaoxiao2021-03-06  68

We know that WebLogic will automatically create the default application directory DEFAULTWEBAPP after WebLogic7.x. If there is no special need, you can use this default application directory to a web application or J2EE system. And in the version of WebLogic8.x, it does not automatically create the default application directory. So we need to use Configuration Wizard to create your own application directory, there are two ways to publish the application directory, which is now introduced.

1.WebLogic8.x Install WebLogic8.x There are several versions of which are available and have a Chinese version from this release. The English version is used in the example. WegLogic installation is very simple, just press the next step by the default, OK.

2. After creating a WebLogic service installation, click "Start" -> "Bea WebLogic Platform 8.1" -> "Configuration Wizard", launch "Bea WebLogic Configuration Wizard", select "Create a new WebLogic Configuration", then "Next" "Base WebLogic Server Domain" in "Template", then "Next", there is no special need to modify the default selection, then "Next", enter the username, password, and create this service on this interface (please Remember this user password, it is the account that starts this service and enters the service console), then "Next", select the JDK version, then "Next", you can modify the directory and name of the creation service, then press " Create "Started.

3. Creating an application directory Create an application directory has two ways to introduce as follows:

3.1 The simplest application directory creation When the WebLogic service creation is successful, open "Configuration Wizard" again, this time select "Extend and Existing WebLogic Configuration", then "Next", select the WebLogic service directory, then "Next" Next ", Check" DefaultWebApp "in" Configuration Extensions ", then take the default value all the way" Next "until" import "is OK. The default application directory is generally d: / bea / user_projects / applications / mydomain / defaultWebapp (Note: D: Installing WebLogic on my PC, the reader finds according to the installation directory).

Test: Start the WebLogic service, then enter http: // localhost: 7001, you can see the introductory page.

3.2 Creating an Application Directory using the console When the WebLogic service is created, start the WebLogic service, then enter http: // localhost: 7001 / console in the browser Enter the user password when you create a WebLogic service.

a. Create a new directory as an upcoming application directory, I use D: / AppWeb as an example directory, create web-influence in this directory, create a web.xml file below Web-INF, directory structure

AppWeb

| __WEB-INF / Web.xml

Web.xml content is generally:

index.html b. Directory creation is completed, on the console Select "Web Application Modules" -> "Deploy a new web application module ...", select the AppWeb you just created under "Location" (note that this directory must have a web-inflica, and in the web-inflic Next, there must be a web.xml file, otherwise it is not possible to create an application directory). After selecting, click "Target Module", return, you can see the application directory created in the current WebLogic service. Then create an index.html document in the AppWeb directory, complete the creation of the application directory.

Test: Start the WebLogic service, then enter http: // localhost: 7001 / AppWeb / INDEX.html to see the page you set.

转载请注明原文地址:https://www.9cbs.com/read-120172.html

New Post(0)