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

Source: Internet
Author: User

One, create a virtual host in WebLogic

Locate the virtual host panel as shown in:

  

  

  

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

  

  

Second, modify port 7001 to 80

Open the Servers panel and click on the "AdminServer" hyperlink to enter the "AdminServer" settings panel as shown in:

  

The WebLogic server is using port 7001 by default, as shown in:

  

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

  

  

We can prove that WebLogic is already using port 80, as shown in:

  

Iii. Deploying Web Apps 3.1, packaging web Apps

The first web app to deploy to WebLogic is packaged into a war package, as shown in the following steps:

Select the "OAMs" item to be packaged → "Export ..."

  

  

  

Click "Finish" to package the OAMs Web App as a Oams.war, as shown in:

  

After packaging is complete, you can see a Omas.war file on your desktop, as shown in:

  

3.2. Deploy the Web app to the WebLogic server

After several tests, it was always unsuccessful to deploy the Web App as a war package to the WebLogic server, and the Web app was using struts2+hibernate4.x+ spring3.x Three framework combination developed, and the war package decompression after the deployment in the form of a folder can be successful, specific reasons do not know the unknown. Hope to have this experience of friends can guide the maze, first thanked. Here's how to deploy a Web app to a WebLogic server as a folder.

1. Upload the packaged Oams.war package to a directory on the remote WebLogic server.

For example, upload to a directory such as "D:\oams Deployment", and then extract the war package using the Unzip tool as a folder, as shown in:

  

After extracting Oams.war, generate a OAMs folder as shown in:

  

Open the OAMs folder to see the content of the Web app that's inside it, as shown in:

  

2. Log in to the remote WebLogic server using the Administrator account

We have changed the WebLogic listening port to port 80, so log in to the WebLogic console using "Http://Ip address/console", for example: Http://192.168.1.144/console, as shown in:

  

3. Deploy Web Apps

  

  

  

  

  

  

  

  

  

  

  

Here, the job of deploying a web App under WebLogic and binding a registered domain name is all done.

Iv. the IP address corresponding to the mapped domain name

We are in the creation of the virtual host www.oams.cn This domain name, this domain is my own random input, and does not really register on the Internet domain name, so in order to access the Web application through the domain name in the local computer, then you need to add to the host file in this machine www.oams.cn this domain name IP Mapping.

Locate the Hosts file for this machine, as shown in:

  

Open the Hosts file with a text editor and add an IP map to the domain name www.oams.cn, as shown in:

  

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

Enter the www.oams.cn domain access for the binding, as shown in:

  

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

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.