Quickly configure weblogic8.x application directory

xiaoxiao2021-03-06  43

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 to provide use, and the Chinese version appears from this version (URL

http://download2.bea.com/pub/platform/81/platform813_zh_cn_win32.exe

). 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 There are two ways to introduce as follows: 3.1 The simplest application directory creation When the WebLogic service is created, open "Configuration Wizard" again, this time you choose "Extend and EXISTING WebLogic Configuration (Extended WebLogic Configuration ), Then "Next", select the WebLogic service directory, then "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 WebLogic service, then enter

Http: // localhost: 7001

You can see an introductory page. 3.2 Creating an Application Directory using the console When the WebLogic service is created, start the WebLogic service, then enter in the browser

Http: // localhost: 7001 / console

Enter the user password when you create a WebLogic service when you log in. 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. After the directory creation is complete, in the home page of the console, select "Web Application Modules" -> "Deploy a new web application module ...", select the AppWeb you just created under "Location". This directory must have a web-inflica, and there must be a web.xml file in the web-inflicity, 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

You can see the page you set up.

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

New Post(0)