Description: This article is suitable for people who begin to learn Web development. This article illustrates how to configure Domain in WebLogic 8.0 and configure a web application in Domain, such as how to configure web applications under Tomcat to WebLogic. Operating system Windows.
After installing WebLogic8.1 under Windows, there is a "BEA WebLogic Platform" in the "Program"
8.1
"
The program group. To publish a web application, you need to configure a Domain, we can run the "Configuration Wizard" in the WebLogic program group launch the configuration wizard, the interface is shown below:
Start the interface after configuring the wizard
We can choose the first option, you create a new WebLogic configuration information. Click the next NEXT button, the interface is as follows:
Select configuration information template
We can choose the second option, that is, Basic WebLogic Service Domain, select a template, click Next button, the interface is as follows:
Select Quick Configuration or Custom Configuration Interface
In custom configuration, we can configure information such as JDBC, JMS, but this information can be configured in the console, so we can choose to quickly configure, that is, select the Express option, then click Next button, the page displayed is as follows :
You can set the administrator's name and password in this page.
We are here, such as reserving the user name WebLogic, and then the password needs to be entered twice, such as entering WebLogic as a password. After entering the information, click Next button, the page displayed is as follows:
Select boot mode and Java SDK
The startup mode of WebLogic can be configured in this page. In the development mode, it will be reflected in the application in time after the class changes in Web-INF / CLASSES, that is, if you use a class in our JSP file, and this class is placed in a web-inf / class directory, we This class is changed. When this JSP file is accessed again, this page calls the modified class; for the development process, you can set it to the development mode, you can set it up to Production Mode after the development is complete, this mode will run fast.
We have reserved the development mode here, and JDK has retained original, then click Next button, the displayed interface is as follows:
Create a WebLogic Configuration last step
In this step we can give our Domain to take a name, such as Webdomain, as shown above.
Then click the CREATE button to configure a Domain. The interface after configuration is as follows:
Configured interface
After configuring a WebLogic Configuration, you can start WebLogic. In the figure we can see there is a Start Admin Server selection box, select it. You can start WebLogic after clicking DONE, we can also start the WebLogic Platform 8.1 in the Start menu.
To configure web applications, you need to start WebLogic, running Start Server in program group BEA WebLogic Platform 8.1 / user projects / Webdomain, you can start WebLogic.
After starting WebLogics, open IE, enter http: // localhost: 7001 / console in IE, you can access the local console, enter the interface of the console as follows:
WebLogic console login interface
Enter the username and password after logging in, the interface after the login is as follows: Login the interface
Let's introduce how to configure a web application, expand the deployments node on the tree on the left, then click the Web Application Modules node, the open interface is shown below:
Expand the interface of Web Application Modules
Open the Deploy a New Web Application Module ... link, as follows:
Configure the interface of the web application module
Then find the address stored in the web application, such as our Tomcat installed in E: / jakarta-tomcat-
5.0.14
In, if you want to release a web application under Tomcat, such as the web application of a JSP example under Tomcat, as shown below:
Check the Radio button in front of JSP-Examples, then click the Target Module button so that you can post the JSP example of the web application. After Target, the following page appears, you can give us a name to the web app, this The name is just in WebLogic's management to identify unsteady web applications, we can keep the original configuration and click this web application to WebLogic after clicking the Deploy button.
Release web application page
Post-successful display page
If you want to access the page, you can click on the Testing Tab as shown below:
Test page
Click on the link indicated by MyService, the interface after access is as follows:
Visit WEB app posted on WebLogic