WebLogic Use Summary (vii)--weblogic deploy Web applications and bind domain names

Source: Internet
Author: User
First, create a virtual host in the WebLogic

Locate the virtual host panel, as shown in the following illustration:

  

  

  

Click on the "Virtualhost-oams" hyperlink, modify the "Network access point Name", enter the domain name to bind: www.oams.cn, as shown in the following figure:

  

   Second, modify 7001 port for

Open the Servers panel, click the "AdminServer" hyperlink to the "AdminServer" setting panel, as shown in the following illustration:

  

The WebLogic server uses port 7001 by default, as shown in the following illustration:

  

Change the listening port from 7001→ to 80, as shown in the following illustration:

  

  

We can prove that WebLogic is actually using port 80, as shown in the following illustration:

   iii. deploying Web Applications 3.1, Packaging Web applications

The first steps to be deployed to the WebLogic Web application are packaged into a war package, as shown in the following illustration:

Select the "OAMs" item to package → "Export ..."

  

  

  

By clicking Finish, you can package the OAMs Web application into Oams.war, as shown in the following illustration:

  

Once the package is complete, you can see a Omas.war file on your desktop, as shown in the following illustration:

   3.2. Deploying Web applications to WebLogic servers

A number of tests have found that deploying a Web application as a war package to a WebLogic server is always unsuccessful, and Web applications are using struts2+hibernate4.x+ spring3.x three broad framework combination developed, and the war package after decompression as a folder in the form of deployment can be successful, the specific reasons unknown. I hope that friends who have experience in this field can enlighten the maze and thank them first. Here's how to deploy a Web application to a WebLogic server in the form of a folder.

1, the packaged Oams.war package uploaded to the remote WebLogic server under a directory.

For example, upload to a directory such as D:\oams deployment, and then unzip the war package into folders using the Decompression tool, as shown in the following illustration:

  

After you extract the Oams.war, generate a OAMs folder, as shown in the following illustration:

  

Open the OAMs folder to see the contents of the Web application in it, as shown in the following illustration:

  

2. Login to remote WebLogic server with Admin account

We've changed the WebLogic listening port to port 80, so log on to WebLogic's console using Http://Ip address/console For example: Http://192.168.1.144/console, As shown in the following illustration:

  

3. Deploying Web Applications

  

  

  

  

  

  

  

  

  

  

  

In this case, the task of deploying Web applications under WebLogic and binding registered domain names is complete. map the corresponding IP address of the domain name

When we created the virtual host, we bound www.oams.cn This domain name, this domain is my own arbitrary input, and did not really register on the internet there is this domain name, so to the local domain through the way to access the Web application, then need to add to the local Hosts file www.oams.cn this domain name IP Mapping.

Locate the Hosts file for this computer, as shown in the following illustration:

  

Open the Hosts file using a text editor and add an IP mapping to the www.oams.cn domain, as shown in the following illustration:

  

After binding the domain name and IP address, we can use the domain name directly to access the Web application.

Enter the www.oams.cn domain name of the binding, as shown in the following illustration:

  

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.